File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ program.command('build [env]').description('build dapp').action(function(env_) {
5858 run ( "grunt deploy_contracts:" + env ) ;
5959 run ( 'grunt build:' + env ) ;
6060 }
61+ else if ( embarkConfig . type === "meteor" ) {
62+ //deploy
63+ run ( "meteor-build-client ./build -p ''" ) ;
64+ }
6165} ) ;
6266
6367program . command ( 'ipfs [env]' ) . description ( 'build dapp and make it available in ipfs' ) . action ( function ( env_ ) {
@@ -70,8 +74,14 @@ program.command('ipfs [env]').description('build dapp and make it available in i
7074 run ( 'grunt build:' + env )
7175 run ( 'grunt ipfs:' + env )
7276 }
77+ else if ( embarkConfig . type === "meteor" ) {
78+ //deploy
79+ //build
80+ Embark = require ( 'embark-framework' )
81+ Embark . release . ipfs ( "build/" )
82+ }
7383 else {
74- console . log ( "command not available in meteor or manual mode yet" ) ;
84+ console . log ( "command not available in manual mode yet" ) ;
7585 }
7686} ) ;
7787
Original file line number Diff line number Diff line change 11require ( 'shelljs/global' ) ;
22
3- ipfs = function ( ) {
3+ ipfs = function ( build_dir ) {
44 ipfs_path = "~/go/bin" ;
55
6- build_dir = "dist/dapp/" ;
7-
86 cmd = ipfs_path + "/ipfs add -r " + build_dir ;
97
108 console . log ( "=== adding " + cmd + " to ipfs" ) ;
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ module.exports = (grunt) ->
33 grunt .registerTask " ipfs" , " distribute into ipfs" , (env_ ) =>
44 env = env_ || " development"
55 Embark = require (' embark-framework' )
6- Embark .release .ipfs ()
6+ Embark .release .ipfs (" dist/dapp/ " )
77
You can’t perform that action at this time.
0 commit comments