The various options of fence
allow for the processing of fenced sections in input file.
Fences are used to omit section of a build_include replacement from being processed.
Thus the fenced section is included verbatium unless options are set to explicity exclude fences from output.
Fence values in gruntFile.js will be ignored for BUILD_INCLUDE values that have fence options set in BUILD_INCLUDE options.
See Also: Fence Options
File level options will always take priority unless override is set to true
.
Matches built in fence rules of StrictFence by seting fence to string value of regexKind.strict
module.exports = function (grunt) {
grunt.initConfig({
build_include: {
default: {
options: {
fence: 'strict'
},
src: './src/maint.ts',
dest: './scratch/ts/main.ts'
}
}
});
grunt.loadNpmTasks('grunt-build-include');
grunt.registerTask('default', ['build_include:default']);
};
See Also: Options Fence
Generated using TypeDoc