bower.json: remove moot version field

Per https://github.com/bower/bower.json-spec/commit/a325da3d79baab018c572d75dc1781b12322f6cd
This commit is contained in:
Chris Rebert
2015-05-12 22:31:18 -07:00
parent f0bdadf85b
commit 73c84c8319
-9
View File
@@ -84,21 +84,12 @@ function setup() {
function bower() {
var done = this.async();
// read current bower.json
var bowerFilePath = BOWER_PATH + 'bower.json';
var bowerInfo = grunt.file.readJSON(bowerFilePath);
// clean out the bower folder in case we're removing files
var files = grunt.file.expand(BOWER_GLOB);
files.forEach(function(file) {
grunt.file.delete(file, {force: true});
});
// Update bower package version and save the file back.
bowerInfo.version = VERSION;
var bowerFileContents = JSON.stringify(bowerInfo, null, 2);
grunt.file.write(bowerFilePath, bowerFileContents);
// Now copy over build files
BOWER_FILES.forEach(function(file) {
grunt.file.copy('build/' + file, BOWER_PATH + file);