diff --git a/bin/embark b/bin/embark index aef976b5e..5accf53da 100644 --- a/bin/embark +++ b/bin/embark @@ -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); diff --git a/tasks/tasks.coffee b/tasks/tasks.coffee index 209bafa2a..8c1e9c8e1 100644 --- a/tasks/tasks.coffee +++ b/tasks/tasks.coffee @@ -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"]