More on zeus-box.json
More on zeus-box.json
The following is an example zeus-box.json, we'll dive into what everything means and what options you have as a developer.
1
{
2
# this is the version of the box for version control
3
"version": "1.0.0",
4
# ignore files and directories
5
"ignore": [
6
".gitignore"
7
],
8
# command directory
9
"commands": {
10
"Compile contracts": "zeus compile",
11
"Migrate contracts": "zeus migrate",
12
"Test contracts": "zeus test -c",
13
"Deploy contract": "zeus migrate",
14
"Run frontend locally": "zeus run frontend main",
15
"Build frontend": "zeus build frontend main",
16
"Deploy frontend": "zeus deploy frontend main",
17
"Deploy and register frontend": "zeus deploy frontend main --ipfs --register cardgame1111"
18
},
19
# hook options, explained below
20
"hooks": {
21
"post-unpack": "npm install js-yaml",
22
"post-install": "bash scripts/install-eos.sh"
23
},
24
# install dependencies
25
"install": {
26
"npm": {},
27
# specify contract to include
28
"contracts": {
29
"cardgame": true
30
},
31
# installs npm in dir, if empty runs npm i
32
"npm-in-dirs": {
33
"frontends/main": {
34
"npm": {
35
"eosio-push-guarantee": true
36
},
37
"npm-scripts": {
38
"start": "set SCATTER_HACK_ENV=development && webpack --config frontends/main/webpack.config.js --watch",
39
"build": "set SCATTER_HACK_ENV=production && set NODE_ENV=production && webpack --config frontends/main/webpack.config.js"
40
}
41
}
42
}
43
},
44
# install zeus_boxes dependencies
45
"dependencies": {
46
"seed-tests": ""
47
}
48
}
Copied!

hooks

post-unpack is for after the box unboxes, and post-install is after the final install occurs at the end.
Copy link
Contents
hooks