-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
33 lines (32 loc) · 1.37 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
{
"name": "hello_near",
"version": "1.0.0",
"license": "UNLICENSED",
"scripts": {
"build": "npm run build:rustup && npm run build:cpwasm",
"build:rustup": "cd contract && rustup target add wasm32-unknown-unknown && cargo build --all --target wasm32-unknown-unknown --release",
"build:cpwasm": "mkdir -p out && rm -f ./out/main.wasm && cp ./contract/target/wasm32-unknown-unknown/release/hello_near.wasm ./out/main.wasm",
"deploy": "npm run build && near dev-deploy",
"start": "npm run deploy && echo The app is starting! && 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 && npm run test:unit && npm run test:integration",
"test:unit": "cd contract && cargo test",
"test:integration": "npm run test:integration:ts && npm run test:integration:rs",
"test:integration:ts": "ava --verbose",
"test:integration:rs": "cd integration-tests/rs && cargo run --example integration-tests"
},
"devDependencies": {
"env-cmd": "^10.1.0",
"near-cli": "^3.2.0",
"nodemon": "~2.0.15",
"parcel-bundler": "~1.12.5",
"ava": "^4.2.0",
"near-workspaces": "^2.0.0",
"typescript": "^4.6.4",
"ts-node": "^10.7.0"
},
"dependencies": {
"near-api-js": "~0.43.1",
"regenerator-runtime": "~0.13.5"
}
}