@webquark/core 1.1.0-dev.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/q-control-group.d.ts +1 -0
- package/dist/browser/components/q-control-group.js +1 -0
- package/dist/browser/components/q-divider.d.ts +1 -0
- package/dist/browser/components/q-divider.js +1 -0
- package/dist/browser/components/q-slider.d.ts +1 -0
- package/dist/browser/components/q-slider.js +1 -0
- package/dist/browser/webquark.css +1 -1
- package/dist/playground/build/p-0182e114.entry.js +1 -0
- package/dist/playground/build/{p-f98f9439.entry.js → p-048103e0.entry.js} +1 -1
- package/dist/playground/build/{p-fe8c634a.entry.js → p-0a2c52de.entry.js} +1 -1
- package/dist/playground/build/p-0baf478a.entry.js +1 -0
- package/dist/playground/build/{p-9e78b796.entry.js → p-15bad9ef.entry.js} +1 -1
- package/dist/playground/build/p-17b9713f.entry.js +1 -0
- package/dist/playground/build/{p-fec6fe0a.entry.js → p-222405b8.entry.js} +1 -1
- package/dist/playground/build/p-2eaa3a9f.entry.js +1 -0
- package/dist/playground/build/{p-90b0858c.entry.js → p-3daafc56.entry.js} +1 -1
- package/dist/playground/build/{p-09cca7b9.entry.js → p-44bbe12f.entry.js} +1 -1
- package/dist/playground/build/{p-888e46a8.entry.js → p-4609c362.entry.js} +1 -1
- package/dist/playground/build/{p-023f8437.entry.js → p-5b584d3c.entry.js} +1 -1
- package/dist/playground/build/p-65fe9cac.entry.js +1 -0
- package/dist/playground/build/p-846dc838.entry.js +1 -0
- package/dist/playground/build/{p-030ecde3.entry.js → p-84b350a3.entry.js} +1 -1
- package/dist/playground/build/p-85131314.entry.js +1 -0
- package/dist/playground/build/{p-f1bac94c.entry.js → p-852e88ae.entry.js} +1 -1
- package/dist/playground/build/{p-0aa74ad6.entry.js → p-86c05afd.entry.js} +1 -1
- package/dist/playground/build/p-8c5b2706.entry.js +1 -0
- package/dist/playground/build/p-923527f0.entry.js +1 -0
- package/dist/playground/build/{p-f4f97e74.entry.js → p-9a76cd71.entry.js} +1 -1
- package/dist/playground/build/p-9f99de41.css +1 -0
- package/dist/playground/build/p-BDsIecIx.js +1 -0
- package/dist/playground/build/p-CArIPzJU.js +1 -0
- package/dist/playground/build/{p-Dhsn99q4.js → p-DDUED8LT.js} +1 -1
- package/dist/playground/build/{p-DWO-pleQ.js → p-Dnz3WmdX.js} +1 -1
- package/dist/playground/build/p-DoGM9gsC.js +3 -0
- package/dist/playground/build/p-a0d97367.entry.js +1 -0
- package/dist/playground/build/{p-5f232b44.entry.js → p-a16bd8d5.entry.js} +1 -1
- package/dist/playground/build/{p-059daa8a.entry.js → p-a2334abe.entry.js} +1 -1
- package/dist/playground/build/{p-36118d90.entry.js → p-a2ff1b64.entry.js} +1 -1
- package/dist/playground/build/{p-dd115868.entry.js → p-a314bc21.entry.js} +1 -1
- package/dist/playground/build/p-a3e1096d.entry.js +1 -0
- package/dist/playground/build/{p-f63b7214.entry.js → p-a66550da.entry.js} +1 -1
- package/dist/playground/build/{p-f9ad63ff.entry.js → p-aa342e81.entry.js} +1 -1
- package/dist/playground/build/{p-6e28cfe2.entry.js → p-b1c771fb.entry.js} +1 -1
- package/dist/playground/build/p-b21ad707.entry.js +1 -0
- package/dist/playground/build/p-b45ca926.entry.js +1 -0
- package/dist/playground/build/{p-8ece2c62.entry.js → p-b8fdef4f.entry.js} +1 -1
- package/dist/playground/build/p-ca1c516e.js +1 -0
- package/dist/playground/build/{p-64096386.entry.js → p-d4788321.entry.js} +1 -1
- package/dist/playground/build/p-d86bd51d.entry.js +1 -0
- package/dist/playground/build/{p-48fb5228.entry.js → p-dbcf7592.entry.js} +1 -1
- package/dist/playground/build/p-e0943d41.entry.js +1 -0
- package/dist/playground/build/{p-6bfffa79.entry.js → p-e2721e77.entry.js} +1 -1
- package/dist/playground/build/{p-3bc4629c.entry.js → p-e723a7ae.entry.js} +1 -1
- package/dist/playground/build/p-eb800d1e.entry.js +1 -0
- package/dist/playground/build/{p-99d785ca.entry.js → p-f4d23ffe.entry.js} +1 -1
- package/dist/playground/build/{p-4d61b70d.entry.js → p-f51e1098.entry.js} +1 -1
- package/dist/playground/build/{p-9ff7e5a4.entry.js → p-fe14f038.entry.js} +1 -1
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/index.html +1 -1
- package/dist/playground/playground/components.manifest.json +3 -0
- package/dist/playground/playground/specs/q-control-group.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-divider.sandbox.json +20 -0
- package/dist/playground/playground/specs/q-dropdown.sandbox.json +10 -2
- package/dist/playground/playground/specs/q-input.sandbox.json +6 -0
- package/dist/playground/playground/specs/q-slider.sandbox.json +1 -0
- package/dist/playground/playground/specs/q-textarea.sandbox.json +6 -0
- package/dist/playground/playground.js +210 -199
- package/dist/playground/presets.html +37 -3
- package/dist/playground/views/tooling/tooling.html +1 -1
- package/package.json +4 -4
- package/scripts/webquark-serve.js +3 -82
- package/scripts/wq-changelog.js +0 -0
- package/scripts/wq-switch/README.md +52 -15
- package/scripts/wq-switch/dist/index.js +1 -1200
- package/scripts/wq-switch/dist/setup.js +1 -894
- package/dist/playground/build/p-04c8cb9e.entry.js +0 -1
- package/dist/playground/build/p-0ae43d6c.entry.js +0 -1
- package/dist/playground/build/p-0c3aac3f.entry.js +0 -1
- package/dist/playground/build/p-144ef339.entry.js +0 -1
- package/dist/playground/build/p-296fbdb1.entry.js +0 -1
- package/dist/playground/build/p-70d9ffde.entry.js +0 -1
- package/dist/playground/build/p-91fff6b6.entry.js +0 -1
- package/dist/playground/build/p-923dac41.entry.js +0 -1
- package/dist/playground/build/p-97a89cae.entry.js +0 -1
- package/dist/playground/build/p-B4Mg1xEw.js +0 -1
- package/dist/playground/build/p-B5ElFlHv.js +0 -3
- package/dist/playground/build/p-ByfrUWx1.js +0 -1
- package/dist/playground/build/p-c523ec6f.entry.js +0 -1
- package/dist/playground/build/p-c923c9c0.js +0 -1
- package/dist/playground/build/p-d0253d64.entry.js +0 -1
- package/dist/playground/build/p-d0fbd2b1.entry.js +0 -1
- package/dist/playground/build/p-e0bb74ae.css +0 -1
- package/dist/playground/build/p-fe200f68.entry.js +0 -1
- package/dist/playground/views/tooling/adoption/CHANGELOG.md +0 -13
- package/dist/playground/views/tooling/adoption/README.md +0 -47
- package/dist/playground/views/tooling/adoption/changelog.config.ts +0 -12
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/README.md +0 -3
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/images/release-panel.svg +0 -7
- package/dist/playground/views/tooling/adoption/docs/changelog/unreleased/visuals.json +0 -16
- package/dist/playground/views/tooling/adoption/docs/changelog/v0.1.0/README.md +0 -3
- package/dist/playground/views/tooling/adoption/generate.ts +0 -13
- package/dist/playground/views/tooling/adoption/package.json +0 -10
- package/dist/playground/views/tooling/adoption/serve.ts +0 -24
- package/dist/playground/views/tooling/adoption/viewer.html +0 -16
- package/dist/playground/views/tooling/adoption/viewer.js +0 -54
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WebQuark local tooling
|
|
2
2
|
|
|
3
3
|
Run the commands in the **consuming project**, in the directory containing its
|
|
4
|
-
package.json. The tooling is being rebuilt before full release and uses one
|
|
4
|
+
package.json. CLI execution requires Node.js 24 or newer. The tooling is being rebuilt before full release and uses one
|
|
5
5
|
supported consumer layout:
|
|
6
6
|
|
|
7
7
|
```text
|
|
@@ -49,7 +49,31 @@ Setup writes `.webquark/.webquark.json` with settings inside `"wq-switch"`:
|
|
|
49
49
|
|
|
50
50
|
Without `--source`, setup creates an empty source setting. Fill it in before
|
|
51
51
|
running `local` or `build`. Relative source paths resolve from the consuming
|
|
52
|
-
|
|
52
|
+
configuration owner's directory (the parent of `.webquark`), even when a child
|
|
53
|
+
consumer inherits that configuration.
|
|
54
|
+
|
|
55
|
+
### Shared workspace configuration
|
|
56
|
+
|
|
57
|
+
A consumer first uses its own `wq-switch` configuration, then the nearest
|
|
58
|
+
ancestor configuration up to its declared workspace root. Workspace membership
|
|
59
|
+
comes from `package.json` `workspaces` arrays or `workspaces.packages`, with
|
|
60
|
+
relative positive glob patterns. A nested workspace root is a boundary; a
|
|
61
|
+
consumer not included in the nearest workspace does not inherit its settings.
|
|
62
|
+
Standalone projects never inherit configuration merely because a parent has one.
|
|
63
|
+
Invalid nearer configuration fails explicitly. Configurations are not merged.
|
|
64
|
+
|
|
65
|
+
Keep a single `.webquark/.webquark.json` at the workspace root to share settings.
|
|
66
|
+
Each consumer still owns its own `.webquark/state/`, `.webquark/generated/packages/`,
|
|
67
|
+
package connections, and two-snapshot limit. Commands continue to identify the
|
|
68
|
+
consumer using its nearest `package.json`. `status` prints the exact configuration
|
|
69
|
+
file and resolved source directory.
|
|
70
|
+
|
|
71
|
+
Running `setup` in a child reuses inherited settings and adds only that consumer's
|
|
72
|
+
scripts and ignore entries; it does not create another configuration file.
|
|
73
|
+
Change shared settings from their owning project. Setup refuses a child request
|
|
74
|
+
to change an inherited source, and refuses shared-setting changes while an
|
|
75
|
+
affected workspace member has active state or pending recovery. If no applicable
|
|
76
|
+
configuration exists, setup creates one in the current consumer as before.
|
|
53
77
|
|
|
54
78
|
`preferredVersion` is copied from the consumer's first declared WebQuark dependency
|
|
55
79
|
(core takes precedence, then browser, tooling, Angular and React).
|
|
@@ -96,7 +120,8 @@ Original package backups depend on the installed package graph remaining intact.
|
|
|
96
120
|
|
|
97
121
|
## Developing the CLI
|
|
98
122
|
|
|
99
|
-
|
|
123
|
+
Tooling owns the bundled Node executables `wq-switch` and `wq-setup`; core
|
|
124
|
+
preserves its existing executable paths through forwarding launchers. Build them
|
|
100
125
|
from the current WebQuark checkout:
|
|
101
126
|
|
|
102
127
|
```powershell
|
|
@@ -106,10 +131,10 @@ bun run --cwd "D:\Dev\PurelyIT\WebQuark" switch:build
|
|
|
106
131
|
To exercise that exact build, invoke it directly from the consuming project:
|
|
107
132
|
|
|
108
133
|
```powershell
|
|
109
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
110
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
111
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
112
|
-
node "D:\Dev\PurelyIT\WebQuark\
|
|
134
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" setup --source "D:\Dev\PurelyIT\WebQuark"
|
|
135
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" local
|
|
136
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" status
|
|
137
|
+
node "D:\Dev\PurelyIT\WebQuark\packages\tooling\dist\wq-switch\index.cjs" npm
|
|
113
138
|
```
|
|
114
139
|
|
|
115
140
|
Use the same checkout executable for subsequent commands while testing CLI
|
|
@@ -141,9 +166,18 @@ that operation before changing the consumer's active state.
|
|
|
141
166
|
projects coordinate builds of the same checkout. Interrupted operations roll
|
|
142
167
|
back before the next modifying command. Connections changed by another install
|
|
143
168
|
are detected and are not overwritten.
|
|
144
|
-
-
|
|
169
|
+
- Each consumer retains at most two completed snapshots: its active generation
|
|
170
|
+
and the newest remaining fallback. Successful activation, recovery, and npm
|
|
171
|
+
restoration delete older generations automatically, oldest first; npm mode
|
|
172
|
+
keeps the newest two. A third generation may exist temporarily while staging
|
|
173
|
+
and switching. Active and recovery-journal generations are never pruned.
|
|
174
|
+
Failed staging removes its partial generation. Cleanup failures fail the command
|
|
175
|
+
explicitly; retry after resolving the reported filesystem error. A committed
|
|
176
|
+
activation stays active even when its subsequent cleanup fails.
|
|
177
|
+
- Restart consumer servers after every activation. Processes using snapshots
|
|
178
|
+
older than the retained fallback must be stopped before the next switch.
|
|
145
179
|
After restoring npm and stopping those processes, `.webquark/generated/` can
|
|
146
|
-
be removed
|
|
180
|
+
still be removed manually. Keep `.webquark/.webquark.json` for future use.
|
|
147
181
|
|
|
148
182
|
## Preflight checks
|
|
149
183
|
|
|
@@ -161,13 +195,16 @@ These checks read configuration and state without changing files.
|
|
|
161
195
|
|
|
162
196
|
## Source and validation
|
|
163
197
|
|
|
164
|
-
`
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
198
|
+
`cli/` routes user inputs; `commands/` coordinates distinct command intents;
|
|
199
|
+
`workflows/` orchestrates atomic snapshot activation, npm restoration, crash recovery,
|
|
200
|
+
and snapshot pruning; `domains/` owns workspace discovery, immutable snapshots,
|
|
201
|
+
transactions, and launcher binaries; `infrastructure/` provides filesystem safety and
|
|
202
|
+
concurrency locking.
|
|
203
|
+
|
|
204
|
+
`index.ts` and `setup.ts` serve as entrypoints. Bundled files in `packages/tooling/dist/wq-switch/` are generated.
|
|
169
205
|
|
|
170
206
|
```powershell
|
|
171
207
|
bun run switch:build
|
|
172
|
-
|
|
208
|
+
bun run core:build
|
|
209
|
+
bunx vitest run --project tooling src/tooling/wq-switch/switch.unit.test.ts src/tooling/wq-switch/check.unit.test.ts
|
|
173
210
|
```
|