Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm monorepo, lazy loading stores onto ctx object & separation of domain data into separate stores using ctx-core #23

Merged
merged 33 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ca2bb3e
Convert ui modules & svelte components to typescript
btakita Apr 17, 2021
df5c909
fix: Session: JSON.string: circular value issue
btakita Apr 17, 2021
ced63c2
Syn: + window.syn: console: debugging
btakita Apr 18, 2021
41103d4
- rollup-plugin-typescript2
btakita Apr 18, 2021
a1667f4
ts: Holohash instead of Buffer
btakita Apr 18, 2021
07c846f
ui: + Signal,StateForSync
btakita Apr 18, 2021
f1eb2a1
ui/public/build/main.css instead of ui/public/build/bundle.css
btakita Apr 18, 2021
0931668
fix: ui/public/index.html: link[href=/build/main.css]
btakita Apr 18, 2021
0b6739e
wip
btakita Apr 23, 2021
b6a10d2
wip
btakita Apr 25, 2021
eae3e42
wip: @syn-ui/model migration complete
btakita Apr 26, 2021
9238bc6
wip: build
btakita Apr 26, 2021
dc996e5
wip: site renders
btakita Apr 26, 2021
b442813
update dependencies
btakita Apr 27, 2021
5b4cbc7
wip: Connect button: working
btakita Apr 28, 2021
85406bf
pnpm: + tests directory
btakita Apr 28, 2021
b3d45a9
@syn-ui/tests: using models: passing
btakita Apr 30, 2021
c1c25ef
app_ws: writable$ instead of derived$
btakita Apr 30, 2021
e89cffa
extracted app_ws_cb_b
btakita Apr 30, 2021
3d16c39
fix: Makefile: pnpm to run tests
btakita May 1, 2021
0a98cb0
+ session_b,session_str_b
btakita May 1, 2021
27e55dc
4 space indentation
btakita May 1, 2021
3916710
+ console_b
btakita May 1, 2021
add6188
@syn-ui/tests: + waitfor_filtered_signals_change
btakita May 1, 2021
77c8a48
fix: Connect;change text;Commit;refresh;Connect: deltas are applied
btakita May 2, 2021
81fec2d
fix: @syn-ui/test: intermittent failure with rpc_get_folks_b(me_ctx) …
btakita May 3, 2021
75e2443
fix: FolkLore signal handling
btakita May 4, 2021
6d0129a
@syn-ui/tests: waitfor instead of promise_timeout
btakita May 4, 2021
ba0ac08
using _stacktrace_filename_line from @ctx-core/function
btakita May 4, 2021
537ac8f
@syn-ui/model: recorded_changes_b: writable$ instead of recorded_chan…
btakita May 4, 2021
0258d66
fix: @syn-ui/utils: removed ./stack
btakita May 4, 2021
4253d87
fix: App: svelte compile issue
btakita May 4, 2021
a67bac3
@syn-ui/test: use run function instead of iife
btakita May 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
PATH_add node_modules/.bin
PATH_add ui/libs/*/bin
PATH_add ui/apps/*/bin
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ ui/node
.hc*
*.happ
.cargo
.idea
.rollup.cache
*.iml
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ test-unit:

test-dna:
@echo "Starting Scenario tests in $$(pwd)..."; \
cd tests && npm test
cd tests && ./node_modules/.bin/pnpm test

test-dna-debug:
@echo "Starting Scenario tests in $$(pwd)..."; \
cd tests && npm run test-debug
cd tests && ./node_modules/.bin/pnpm run test-debug

test-e2e: test-node test-dna

test-node:
@echo "Setting up Scenario/Stress test Javascript..."; \
cd tests && npm install && cd ..
cd tests && ./node_modules/.bin/pnpm install && cd ..

# Generic targets; does not require a Nix environment
.PHONY: clean
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cd ui
npm install
npm run dev
```
Now open two tabs in your browser pointing at `http://localhost:5000`. In the second tab, change the `appPort` to `8889`. Then click 'Connect'. Now you should be able to see both agents and start editing text on either tab and see it appear on the other.
Now open two tabs in your browser pointing at `http://localhost:5000`. In the second tab, change the `app_port` to `8889`. Then click 'Connect'. Now you should be able to see both agents and start editing text on either tab and see it appear on the other.

### Testing

Expand Down
2 changes: 2 additions & 0 deletions bin/tsc-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
tsc -b $(find ui/libs -maxdepth 1 -mindepth 1) $@
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@syn-ui/dev",
"private": true,
"version": "0.0.0",
"scripts": {},
"workspaces": {
"packages": [
"ui/apps/*",
"ui/libs/*"
]
},
"devDependencies": {
"@babel/runtime": "^7.14.0",
"@changesets/cli": "^2.16.0",
"@ctx-core/function": "^17.8.2",
"@ctx-core/jetbrains": "^4.0.35",
"@ctx-core/monorepo": "^15.0.57",
"@ctx-core/pnpm-tools": "^6.0.11",
"pnpm": "^6.2.5",
"typescript": "4.2.4"
},
"noUpdate": []
}
Loading