2017-03-04 20:45:36 +00:00
Using Embark with Grunt
====================================
2017-03-04 20:47:35 +00:00
**1. Edit embark.json**
2017-03-04 20:45:36 +00:00
Edit `` embark.json `` to have the line `` "js/app.js": ["embark.js"] `` , this will make embark create the file containing the contracts initilization to `` dist/app.js `` .
.. code :: json
{
"contracts": ["app/contracts/**"],
"app": {
"app.js": ["embark.js"]
},
"buildDir": "dist/",
"config": "config/",
"plugins": {
}
}
2017-03-04 20:47:35 +00:00
**2. add the generated file to Grunt config file so it's included with the other assets**
2017-03-04 20:45:36 +00:00
.. code :: coffee
module.exports = (grunt) ->
grunt.initConfig(
files:
js:
src: [
"dist/app.js"
"app/js/**/* .js"
]