mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
pass grunt into generateRawFilesJs instead of require()ing it
This commit is contained in:
parent
1c6d303b76
commit
dcffbbab61
@ -460,7 +460,7 @@ module.exports = function (grunt) {
|
||||
grunt.registerTask('build-customizer-html', 'jade');
|
||||
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () {
|
||||
var banner = grunt.template.process('<%= banner %>');
|
||||
generateRawFiles(banner);
|
||||
generateRawFiles(grunt, banner);
|
||||
});
|
||||
|
||||
// Task for updating the npm packages used by the Travis build.
|
||||
|
@ -10,7 +10,6 @@
|
||||
'use strict';
|
||||
var fs = require('fs');
|
||||
var btoa = require('btoa');
|
||||
var grunt = require('grunt');
|
||||
|
||||
function getFiles(type) {
|
||||
var files = {};
|
||||
@ -25,7 +24,7 @@ function getFiles(type) {
|
||||
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n';
|
||||
}
|
||||
|
||||
module.exports = function generateRawFilesJs(banner) {
|
||||
module.exports = function generateRawFilesJs(grunt, banner) {
|
||||
if (!banner) {
|
||||
banner = '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user