build-include
v0.1.1
Published
Set of classes for including files in other files
Downloads
671
Readme
build-include
Documentation
Extensive documentation can be found here.
The What
This is a project that can be used to make other plugins such as grunt-build-include or can be use in node project where custom build include are needed.
Can be a simple include that replaces build_include statement with with the contents of a file.
Example:
// BUILD_INCLUDE("./scratch/mysnippet.js")
Can be a more complex replacement that applies formating using Options
Example:
var getStyleCss = function () {
var css = '// BUILD_INCLUDE("./scratch/style.min.css")[asjsstring,breakString?width=80]';
return css;
};
See Example: Asjsstring Include Text In Javascript String
Getting started
npm install build-include --save
grunt-build-include is build upon this project and demonstrates many uses.