diff options
Diffstat (limited to 'build/tasks/build.js')
-rw-r--r-- | build/tasks/build.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index 74fa47fde..c9f1daeb8 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -15,7 +15,6 @@ module.exports = function( grunt ) { config = { baseUrl: "src", name: "jquery", - out: "dist/jquery.js", // We have multiple minify steps optimize: "none", @@ -115,7 +114,7 @@ module.exports = function( grunt ) { done = this.async(), flags = this.flags, optIn = flags[ "*" ], - name = this.data.dest, + name = grunt.option( "filename" ), minimum = this.data.minimum, removeWith = this.data.removeWith, excluded = [], @@ -205,6 +204,11 @@ module.exports = function( grunt ) { } }; + // Filename can be passed to the command line using + // command line options + // e.g. grunt build --filename=jquery-custom.js + name = name ? ( "dist/" + name ) : this.data.dest; + // append commit id to version if ( process.env.COMMIT ) { version += " " + process.env.COMMIT; |