relase ipfs command

This commit is contained in:
Iuri Matias 2015-06-05 22:54:50 -04:00
parent 14e43ea5f7
commit d0836e55e0
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,11 @@ program.command('build [env]').description('build dapp').action(function(env_) {
exec('grunt build:' + env);
});
program.command('release ipfs [env]').description('build dapp and make it available in ipfs').action(function(env_) {
var env = env_ || 'development';
exec('grunt release_ipfs:' + env);
});
program.command('run [env]').description('run dapp').action(function(env_) {
var env = env_ || 'development';
exec('grunt deploy:' + env);

View File

@ -2,4 +2,5 @@ module.exports = (grunt) ->
grunt.registerTask "deploy", ["coffee", "deploy_contracts", "concat", "copy", "server", "watch"]
grunt.registerTask "build", ["clean", "deploy_contracts", "coffee", "concat", "uglify", "copy"]
grunt.registerTask "release_ipfs", ["build", "ipfs"]