-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
118 lines (118 loc) · 4.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "securevote-light",
"version": "0.1.10",
"description": "A small ultra flexible voting system over Etheruem",
"main": "index.js",
"repository": "git@github.com/swarmfund/sv-voting-mvp",
"author": "Max Kaye (SecureVote)",
"license": "NONE(yet)",
"dependencies": {
"@types/es6-promise": "^0.0.33",
"abi-decoder": "^1.0.9",
"async-parallel": "^1.2.3",
"axios": "^0.18.0",
"bignumber.js": "^4.1.0",
"bn.js": "^4.11.8",
"bs58": "^4.0.1",
"clean-webpack-plugin": "^0.1.17",
"colors": "^1.1.2",
"copy-webpack-plugin": "^4.4.2",
"css-loader": "^0.28.7",
"decimal.js": "^9.0.1",
"dialog-polyfill": "^0.4.9",
"domurl": "^2.1.7",
"dotenv": "^5.0.0",
"dotenv-webpack": "^1.5.5",
"elliptic": "^6.4.0",
"elm": "^0.18.0",
"elm-github-install": "^1.6.1",
"elm-hot-loader": "^0.5.4",
"elm-test": "^0.18.12",
"elm-webpack-loader": "git://github.com/secure-vote/elm-webpack-loader#5612866c65c7c95e5b4cd6160121cf36e30f0277",
"eslint": "^4.18.1",
"ethereum-ens": "^0.7.3",
"ethereumjs-testrpc": "^4.1.3",
"ethereumjs-util": "^5.1.2",
"ethjs-provider-http": "^0.1.6",
"extract-text-webpack-plugin": "^3.0.2",
"fancy-log": "^1.3.0",
"file-loader": "^1.1.5",
"html-webpack-plugin": "^3.2.0",
"ipfs-api": "^18.1.1",
"js-nacl": "^1.2.2",
"js-sha256": "^0.9.0",
"lodash-webpack-plugin": "^0.11.4",
"prompt": "^1.0.0",
"prompt-confirm": "^1.2.0",
"pulp": "^12.0.1",
"purescript": "^0.11.6",
"purs": "^0.0.9",
"purs-loader": "^3.1.4",
"ramda": "^0.25.0",
"sanctuary": "^0.13.2",
"solc": "^0.4.20",
"style-loader": "^0.19.0",
"tapable": "^1.0.0",
"text-encoding": "^0.6.4",
"truffle": "^4.1.0",
"truffle-provider": "^0.0.3",
"typescript": "^2.5.3",
"uglifyjs-webpack-plugin": "^1.2.3",
"url-loader": "^0.6.2",
"watch": "^1.0.2",
"web3": "0.20.2",
"webpack": "3.7.1",
"webpack-common-shake": "^1.5.3",
"webpack-dev-server": "2",
"webpack-merge": "^4.1.0",
"yargs": "^9.0.1"
},
"devDependencies": {
"elm-live": "^2.7.5",
"npm-run-all": "^4.1.1",
"standard": "^11.0.0",
"web3-typescript-typings": "^0.6.2",
"webpack-bundle-analyzer": "^2.10.0"
},
"scripts": {
"----- SMART CONTRACT COMMANDS": "",
"sol-test": "cd contract && truffle test",
"sol-test-watch": "cd contract && reflex truffle test",
"_testrpc": "testrpc -a 201",
"_sol-cmp": "./bin/solidity/compile.sh",
"sol-compile": "yarn _sol-cmp -c SVLightIndex.sol && yarn _sol-cmp -c SVLightBallotBox.sol",
"sol-compile-dlgt": "yarn _sol-cmp -c SVDelegation.sol",
"sol-deploy": "node ./bin/solidity/deploy.js",
"sol-deploy-auto": "yarn sol-deploy --unsafeSkipChecks --deploy",
"sol-cli": "node -i ./bin/solidity/contractCli.js",
"----- WEB / ELM COMMANDS": "",
"elm-live-deprecated": "yarn _live",
"web": "webpack-dev-server --port ${PORT:-3000} --open --progress --host 0.0.0.0",
"dev-bundle-analyzer": "webpack-dev-server --port ${PORT:-3300} --open --progress",
"web-admin": "webpack-dev-server --port ${PORT:-3010} --open --progress",
"web-delegation": "webpack-dev-server --port ${PORT:-3020} --open --progress",
"web-dev-emulate-prod": "./dev_emulate_prod.sh",
"web-dev-emulate-prod-old": "set -o allexport; source .env-prod; MAIN_TITLE='SWM Governance (Dev/Prod)' yarn web",
"build-web": "./build_prod.sh",
"prod-ui": "./build_prod.sh",
"prod-admin-ui": "./build_prod.sh",
"prod-delegation-ui": "./build_prod.sh || true",
"_live": "elm-live ./web/src/SecureVote/SPAs/SwarmMVP/Main.elm --output=./web/sv-swarm.js --dir=./web --open --debug",
"elm-install": "elm-install",
"elm-package": "elm-package install --yes",
"----- PureScript (Aduit + Admin)": "",
"audit-run-w": "cd _pureDist && reflex -g .notify -s -- ./runAudit.sh --bScAddr 0x3b8315cbef53ce497bc993491b7c9743549ab395",
"audit-dev": "pulp -w --then 'date +%s > _pureDist/.notify' build --src-path pureSrc --main SV.AuditCLI --to _pureDist/audit-dev.js -o ./output",
"audit-prod": "pulp build --src-path pureSrc --main SecureVote.Democs.SwarmMVP.Auditor -j 2 --to _pureDist/audit.js -o ./output",
"admin-dev": "pulp -w build --src-path pureSrc --main SecureVote.Democs.SwarmMVP.Admin -j 2 --to _pureDist/admin.js -o ./output ",
"admin-prod": "pulp build --src-path pureSrc --main SecureVote.Democs.SwarmMVP.Admin -j 2 --to _pureDist/admin.js -o ./output",
"purs-test": "pulp -w test --src-path pureSrc --test-path test -o output",
"purs-test-no-watch": "pulp test --src-path pureSrc --test-path test -o output",
"audit-web": "webpack --progress",
"purs-gen-contracts": "./makeWeb3ContractsForPurs.sh",
"----- FULL SYSTEM / HELPER COMMANDS": "",
"dry-run": "run-p _sc_testrpc_deploy",
"node": "node",
"test-all": "elm-test && yarn purs-test-no-watch && yarn sol-test"
}
}