commit
c0eb531941
|
@ -1,6 +1,9 @@
|
|||
module.exports = (grunt) ->
|
||||
|
||||
grunt.config.merge
|
||||
grunt.loadNpmTasks "embark-framework"
|
||||
|
||||
grunt.initConfig(
|
||||
@initEmbarkConfig(
|
||||
files:
|
||||
js:
|
||||
src: [
|
||||
|
@ -45,8 +48,8 @@ module.exports = (grunt) ->
|
|||
deploy:
|
||||
contracts: '<%= files.contracts.src %>'
|
||||
dest: 'generated/tmp/abi.js'
|
||||
|
||||
grunt.loadNpmTasks "embark-framework"
|
||||
)
|
||||
)
|
||||
|
||||
# loading external tasks (aka: plugins)
|
||||
# Loads all plugins that match "grunt-", in this case all of our current plugins
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
"shelljs": "^0.4.0",
|
||||
"string": "^3.1.1",
|
||||
"web3": "^0.4.3",
|
||||
"wrench": "^1.5.8"
|
||||
"wrench": "^1.5.8",
|
||||
"hashmerge": "^1.0.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,8 @@
|
|||
"read-yaml": "^1.0.0",
|
||||
"shelljs": "^0.5.0",
|
||||
"web3": "^0.4.3",
|
||||
"wrench": "^1.5.8"
|
||||
"wrench": "^1.5.8",
|
||||
"hashmerge": "^1.0.2"
|
||||
},
|
||||
"author": "Iuri Matias <iuri.matias@gmail.com>",
|
||||
"contributors": [],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = (grunt) ->
|
||||
|
||||
grunt.initConfig
|
||||
@embarkConfig =
|
||||
files:
|
||||
web3:
|
||||
"node_modules/embark-framework/js/web3.js"
|
||||
|
@ -96,3 +96,7 @@ module.exports = (grunt) ->
|
|||
contracts: '<%= files.contracts.src %>'
|
||||
dest: 'generated/tmp/abi.js'
|
||||
|
||||
@initEmbarkConfig = (userConfig) =>
|
||||
hashmerge = require('hashmerge')
|
||||
hashmerge(@embarkConfig, userConfig)
|
||||
|
||||
|
|
Loading…
Reference in New Issue