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

🌳 #8

Open
wants to merge 231 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
31c7f29
Update README.md
philcockfield Nov 29, 2024
ae0f273
Update README.md
philcockfield Nov 29, 2024
4670bc3
docs
philcockfield Dec 1, 2024
8de87b4
refactor test
philcockfield Dec 1, 2024
a6a207a
mount code (run).
philcockfield Dec 2, 2024
12e332d
bump
philcockfield Dec 2, 2024
ff3084a
build to /dist (in root folder)
philcockfield Dec 2, 2024
4ab3e5c
show root dir as path (log)
philcockfield Dec 2, 2024
df4b354
move nav to /src
philcockfield Dec 3, 2024
22a89ea
refactor
philcockfield Dec 3, 2024
1269206
bump
philcockfield Dec 3, 2024
417bd5c
refactor: β†’ /src
philcockfield Dec 3, 2024
ab13601
Sample UI component
philcockfield Dec 3, 2024
78d81b5
Holding pattern for a video player
philcockfield Dec 4, 2024
e460f95
bump
philcockfield Dec 4, 2024
a8badb4
Update tmpl.ts.-theme.ts
philcockfield Dec 4, 2024
2a66584
FIX: update changed files within .hidden folders
philcockfield Dec 5, 2024
15cfd17
stub in Help command
philcockfield Dec 5, 2024
306dfb5
Update tmpl.ts.-theme.ts
philcockfield Dec 5, 2024
1c7e3eb
Help command
philcockfield Dec 5, 2024
b98c62e
Update deno.json
philcockfield Dec 5, 2024
07d1c6e
rename type
philcockfield Dec 5, 2024
40d28b8
logging
philcockfield Dec 5, 2024
f80aabf
remove setup (sample)
philcockfield Dec 5, 2024
6849dae
rename func
philcockfield Dec 5, 2024
9b12fb6
remove tmpl updates on dev/build
philcockfield Dec 5, 2024
b7fde7a
Video player
philcockfield Dec 5, 2024
c1f7a46
Update tmpl.ts.-components.sys.ts
philcockfield Dec 5, 2024
76751d5
reload
philcockfield Dec 5, 2024
9a0ed18
bump
philcockfield Dec 5, 2024
91303a0
fix tests
philcockfield Dec 5, 2024
08e54eb
bump
philcockfield Dec 5, 2024
3d11e51
color tweaks
philcockfield Dec 5, 2024
f7f4cdf
update refs
philcockfield Dec 5, 2024
7cd753a
Update tmpl.docs.ts
philcockfield Dec 5, 2024
6ce14ba
Update tmpl.json.-denofile.ts
philcockfield Dec 5, 2024
aaeacd5
Delete package.json
philcockfield Dec 5, 2024
f1eb847
move file
philcockfield Dec 5, 2024
50869e7
update refs
philcockfield Dec 5, 2024
00aeca7
migration update
philcockfield Dec 5, 2024
c61ec1c
tweak log
philcockfield Dec 5, 2024
9ba85b4
tmpl: theme
philcockfield Dec 5, 2024
f67a05a
remove pkg tmpl
philcockfield Dec 5, 2024
8b924e6
add plugin vue
philcockfield Dec 5, 2024
ca37316
Update u.Log.ts
philcockfield Dec 5, 2024
ab910c8
clean up
philcockfield Dec 5, 2024
08c00fb
bump
philcockfield Dec 5, 2024
5048150
tweak test fixes
philcockfield Dec 5, 2024
b8a686c
tweak - fix build
philcockfield Dec 5, 2024
44c0760
refactor
philcockfield Dec 6, 2024
77add40
Update deno.lock
philcockfield Dec 6, 2024
7241a0e
export components
philcockfield Dec 6, 2024
c072279
tweak colors
philcockfield Dec 6, 2024
2a55eb1
sample component
philcockfield Dec 6, 2024
9f842cf
Update deno.json
philcockfield Dec 6, 2024
d8a1fe2
rename script file
philcockfield Dec 6, 2024
c6d5c55
refactor params β†’ {args}
philcockfield Dec 6, 2024
971c65d
overload HttpServer.options
philcockfield Dec 6, 2024
acaeb4d
Update -.test.ts
philcockfield Dec 6, 2024
7ad3bb1
std http server: print keyboard options (when enabled)
philcockfield Dec 6, 2024
27f30c9
print keyboard options
philcockfield Dec 6, 2024
634cb3c
Update deno.json
philcockfield Dec 6, 2024
0a57c40
tweak
philcockfield Dec 6, 2024
bac3ccd
find next random port
philcockfield Dec 6, 2024
45d54b4
refactor
philcockfield Dec 6, 2024
187a069
bump
philcockfield Dec 6, 2024
836e7a3
Sample React component rendering
philcockfield Dec 6, 2024
a4ad29a
bump
philcockfield Dec 6, 2024
799ce18
bump
philcockfield Dec 6, 2024
3c7d3fb
fix imports
philcockfield Dec 6, 2024
a075fe0
fix build
philcockfield Dec 6, 2024
ffa0d1a
fix: after UserAgent library update
philcockfield Dec 6, 2024
99ac44a
update refs
philcockfield Dec 6, 2024
70e8e09
bump
philcockfield Dec 6, 2024
04ccdd5
add refs
philcockfield Dec 7, 2024
1415390
Update Doc.ts
philcockfield Dec 7, 2024
2ebc38b
Update tmpl.json.-package.ts
philcockfield Dec 7, 2024
f9f80b0
move sample video to tmpl
philcockfield Dec 7, 2024
138ebf6
bump
philcockfield Dec 7, 2024
c16f02c
stub in sample files (tmpl) ← WIP
philcockfield Dec 8, 2024
8bc6dce
stub in new wrapper structure
philcockfield Dec 8, 2024
07755f6
Update tmpl.ts.-components.sys.ts
philcockfield Dec 8, 2024
3a02794
rename
philcockfield Dec 8, 2024
b1d21de
update templates
philcockfield Dec 8, 2024
a60e4fa
bump
philcockfield Dec 8, 2024
2adf319
remove WIP files
philcockfield Dec 8, 2024
748f834
config from root
philcockfield Dec 8, 2024
47672bb
markdown config β†’ tmpl
philcockfield Dec 9, 2024
906e4ae
tmpl: β†’ markdown config setup
philcockfield Dec 9, 2024
4ab9785
tweak
philcockfield Dec 10, 2024
3303247
Update mod.ts
philcockfield Dec 10, 2024
a242c23
organize old tmplate files
philcockfield Dec 10, 2024
d2ad7de
clean up
philcockfield Dec 10, 2024
f09c9d9
stub in Tmpl
philcockfield Dec 10, 2024
3479a34
refactor
philcockfield Dec 10, 2024
2f85384
Is.file
philcockfield Dec 10, 2024
411b625
initial basic copy on Tmpl
philcockfield Dec 10, 2024
65c87dc
Update -u.ts
philcockfield Dec 10, 2024
d1e4a4d
Update -clean.ts
philcockfield Dec 10, 2024
9067d42
bump
philcockfield Dec 10, 2024
cfd68ec
refactor
philcockfield Dec 10, 2024
8d0f2cb
bump
philcockfield Dec 10, 2024
0c3b3ff
add ref and bump
philcockfield Dec 10, 2024
9088ef3
adjust
philcockfield Dec 10, 2024
d622b6a
Update m.Tmpl.ts
philcockfield Dec 10, 2024
149ee56
fix
philcockfield Dec 10, 2024
44adce3
rename folder
philcockfield Dec 10, 2024
acf88be
Update -u.ts
philcockfield Dec 10, 2024
d6a6120
cwd: expose current working directory props
philcockfield Dec 10, 2024
f769a69
bump
philcockfield Dec 10, 2024
49e6f32
refactor
philcockfield Dec 10, 2024
f2b33d4
move type
philcockfield Dec 10, 2024
f7d38aa
rename type
philcockfield Dec 10, 2024
5cc49cd
Path.extname
philcockfield Dec 11, 2024
cec53c7
typo
philcockfield Dec 11, 2024
5c22236
exclude file (with reason) ← and test
philcockfield Dec 11, 2024
96218e4
target passed as param
philcockfield Dec 11, 2024
42f1b48
rename
philcockfield Dec 11, 2024
e0eaea2
run tests in parallel
philcockfield Dec 11, 2024
1dba8ad
--parallel (on JSR test run)
philcockfield Dec 11, 2024
5f5da7d
lint fix
philcockfield Dec 11, 2024
6faf0ea
Update settings.json
philcockfield Dec 11, 2024
9b564ad
copy operation: rename file, change text
philcockfield Dec 11, 2024
44c90a6
docs
philcockfield Dec 11, 2024
748ea84
Update settings.json
philcockfield Dec 12, 2024
96d13af
Update tmpl.gitignore.ts
philcockfield Dec 12, 2024
258b988
more state on response objects
philcockfield Dec 12, 2024
2eefd3b
tests for exclusion
philcockfield Dec 14, 2024
d19f49b
exclude: optional reason and { reason } object on response object.
philcockfield Dec 14, 2024
c4d68b5
remove: action field
philcockfield Dec 14, 2024
6b127d7
fix: renamed files written correctly to target dir
philcockfield Dec 14, 2024
77189f2
remove exists flag
philcockfield Dec 15, 2024
7f78933
write: "create" | "update" or none depending on diff
philcockfield Dec 15, 2024
317d385
Update u.copy.ts
philcockfield Dec 15, 2024
1b26510
stub in module
philcockfield Dec 15, 2024
6957d21
move Tmpl module to proper module
philcockfield Dec 15, 2024
8725918
add @sys/tmpl to CI (first publish)
philcockfield Dec 15, 2024
5884eca
update docs
philcockfield Dec 15, 2024
dee3e61
export from /fs
philcockfield Dec 15, 2024
0506ebe
isolate and export template
philcockfield Dec 15, 2024
977cf1a
tweaks
philcockfield Dec 15, 2024
96d60de
refactor
philcockfield Dec 15, 2024
2f20057
initial templates as files
philcockfield Dec 15, 2024
3a14882
Update settings.json
philcockfield Dec 16, 2024
c29fafe
args: target file `exists` flag
philcockfield Dec 16, 2024
ffc48ea
Tmpl: table logger
philcockfield Dec 16, 2024
2e8b882
Table type
philcockfield Dec 16, 2024
e4699ed
refactor
philcockfield Dec 16, 2024
fda17e6
bump
philcockfield Dec 16, 2024
a3105b1
stub in force param
philcockfield Dec 17, 2024
8c7e29f
force details shown in log output
philcockfield Dec 17, 2024
c7d684a
Update m.main.upgrade.ts
philcockfield Dec 17, 2024
7f60090
template files
philcockfield Dec 17, 2024
7beba18
swap out to use Tmpl
philcockfield Dec 17, 2024
70d8476
update test
philcockfield Dec 17, 2024
cd9c5ee
delete old templates
philcockfield Dec 17, 2024
18cfb2c
clean up
philcockfield Dec 17, 2024
a4c1d4d
refactor Log
philcockfield Dec 17, 2024
4b731c5
update call-site
philcockfield Dec 17, 2024
2d20172
docs
philcockfield Dec 17, 2024
0d516fa
refactor
philcockfield Dec 17, 2024
3df9846
flag: write (--dry-run)
philcockfield Dec 17, 2024
2a2e1a5
Update t.ts
philcockfield Dec 17, 2024
b82920d
Fs.glob: includeDirs option
philcockfield Dec 18, 2024
54cc714
Update settings.json
philcockfield Dec 18, 2024
5d6a508
Update u.glob.ts
philcockfield Dec 18, 2024
254c2e6
tmpl.filter
philcockfield Dec 18, 2024
b4f5b34
move file
philcockfield Dec 18, 2024
08647d4
tweak
philcockfield Dec 18, 2024
c03608b
upgrade using new template
philcockfield Dec 18, 2024
59d8f60
fix tests
philcockfield Dec 18, 2024
4f36694
bump
philcockfield Dec 18, 2024
309b53b
vump
philcockfield Dec 18, 2024
68a69e9
tmp
philcockfield Dec 18, 2024
774dbc1
tmp
philcockfield Dec 18, 2024
d9637b8
Stub in initial <FileMap> structure.
philcockfield Dec 18, 2024
e21cd2b
Update settings.json
philcockfield Dec 18, 2024
c4a6d0e
helpers for retrieving supported content-type (MIME) for extensions
philcockfield Dec 19, 2024
b54a225
Path.extname takes non-string input (returns "")
philcockfield Dec 19, 2024
bee7ff8
encode/decode from Data URI format (RFC 2397)
philcockfield Dec 19, 2024
cbe7b31
Is.mimeSupported
philcockfield Dec 19, 2024
0534bac
support binary files, images, and .gitignore files
philcockfield Dec 20, 2024
ffe96c0
Update -.test.ts
philcockfield Dec 20, 2024
804ee3f
change sample png
philcockfield Dec 20, 2024
4b2b673
FIX: unit-tests, copy test files fresh for each test
philcockfield Dec 21, 2024
07bd315
Fs.glob ← options passed to root constructor
philcockfield Dec 21, 2024
8806e25
write files from a FileMap bundle
philcockfield Dec 21, 2024
3fa6bd8
fix error
philcockfield Dec 22, 2024
9fed004
Fs.ls helper
philcockfield Dec 22, 2024
522be43
Fs.write (string and binary)
philcockfield Dec 22, 2024
b92eec4
Fs.write - options
philcockfield Dec 23, 2024
28a7bd9
update call sites
philcockfield Dec 23, 2024
3d513f8
refactor
philcockfield Dec 23, 2024
d0b7e68
additional test
philcockfield Dec 23, 2024
fd1780b
move <FileMap> to @sys/std-s/fs
philcockfield Dec 23, 2024
52f0e7b
Update libs.ts
philcockfield Dec 23, 2024
9f3880a
make template factory async
philcockfield Dec 23, 2024
9d37f27
Fs.writeJson (helper)
philcockfield Dec 23, 2024
24b4370
save <FileMap> of templates (via script)
philcockfield Dec 23, 2024
b15a312
refactor (and save file-map within unit-test)
philcockfield Dec 23, 2024
089bf20
rename function
philcockfield Dec 24, 2024
1701ea6
hydrate file-map for template system
philcockfield Dec 24, 2024
2f3bdb7
FileMap: support all file types ← "text/plain" mime
philcockfield Dec 24, 2024
a7998a9
update file-map
philcockfield Dec 24, 2024
bdf62fd
bump
philcockfield Dec 24, 2024
7ea499b
remove prep test (causes possible dirty repo)
philcockfield Dec 24, 2024
c414719
bump
philcockfield Dec 25, 2024
a9fcc17
Update deno.json
philcockfield Dec 25, 2024
2a89dce
bump
philcockfield Dec 25, 2024
8e44045
restore publish CI
philcockfield Dec 25, 2024
c5ac448
Update -.test.ts
philcockfield Dec 25, 2024
7bf1497
FIX unit test: sort arrays
philcockfield Dec 25, 2024
a5eec56
Update u.write.ts
philcockfield Dec 25, 2024
91d83ec
refactor JSON import
philcockfield Dec 25, 2024
d150346
tmpl: Log β†’ "empty" message
philcockfield Dec 25, 2024
37b8090
Update deno.json
philcockfield Dec 25, 2024
a529879
clean
philcockfield Dec 26, 2024
986ec29
Delete jsr.yml_
philcockfield Dec 26, 2024
311515c
path change
philcockfield Dec 26, 2024
8c0fb72
Update deno.json
philcockfield Dec 26, 2024
8785ad1
update
philcockfield Dec 26, 2024
d8f6e12
bump
philcockfield Dec 26, 2024
6c3732b
update template paths
philcockfield Dec 26, 2024
b093a12
Update deno.json
philcockfield Dec 26, 2024
588b02b
upgrade test
philcockfield Dec 26, 2024
a1b39a1
Update deno.json
philcockfield Dec 26, 2024
769b394
bump
philcockfield Dec 26, 2024
2565b25
docs: @sys/ui-react β†’ bump
philcockfield Dec 27, 2024
f2533dd
docs: β†’ @sys/ui-dom β†’ bump
philcockfield Dec 27, 2024
31e934c
pub: ui-dom
philcockfield Dec 27, 2024
2b22fbe
tmp: skip
philcockfield Dec 27, 2024
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
2 changes: 1 addition & 1 deletion -tmp/-wip/ui-common/src/common/t.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type {
ModuleImports,
ObjectPath,
Observable,
PartialDeep,
DeepPartial,
PatchOperation,
Percent,
PickRequired,
Expand Down
2 changes: 1 addition & 1 deletion -tmp/-wip/ui-common/src/ui/Button/t.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type ButtonProps = {
isDown?: boolean; // force the button into an "is-down" state.

spinning?: boolean;
spinner?: t.PartialDeep<ButtonSpinner>;
spinner?: t.DeepPartial<ButtonSpinner>;

style?: t.CssValue;
theme?: t.CommonTheme;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: deno task dry

- name: CI β†’ tests
run: deno task test --trace-leaks
run: deno task test --trace-leaks --parallel

- name: Info (Monorepo)
run: deno task info
105 changes: 4 additions & 101 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,111 +29,14 @@ jobs:
with:
deno-version: v2

- name: publish module β†’ "@sys/types"
run: |
cd code/sys/types
deno task test
deno publish

- name: publish module β†’ "@sys/std"
run: |
cd code/sys/std
deno task test
deno publish

- name: publish module β†’ "@sys/std-s"
run: |
cd code/sys/std-s
deno task test
deno publish

- name: publish module β†’ "@sys/cmd"
run: |
cd code/sys/cmd
deno task test
deno publish

- name: publish module β†’ "@sys/testing"
run: |
cd code/sys/testing
deno task test
deno publish

- name: publish module β†’ "@sys/text"
run: |
cd code/sys/text
deno task test
deno publish

- name: publish module β†’ "@sys/tmp"
run: |
cd code/sys.tmp
deno task test
deno publish

- name: publish module β†’ "@sys/ui-css"
run: |
cd code/sys.ui/ui-css
deno task test
deno publish

- name: publish module β†’ "@sys/ui-dom"
run: |
cd code/sys.ui/ui-dom
deno task test
deno publish

- name: publish module β†’ "@sys/ui-react"
run: |
cd code/sys.ui/ui-react
deno task test
deno publish

- name: publish module β†’ "@sys/ui-dev-harness"
run: |
cd code/sys.ui/ui-dev-harness
deno task test
deno publish

# 🐷
# - name: publish module β†’ "@sys/driver-automerge"
# run: |
# cd code/sys.driver/driver-automerge
# deno task test
# deno publish

- name: publish module β†’ "@sys/driver-deno"
run: |
cd code/sys.driver/driver-deno
deno task test
deno publish

- name: publish module β†’ "@sys/driver-immer"
run: |
cd code/sys.driver/driver-immer
deno task test
deno publish

- name: publish module β†’ "@sys/driver-obsidian"
run: |
cd code/sys.driver/driver-obsidian
deno task test
deno publish

- name: publish module β†’ "@sys/driver-vite"
run: |
cd code/sys.driver/driver-vite
deno task test --trace-leaks
deno publish

- name: publish module β†’ "@sys/driver-vitepress"
run: |
cd code/sys.driver/driver-vitepress
deno task test --trace-leaks
deno task test --parallel --trace-leaks
deno publish

- name: publish module β†’ "@sys/driver-quilibrium"
- name: publish module β†’ "@sys/ui-dom"
run: |
cd code/sys.driver/driver-quilibrium
deno task test
cd code/sys.ui/ui-dom
deno task test --parallel
deno publish
145 changes: 145 additions & 0 deletions .github/workflows/jsr.yml__
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# https://docs.deno.com/deploy/manual/ci_github
# https://jsr.io/docs/publishing-packages#publishing-from-github-actions

name: jsr

on:
push:
branches:
- main
- phil-work

jobs:
deno:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
environment: dev
env:
TEST_SAMPLE: ${{ vars.TEST_SAMPLE }}
DENO_SUBHOSTING_ACCESS_TOKEN: ${{ secrets.DENO_SUBHOSTING_ACCESS_TOKEN }}
DENO_SUBHOSTING_DEPLOY_ORG_ID: ${{ vars.DENO_SUBHOSTING_DEPLOY_ORG_ID }}
PRIVY_APP_ID: ${{ vars.PRIVY_APP_ID }}
PRIVY_APP_SECRET: ${{ secrets.PRIVY_APP_SECRET }}

steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v2

- name: publish module β†’ "@sys/types"
run: |
cd code/sys/types
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/std"
run: |
cd code/sys/std
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/std-s"
run: |
cd code/sys/std-s
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/cmd"
run: |
cd code/sys/cmd
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/testing"
run: |
cd code/sys/testing
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/text"
run: |
cd code/sys/text
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/tmpl"
run: |
cd code/sys/tmpl
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/tmp"
run: |
cd code/sys.tmp
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/ui-css"
run: |
cd code/sys.ui/ui-css
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/ui-dom"
run: |
cd code/sys.ui/ui-dom
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/ui-react"
run: |
cd code/sys.ui/ui-react
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/ui-dev-harness"
run: |
cd code/sys.ui/ui-dev-harness
deno task test --parallel
deno publish

# 🐷
# - name: publish module β†’ "@sys/driver-automerge"
# run: |
# cd code/sys.driver/driver-automerge
# deno task test --parallel
# deno publish

- name: publish module β†’ "@sys/driver-deno"
run: |
cd code/sys.driver/driver-deno
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/driver-immer"
run: |
cd code/sys.driver/driver-immer
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/driver-obsidian"
run: |
cd code/sys.driver/driver-obsidian
deno task test --parallel
deno publish

- name: publish module β†’ "@sys/driver-vite"
run: |
cd code/sys.driver/driver-vite
deno task test --parallel --trace-leaks
deno publish

- name: publish module β†’ "@sys/driver-vitepress"
run: |
cd code/sys.driver/driver-vitepress
deno task test --parallel --trace-leaks
deno publish

- name: publish module β†’ "@sys/driver-quilibrium"
run: |
cd code/sys.driver/driver-quilibrium
deno task test --parallel
deno publish
14 changes: 12 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"typescript.disableAutomaticTypeAcquisition": true,
"typescript.tsserver.maxTsServerMemory": 8192,

"editor.suggest.snippetsPreventQuickSuggestions": false,

"deno.enable": true,
"deno.lint": true,
"search.exclude": {}
"deno.lint": false,
"deno.unstable": [],
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
"-tmp": true
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![ci](https://github.com/sys-repo/sys/actions/workflows/ci.yml/badge.svg)](https://github.com/sys-repo/sys/actions/workflows/ci.yml)
[![jsr](https://github.com/sys-repo/sys/actions/workflows/jsr.yml/badge.svg)](https://github.com/sys-repo/sys/actions/workflows/jsr.yml)


Monorepo comprising the core set of shared `/sys` "system" modules that flexibly compose into varying arrangements of (1) extremely-late-bound, (2) strongly typed, (3) decentralised, "cell like" functional processes.

- modules: [sys](/code/sys/) ← standard libs
Expand Down Expand Up @@ -231,7 +230,7 @@ The inverse proposition also appears to be true:

"Framework" agnostic. Web standards.

![image](https://github.com/user-attachments/assets/19214e9f-5e40-403f-9cef-20994f39ea07)
![image](https://github.com/user-attachments/assets/853a68bb-060d-4c64-be19-094e75b39523)



Expand Down
2 changes: 1 addition & 1 deletion code/sys.driver/driver-automerge/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sys/driver-automerge",
"version": "0.0.21",
"version": "0.0.25",
"license": "MIT",
"tasks": {
"lint": "deno lint",
Expand Down
13 changes: 2 additions & 11 deletions code/sys.driver/driver-automerge/src/crdt.fs/Store.Fs/-.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import { describe, expect, Fs, it, slug } from '../../-test.ts';
import { describe, expect, it } from '../../-test.ts';
import { SAMPLE } from './-u.ts';
import { Is } from './common.ts';
import { FsStore } from './mod.ts';

export const SAMPLE = {
async setup() {
const root = Fs.resolve('./.tmp/test');
const instance = Fs.join(root, slug());
const dir = { root, instance } as const;
await Fs.ensureDir(dir.instance);
return { dir } as const;
},
};

describe('Store.Fs', () => {
it('init', async () => {
const sample = await SAMPLE.setup();
Expand Down
11 changes: 11 additions & 0 deletions code/sys.driver/driver-automerge/src/crdt.fs/Store.Fs/-u.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Fs, slug } from '../../-test.ts';

export const SAMPLE = {
async setup() {
const root = Fs.resolve('./.tmp/test');
const instance = Fs.join(root, slug());
const dir = { root, instance } as const;
await Fs.ensureDir(dir.instance);
return { dir } as const;
},
};
17 changes: 16 additions & 1 deletion code/sys.driver/driver-automerge/src/crdt.fs/Store.Fs/t.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
import type { t } from '../common.ts';

/**
* Represents a CRDT store that has access to a file-system.
* Tools for working with CRDT's in environments where a file-system is available.
*/
export type FsStoreLib = {
init(args: t.FsStoreInitArgs): t.FsStore;

};

/** Arguments passed to `FsStore.init` */
export type FsStoreInitArgs = {
dir: t.StringDir;
dispose$?: t.UntilObservable;
debug?: t.StoreDebug;
};

/**
* Represents a CRDT store that has access to a native file-system.
*/
export type FsStore = t.Store & {
readonly dir: t.StringDir;
Expand Down
Loading
Loading