Skip to content

Commit cda86c9

Browse files
Add test-applet script
1 parent eb282de commit cda86c9

File tree

7 files changed

+3719
-12
lines changed

7 files changed

+3719
-12
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
"start": "AGENTS=2 BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) npm run network",
77
"network": "hc s clean && npm run build:happ && UI_PORT=8888 concurrently \"npm run launch\" \"npm run start -w app\"",
88
"test": "npm run build:happ && cargo nextest run -j 1",
9-
"package": "npm run build:happ && npm run build -w @lightningrodlabs/notebooks && npm run package -w app",
9+
"package": "npm run build:happ && npm run package -w app && hc web-app pack workdir --recursive",
1010
"build:happ": "npm run build:zomes && hc app pack workdir --recursive",
1111
"build:zomes": "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
12-
"launch": "concurrently \"hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/notebooks.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$SIGNAL_PORT\"\"",
13-
"playground": "holochain-playground"
12+
"launch": "concurrently \"npm run local-services\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/notebooks.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$SIGNAL_PORT\"\"",
13+
"local-services": "hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT",
14+
"playground": "holochain-playground",
15+
"test:applet": "cross-env BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) concurrently -k \"npm run local-services\" \"npm run launch:applet\" \"npm run launch:applet\"",
16+
"launch:applet": "we-alpha --test-applets workdir/notebooks.webhapp --test-applets-network-seed test "
1417
},
1518
"devDependencies": {
1619
"@holochain-playground/cli": "^0.1.1",

ui/dist/assets/index-740235c3.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/dist/assets/index-d279025b.js

Lines changed: 3658 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/dist/index.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
8+
/>
9+
<meta name="Description" content="Put your description here." />
10+
<base href="/" />
11+
12+
<style>
13+
html,
14+
body {
15+
margin: 0;
16+
padding: 0;
17+
font-family: sans-serif;
18+
background-color: #ededed;
19+
height: 100%;
20+
}
21+
body {
22+
display: flex;
23+
}
24+
25+
:root {
26+
--mdc-theme-primary: #7b1fa2;
27+
--mdc-theme-secondary: #ff5722;
28+
}
29+
</style>
30+
<link
31+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
32+
rel="stylesheet"
33+
/>
34+
35+
<title>Notebooks</title>
36+
<script type="module" crossorigin src="/assets/index-d279025b.js"></script>
37+
<link rel="stylesheet" href="/assets/index-740235c3.css">
38+
</head>
39+
40+
<body>
41+
<notebooks-app style="flex: 1"></notebooks-app>
42+
43+
44+
</body>
45+
</html>

ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"scripts": {
88
"start": "vite --port $UI_PORT --clearScreen false",
99
"build": "vite build",
10+
"package": "npm run build && cd dist && bestzip ../dist.zip *",
1011
"lint": "eslint --ext .ts,.html . && prettier \"**/*.ts\" --check",
11-
"format": "eslint --ext .ts,.html . --fix && prettier \"**/*.ts\" --write",
12-
"package": "npm run build && cd dist && bestzip ../dist.zip *"
12+
"format": "eslint --ext .ts,.html . --fix && prettier \"**/*.ts\" --write"
1313
},
1414
"dependencies": {
1515
"@holochain-open-dev/elements": "^0.7.0",

ui/workdir/web-happ.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

workdir/web-happ.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
manifest_version: "1"
3+
name: notebooks
4+
ui:
5+
bundled: "../ui/dist.zip"
6+
happ_manifest:
7+
bundled: "./notebooks.happ"

0 commit comments

Comments
 (0)