Created
July 3, 2013 15:07
-
-
Save yyx990803/5919054 to your computer and use it in GitHub Desktop.
a grunt task for working with an appengine app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.registerTask( 'dev', 'start deving y\'all', function () { | |
grunt.task.run('watch') | |
grunt.util.spawn({ | |
cmd: 'dev_appserver.py', | |
args: ['./app.yaml'], | |
opts: { | |
stdio: 'inherit' | |
} | |
}, function (err, result, code) { | |
// this function is required otherwise | |
// grunt will throw an error | |
}) | |
grunt.util.spawn({ | |
cmd: 'subl', | |
args: ['.'] | |
}, function (err, result, code) {}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment