Skip to content

Commit 515bc1c

Browse files
author
Lauren McCarthy
committed
Merge pull request #376 from fabiantheblind/master
Added grunt-update-json
2 parents 0e0404e + d8f47a7 commit 515bc1c

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

Gruntfile.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ module.exports = function(grunt) {
4848
}
4949
},
5050
},
51+
update_json: {
52+
// set some task-level options
53+
options: {
54+
src: 'package.json',
55+
indent: '\t'
56+
},
57+
// update bower.json with data from package.json
58+
bower: {
59+
src: 'package.json', // where to read from
60+
dest: 'bower.json', // where to write to
61+
// the fields to update, as a String Grouping
62+
fields: 'name version description repository'
63+
},
64+
},
5165
requirejs: {
5266
unmin: {
5367
options: {
@@ -177,7 +191,7 @@ module.exports = function(grunt) {
177191
options: {
178192
github: {
179193
repo: 'lmccart/p5.js', //put your user/repo here
180-
usernameVar: process.env.GITHUB_USERNAME, //ENVIRONMENT VARIABLE that contains Github username
194+
usernameVar: process.env.GITHUB_USERNAME, //ENVIRONMENT VARIABLE that contains Github username
181195
passwordVar: process.env.GITHUB_PASSWORD //ENVIRONMENT VARIABLE that contains Github password
182196
}
183197
}
@@ -192,7 +206,7 @@ module.exports = function(grunt) {
192206
grunt.loadNpmTasks('grunt-contrib-yuidoc');
193207
grunt.loadNpmTasks('grunt-contrib-sass');
194208
grunt.loadNpmTasks('grunt-release');
195-
209+
grunt.loadNpmTasks('grunt-update-json');
196210
grunt.registerTask('test', ['jshint', 'mocha']);
197211
grunt.registerTask('yui', ['yuidoc']);
198212
grunt.registerTask('default', ['jshint', 'requirejs', 'mocha']);

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js",
3-
"version": "0.3.6",
3+
"version": "0.3.7",
44
"main": "lib/p5.min.js",
55
"homepage": "http://p5js.org/",
66
"authors": [

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/lmccart/p5.js.git"
66
},
7-
"version": "0.3.6",
7+
"version": "0.3.7",
88
"devDependencies": {
99
"almond": "~0.2.7",
1010
"amdclean": "~0.3.3",
@@ -18,6 +18,7 @@
1818
"grunt-lib-phantomjs": "~0.4.0",
1919
"grunt-mocha": "~0.4.6",
2020
"grunt-release": "^0.7.0",
21+
"grunt-update-json": "^0.1.3",
2122
"phantomjs": "~1.9.2-4"
2223
},
2324
"licenses": [

0 commit comments

Comments
 (0)