@samitouri / QOS-React-2 / commits / 73c84c8319

bower.json: remove moot `version` field

Per https://github.com/bower/bower.json-spec/commit/a325da3d79baab018c572d75dc1781b12322f6cd

Chris Rebert committed May 12, 2015 at 22:31 UTC 73c84c83198aa0ed4408d2f12f2812cd2cea67bc
1 file changed -9
grunt/tasks/release.js
-9
@@ -84,21 +84,12 @@ function setup() {
84 function bower() {
85 var done = this.async();
86
87 - // read current bower.json
88 - var bowerFilePath = BOWER_PATH + 'bower.json';
89 - var bowerInfo = grunt.file.readJSON(bowerFilePath);
90 -
87 // clean out the bower folder in case we're removing files
88 var files = grunt.file.expand(BOWER_GLOB);
89 files.forEach(function(file) {
90 grunt.file.delete(file, {force: true});
91 });
92
97 - // Update bower package version and save the file back.
98 - bowerInfo.version = VERSION;
99 - var bowerFileContents = JSON.stringify(bowerInfo, null, 2);
100 - grunt.file.write(bowerFilePath, bowerFileContents);
101 -
93 // Now copy over build files
94 BOWER_FILES.forEach(function(file) {
95 grunt.file.copy('build/' + file, BOWER_PATH + file);