-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
45 lines (45 loc) · 2.36 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
{
"name": "everscale-tutor-web",
"version": "1.0.0",
"description": "Everscale awesome DApp",
"main": "src/App.html",
"type": "commonjs",
"scripts": {
"nvm": "echo $npm_package_engines_node | cut -d'=' -f2",
"build-asset": "convert-svg-to-png --width 48 asset/icon.svg",
"build-web": "yarn build-deps && parcel build --public-url ${URL:-/} --no-source-maps --out-dir dist --out-file index.html src/App.html",
"build-abi": "yarn contract-wrap && node -e 'console.log(`export default ${JSON.stringify(require(\"./build/App.abi\").abi)} as const`)' > build/App.abi.ts",
"build-deps": "yarn build-asset && yarn build-abi",
"contract-wrap": "yarn contract-compile && everdev js wrap --export commonjs-default --output App.abi.js build/App",
"contract-compile": "everdev sol compile --code --output-dir build src/App.sol",
"contract-deploy": "yarn contract-compile && everdev contract deploy --value 1000000000 build/App && yarn contract-addr && yarn contract-addr-cat",
"contract-deploy-local": "npx everdev se reset && npx everdev network default localnet && yarn contract-deploy",
"contract-deploy-testnet": "npx everdev network default testnet && yarn contract-deploy",
"contract-addr": "net=$(npx everdev network list | grep Default | cut -d' ' -f1); printf '\"%s\": {\"App\": \"%s\"},\n' $net $(everdev contract info build/App | grep Address | cut -d ' ' -f 4) > build/App.$net.addr",
"contract-addr-cat": "printf 'export default {%s}\n' \"$(cat $(ls build/*.addr))\" > build/App.addr.ts",
"clear": "rm -fr dist build/App.localnet.addr",
"build": "yarn build-web",
"build-prod": "yarn clear && yarn contract-addr-cat && yarn build",
"test": "echo \"Error: no test specified\" && exit 1",
"gh-pages": "URL=/$npm_package_name/ yarn build-prod && gh-pages --repo $(git remote --verbose | grep push | cut -f2 | cut -d' ' -f1) --dist dist",
"serve": "yarn build && serve -s dist -l 3000",
"prestart": "yarn build-deps",
"start": "parcel src/App.html"
},
"license": "ISC",
"engines": {
"node": ">=16"
},
"devDependencies": {
"bootstrap": "^5.1.3",
"convert-svg-to-png": "^0.5.0",
"everdev": "^1.2.1",
"everscale-inpage-provider": "^0.3.28",
"gh-pages": "^3.2.3",
"parcel": "^2.3.1",
"parcel-bundler": "^1.12.5",
"serve": "^13.0.2",
"typescript": "^4.5.5"
},
"dependencies": {}
}