-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
57 lines (57 loc) · 2.93 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
{
"name": "neardevhub-widgets",
"version": "1.0.0",
"description": "NEAR DevHub widgets for NEAR Social",
"devDependencies": {
"@playwright/test": "^1.42.1",
"bos-workspace": "1.0.0-alpha.27",
"http-server": "^14.1.1",
"near-bos-webcomponent": "^0.0.9",
"prettier": "^2.8.4",
"replace-in-files": "^3.0.0",
"simple-git-hooks": "^2.9.0"
},
"resolutions": {
"ws": "^7.5.10"
},
"scripts": {
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'",
"fmt:check": "prettier --check '**/*.{js,jsx,ts,tsx,json}'",
"build": "npm run fmt",
"bw": "bos-workspace",
"deploy:web4resources": "node scripts/deployweb4resources.mjs",
"bw:dev:instances": "bw ws dev",
"bw:dev:devhub": "bw dev instances/devhub.near",
"bw:build:instance": "npm run bw build instances/$npm_config_instance build/$npm_config_instance && mv build/$npm_config_instance/src/widget/* build/$npm_config_instance/src/ && rm -Rf build/$npm_config_instance/src/widget",
"bw:build:devhub": "npm run bw:build:instance --instance=devhub.near",
"gateway:all": "bw ws dev -g $(node scripts/create-static-hosting-web-gateway-folder.mjs)",
"dry-run:devhub": "npm run bw:build:devhub && cd ./build/devhub.near && bos components diff devhub.near network-config mainnet",
"bw:dev:infrastructure": "bw dev instances/infrastructure-committee.near",
"bw:build:infrastructure": "npm run bw:build:instance --instance=infrastructure-committee.near",
"deploy:infrastructure": "npm run bw:build:infrastructure && cd ./build/infrastructure-committee.near && bos components deploy",
"dry-run:infrastructure": "npm run bw:build:infrastructure && cd ./build/infrastructure-committee.near && bos components diff infrastructure-committee.near network-config mainnet",
"bw:dev:events": "bw dev instances/events-committee.near",
"bw:build:events": "npm run bw:build:instance --instance=events-committee.near",
"deploy:events": "npm run bw:build:events && cd ./build/events-committee.near && bos components deploy",
"dry-run:events": "npm run bw:build:events && cd ./build/events-committee.near && bos components diff events-committee.near network-config mainnet",
"test": "npx playwright test",
"test:devhub": "INSTANCE=devhub npx playwright test --project=devhub --ui",
"test:events": "INSTANCE=events npx playwright test --project=events --ui",
"test:infrastructure": "INSTANCE=infrastructure npx playwright test --project=infrastructure --ui",
"test:watch:codespaces": "npm test -- --ui-host=0.0.0.0",
"test:watch": "npm test -- --ui"
},
"simple-git-hooks": {
"pre-commit": "npm run fmt"
},
"repository": {
"type": "git",
"url": "git+https://github.com/near/neardevhub-widgets.git"
},
"author": "Near Inc <[email protected]>",
"license": "ISC",
"bugs": {
"url": "https://github.com/near/neardevhub-widgets/issues"
},
"homepage": "https://github.com/near/neardevhub-widgets#readme"
}