mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Merge pull request #12224 from twbs/raw-files-banner
add copyright notice to raw-files.js
This commit is contained in:
commit
2a6b6f8537
3 changed files with 14 additions and 3 deletions
|
@ -396,5 +396,8 @@ module.exports = function (grunt) {
|
|||
// task for building customizer
|
||||
grunt.registerTask('build-customizer', ['build-customizer-vars-form', 'build-raw-files']);
|
||||
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'
|
||||
}
|
||||
|
||||
module.exports = function generateRawFilesJs() {
|
||||
var files = getFiles('js') + getFiles('less') + getFiles('fonts')
|
||||
module.exports = function generateRawFilesJs(banner) {
|
||||
if (!banner) {
|
||||
banner = ''
|
||||
}
|
||||
var files = banner + getFiles('js') + getFiles('less') + getFiles('fonts')
|
||||
fs.writeFileSync('docs/assets/js/raw-files.js', files)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue