-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
55 lines (53 loc) · 1.87 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
{
"name": "greeter",
"version": "1.0.0",
"license": "(MIT AND Apache-2.0)",
"scripts": {
"build": "npm run build:contract && npm run build:web",
"build:contract": "cd contract && rustup target add wasm32-unknown-unknown && cargo build --all --target wasm32-unknown-unknown --release && cp ./target/wasm32-unknown-unknown/release/greeter.wasm ../out/main.wasm",
"build:web": "parcel build frontend/index.html --public-url ./",
"deploy": "npm run build:contract && near dev-deploy",
"start": "npm run deploy && echo The app is starting! It will automatically open in your browser when ready && env-cmd -f ./neardev/dev-account.env parcel frontend/index.html --open",
"dev": "nodemon --watch contract -e ts --exec \"npm run start\"",
"test": "npm run build:contract && npm run test:unit && npm run test:integration",
"test:unit": "cd contract && cargo test",
"test:integration": "npm run deploy && cd integration-tests && npm run test",
"test:integration:ts": "echo not supported",
"test:integration:ts": "echo not supported"
},
"devDependencies": {
"@babel/core": "~7.18.2",
"@babel/preset-env": "~7.18.2",
"@babel/preset-react": "~7.17.12",
"ava": "^4.2.0",
"env-cmd": "~10.1.0",
"near-cli": "~3.3.0",
"nodemon": "~2.0.16",
"parcel": "^2.6.0",
"process": "^0.11.10",
"react-test-renderer": "~18.1.0",
"ts-node": "^10.8.0",
"typescript": "^4.7.2"
},
"dependencies": {
"near-api-js": "~0.44.2",
"react": "~18.1.0",
"react-dom": "~18.1.0",
"regenerator-runtime": "~0.13.9"
},
"resolutions": {
"@babel/preset-env": "7.13.8"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}