update docs
This commit is contained in:
parent
85659987d9
commit
e3dd315518
|
@ -31,7 +31,7 @@ With Embark you can:
|
|||
|
||||
**Web Technologies**
|
||||
* Integrate with any web technology including React, Foundation, etc..
|
||||
* Use any build pipeline or tool you wish, including grunt and meteor. (for 1.x, plugins coming soon for 2.x series)
|
||||
* Use any build pipeline or tool you wish, including grunt, gulp and webpack.
|
||||
|
||||
Table of Contents
|
||||
======
|
||||
|
|
|
@ -26,6 +26,7 @@ This is a work in progress, feel free to contribute!
|
|||
deploying-to-ipfs.rst
|
||||
deploying-to-swarm.rst
|
||||
plugins.rst
|
||||
using-embark-with-grunt.rst
|
||||
donations.rst
|
||||
|
||||
Indices and tables
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
Using Embark with Grunt
|
||||
====================================
|
||||
|
||||
** 1. Edit embark.json **
|
||||
|
||||
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": {
|
||||
}
|
||||
}
|
||||
|
||||
** 2. add the generated file to Grunt config file so it's included with the
|
||||
other assets **
|
||||
|
||||
.. code:: coffee
|
||||
|
||||
module.exports = (grunt) ->
|
||||
|
||||
grunt.initConfig(
|
||||
files:
|
||||
js:
|
||||
src: [
|
||||
"dist/app.js"
|
||||
"app/js/**/*.js"
|
||||
]
|
||||
|
Loading…
Reference in New Issue