Skip to content

Commit

Permalink
Update Gruntfile.js to not write version to bower.json. See #1790
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed May 13, 2015
1 parent ce726fe commit e4958af
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,8 @@ module.exports = function(grunt) {
});

grunt.registerTask('dist', function() {
// Update the version in bower.json
var bowerConfig = grunt.file.readJSON('bower.json'),
version = grunt.config('pkg.version');
bowerConfig.version = version;
grunt.file.write('bower.json', JSON.stringify(bowerConfig, true, 2));

var buildConfig = grunt.config('build'),
var version = grunt.config('pkg.version'),
buildConfig = grunt.config('build'),
distConfig = grunt.config('dist');
grunt.file.copy(buildConfig.debug, distConfig.debug);
grunt.file.copy(buildConfig.min, distConfig.min);
Expand Down

0 comments on commit e4958af

Please sign in to comment.