mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
add copyright notice to raw-files.js
This commit is contained in:
parent
027af6deb4
commit
46b0874ef5
3 changed files with 14 additions and 3 deletions
|
@ -396,5 +396,8 @@ module.exports = function (grunt) {
|
||||||
// task for building customizer
|
// task for building customizer
|
||||||
grunt.registerTask('build-customizer', ['build-customizer-vars-form', 'build-raw-files']);
|
grunt.registerTask('build-customizer', ['build-customizer-vars-form', 'build-raw-files']);
|
||||||
grunt.registerTask('build-customizer-vars-form', ['jade']);
|
grunt.registerTask('build-customizer-vars-form', ['jade']);
|
||||||
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', generateRawFilesJs);
|
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () {
|
||||||
|
var banner = grunt.template.process('<%= banner %>');
|
||||||
|
generateRawFilesJs(banner);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,10 @@ function getFiles(type) {
|
||||||
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'
|
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function generateRawFilesJs() {
|
module.exports = function generateRawFilesJs(banner) {
|
||||||
var files = getFiles('js') + getFiles('less') + getFiles('fonts')
|
if (!banner) {
|
||||||
|
banner = ''
|
||||||
|
}
|
||||||
|
var files = banner + getFiles('js') + getFiles('less') + getFiles('fonts')
|
||||||
fs.writeFileSync('docs/assets/js/raw-files.js', files)
|
fs.writeFileSync('docs/assets/js/raw-files.js', files)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue