aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorJames Friend <[email protected]>2014-08-28 09:39:41 +0800
committerJames Friend <[email protected]>2014-08-28 09:39:41 +0800
commit015ee2ed74bcdc48eea9bb7f6bb453f1c2f182aa (patch)
tree5388c7206375ba5b69b31ef70da0803a97d0e392 /Gruntfile.js
parent9aeaf19b1dca68ee71e916ae415a0c270a47d301 (diff)
downloadbootstrap-015ee2ed74bcdc48eea9bb7f6bb453f1c2f182aa.tar.xz
bootstrap-015ee2ed74bcdc48eea9bb7f6bb453f1c2f182aa.zip
pulled output path out to gruntfile
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 60262ab87..1262a668a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -438,7 +438,7 @@ module.exports = function (grunt) {
grunt.registerTask('test', testSubtasks);
// JS distribution task.
- grunt.registerTask('dist-js', ['concat', 'uglify:core']);
+ grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']);
// CSS distribution task.
grunt.registerTask('less-compile', ['less:compileCore', 'less:compileTheme']);
@@ -464,8 +464,9 @@ module.exports = function (grunt) {
});
grunt.registerTask('commonjs', 'Generate CommonJS entrypoint module in dist dir.', function () {
- var files = grunt.config.get('concat.bootstrap.src');
- generateCommonJSModule(grunt, files);
+ var srcFiles = grunt.config.get('concat.bootstrap.src');
+ var destFilepath = 'dist/js/npm.js';
+ generateCommonJSModule(grunt, srcFiles, destFilepath);
});
// Docs task.