-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
55 lines (55 loc) · 3.07 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": "mewsfeed",
"private": true,
"version": "0.11.4",
"workspaces": [
"ui",
"tests"
],
"scripts": {
"start": "npm run network",
"local-services": "hc run-local-services -b 54000 -s 55000",
"network": "npm run build:happ && UI_PORT=8888 concurrently \"npm run playground\" \"npm run local-services\" \"npm run start:agent\" \"npm run start:agent\"",
"start:agent": "HC_PORT=$(get-port) HC_ADMIN_PORT=$(get-port) concurrently \"npm run launch:happ\" \"npm run start:browser -w ui\"",
"launch:happ": "hc s clean && echo pass | RUST_LOG=warn hc s --piped -f=$HC_ADMIN_PORT generate ./workdir/mewsfeed.happ --run=$HC_PORT -a mewsfeed network -b http://127.0.0.1:54000 webrtc ws://127.0.0.1:55000",
"start:launcher": "AGENTS=2 npm run network:launcher",
"network:launcher": "hc s clean && npm run build:happ && UI_PORT=8888 concurrently \"npm run local-services\" \"npm start -w ui\" \"npm run launch:happ:launcher\" \"holochain-playground\"",
"launch:happ:launcher": "echo \"pass\" | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/mewsfeed.happ --ui-port $UI_PORT network -b http://127.0.0.1:54000 webrtc ws://127.0.0.1:55000",
"start:agent:holo": "npm run build:happ && concurrently \"echo pass | lair-keystore server\" \"./holo-dev-server ./workdir/mewsfeed.happ\" \"sleep 15 && VITE_IS_HOLO_HOSTED=true VITE_CHAPERONE_SERVER_URL=http://127.0.0.1:24274 UI_PORT=5432 npm -w ui run start\"",
"test": "npm run build:happ && npm t -w tests",
"test:watch": "cargo watch --clear -- npm test",
"package": "npm run build:happ && npm run package:ui && hc web-app pack workdir",
"package:ui": "npm run build -w ui && cd ui/dist && bestzip ../dist.zip *",
"package:holo": "npm run build:happ && npm run package:ui && hc web-app pack workdir",
"build:happ": "rm -f dnas/**/workdir/*.dna && npm run build:dnas && hc app pack ./workdir",
"build:dnas": "npm run build:zomes && hc dna pack ./dnas/mewsfeed/workdir",
"build:zomes": "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"playground": "run-singleton \"holochain-playground\"",
"lint": "eslint --fix --ext .ts tests --ext .ts ui/src --ext .vue ui/src",
"cargo:clippy": "cargo clippy -- -D warnings",
"cargo:clippy:watch": "cargo watch --clear -- npm run cargo:clippy",
"cargo:fmt": "cargo fmt",
"cargo:fmt:check": "cargo fmt --check",
"clean": "rimraf target && rimraf .cargo && rimraf Cargo.lock && rimraf flake.lock && cargo clean"
},
"devDependencies": {
"@holochain-playground/cli": "^0.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"bestzip": "^2.2.1",
"concurrently": "^6.5.1",
"concurrently-repeat": "^0.0.1",
"cross-env": "^7.0.3",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^8.7.1",
"get-port-cli": "github:mattyg/get-port-cli#main",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"run-singleton-cli": "^0.0.7"
},
"engines": {
"npm": ">=7.0.0"
}
}