Skip to content

Commit

Permalink
add the Gruntfile task
Browse files Browse the repository at this point in the history
Usage:grunt shell
  • Loading branch information
yaowenqiang committed Oct 3, 2015
1 parent d8e3f03 commit 296debb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//npm install -g grunt-cli
//npm install --save-dev grunt-shell
//Usage: grunt shell
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
shell: {
phantomjs: {
command: 'phantomjs system_api.js jacky.yao'
}
},
//set up tasks
});
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default',['shell:phantomjs']);

};

0 comments on commit 296debb

Please sign in to comment.