Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ module.exports = function(grunt) {
}
},
},
update_json: {
// set some task-level options
options: {
src: 'package.json',
indent: '\t'
},
// update bower.json with data from package.json
bower: {
src: 'package.json', // where to read from
dest: 'bower.json', // where to write to
// the fields to update, as a String Grouping
fields: 'name version description repository'
},
},
requirejs: {
unmin: {
options: {
Expand Down Expand Up @@ -177,7 +191,7 @@ module.exports = function(grunt) {
options: {
github: {
repo: 'lmccart/p5.js', //put your user/repo here
usernameVar: process.env.GITHUB_USERNAME, //ENVIRONMENT VARIABLE that contains Github username
usernameVar: process.env.GITHUB_USERNAME, //ENVIRONMENT VARIABLE that contains Github username
passwordVar: process.env.GITHUB_PASSWORD //ENVIRONMENT VARIABLE that contains Github password
}
}
Expand All @@ -192,7 +206,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-release');

grunt.loadNpmTasks('grunt-update-json');
grunt.registerTask('test', ['jshint', 'mocha']);
grunt.registerTask('yui', ['yuidoc']);
grunt.registerTask('default', ['jshint', 'requirejs', 'mocha']);
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p5.js",
"version": "0.3.6",
"version": "0.3.7",
"main": "lib/p5.min.js",
"homepage": "http://p5js.org/",
"authors": [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/lmccart/p5.js.git"
},
"version": "0.3.6",
"version": "0.3.7",
"devDependencies": {
"almond": "~0.2.7",
"amdclean": "~0.3.3",
Expand All @@ -18,6 +18,7 @@
"grunt-lib-phantomjs": "~0.4.0",
"grunt-mocha": "~0.4.6",
"grunt-release": "^0.7.0",
"grunt-update-json": "^0.1.3",
"phantomjs": "~1.9.2-4"
},
"licenses": [
Expand Down