Commit 46b0874e authored by Chris Rebert's avatar Chris Rebert
Browse files

add copyright notice to raw-files.js

parent 027af6de
Showing with 14 additions and 3 deletions
+14 -3
...@@ -396,5 +396,8 @@ module.exports = function (grunt) { ...@@ -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);
});
}; };
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -16,7 +16,10 @@ function getFiles(type) { ...@@ -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)
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment