Skip to content

Commit 4b03c2c

Browse files
committed
Add npm shortcuts for building.
1 parent 250e053 commit 4b03c2c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: node_js
22
node_js:
33
- "0.11"
4-
before_install: npm install -g grunt-cli
54
install: npm install
6-
before_script: grunt stage
5+
before_script: npm start

Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ module.exports = function(grunt) {
164164
// Release current build.
165165
grunt.registerTask('stage', 'Stage current binaries to releases/.', function() {
166166
grunt.task.run('default');
167-
grunt.task.run('test');
168167
grunt.task.run('copy:release');
169168
});
170169

171170
// Increment package version and publish to NPM.
172171
grunt.registerTask('publish', 'Publish VexFlow NPM.', function() {
173172
grunt.task.run('stage');
173+
grunt.task.run('test');
174174
grunt.task.run('release');
175175
});
176-
};
176+
};

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"raphael": "^2.1.0"
3636
},
3737
"scripts": {
38+
"start": "grunt stage",
3839
"test": "grunt test"
3940
},
4041
"homepage": "http://vexflow.com",

0 commit comments

Comments
 (0)