Commit 7100e3a3 authored by Zlatan Vasović's avatar Zlatan Vasović Committed by Chris Rebert
Browse files

Add build-raw-files log; fixes #12603

Fixes #12672
parent 1b4a3dbb
3 merge requests!28721Hot test,!22103test,!25326Adjust examples
Showing with 10 additions and 2 deletions
+10 -2
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
'use strict'; 'use strict';
var btoa = require('btoa');
var fs = require('fs'); var fs = require('fs');
var btoa = require('btoa');
var grunt = require('grunt');
function getFiles(type) { function getFiles(type) {
var files = {}; var files = {};
...@@ -27,5 +28,12 @@ module.exports = function generateRawFilesJs(banner) { ...@@ -27,5 +28,12 @@ module.exports = function generateRawFilesJs(banner) {
banner = ''; banner = '';
} }
var files = banner + getFiles('js') + getFiles('less') + getFiles('fonts'); var files = banner + getFiles('js') + getFiles('less') + getFiles('fonts');
fs.writeFileSync('docs/assets/js/raw-files.min.js', files); var rawFilesJs = 'docs/assets/js/raw-files.min.js';
try {
fs.writeFileSync(rawFilesJs, files);
}
catch (err) {
grunt.fail.warn(err);
}
grunt.log.writeln('File ' + rawFilesJs.cyan + ' created.');
}; };
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