@human-synthesis/norns-core 0.0.7 → 0.0.8
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/README.md +5 -1
- package/package.json +1 -1
- package/src/preprocess.js +0 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**AI-driven software architecture and development framework, based on Svelte.**
|
|
4
4
|
|
|
5
|
-
Svelte preprocessor for the Norns stack: **Pug + Civet** in `.n` files. The `.c` extension is recognised as an alias for `.civet` — both compile through Civet.
|
|
5
|
+
Svelte preprocessor for the Norns stack: **Pug + Civet** in `.n` files. The `.c` extension is recognised as an alias for `.civet` — both compile through Civet.
|
|
6
6
|
|
|
7
7
|
## Stack
|
|
8
8
|
|
|
@@ -41,6 +41,10 @@ export default {
|
|
|
41
41
|
- Pug class shorthand is rewritten so Tailwind variants (`.hover:bg-X`) and fractional values (`.gap-2.5`) work without escaping.
|
|
42
42
|
- `+if` / `+elseif` / `+else` chains are rewritten to Svelte block syntax (`{#if}/{:else if}/{:else}/{/if}`).
|
|
43
43
|
|
|
44
|
+
## Auto-imports — see the umbrella
|
|
45
|
+
|
|
46
|
+
The auto-import layer (helpers, components, project utilities, UI library presets) lives in [`@human-synthesis/norns`](https://github.com/human-synthesis/norns), not here. `norns-core` is the syntax preprocessor only — the import resolver needs Vite-plugin hooks the umbrella provides.
|
|
47
|
+
|
|
44
48
|
## License
|
|
45
49
|
|
|
46
50
|
MIT © Daniel Teodoroiu / [Human Synthesis](https://humansynthesis.ai). Built on top of [Svelte](https://github.com/sveltejs/svelte) © Svelte Contributors, MIT licensed.
|
package/package.json
CHANGED
package/src/preprocess.js
CHANGED
|
@@ -444,9 +444,6 @@ function nornDefaultLangs() {
|
|
|
444
444
|
* - `count := $state 0` → `const count = $state(0)`
|
|
445
445
|
* - `{ a, b = 0 } := $props()` → `const { a, b = 0 } = $props()`
|
|
446
446
|
* - imports stay where written; if user writes them at top, output is fine
|
|
447
|
-
*
|
|
448
|
-
* No `var X; X = expr` split, so `nornCoffeeRuneFusion` and
|
|
449
|
-
* `nornsCoffeeImportLift` aren't needed for Civet sources.
|
|
450
447
|
*/
|
|
451
448
|
function nornsCivetScript() {
|
|
452
449
|
return {
|
|
@@ -483,9 +480,6 @@ function nornsCivetScript() {
|
|
|
483
480
|
* `let count = $state(0)` directly, so no rune-fusion or import-lift
|
|
484
481
|
* passes are needed.
|
|
485
482
|
*
|
|
486
|
-
* CoffeeScript is no longer supported — `lang="coffee"` will fail. Use
|
|
487
|
-
* `lang="civet"` (or omit lang and rely on the default).
|
|
488
|
-
*
|
|
489
483
|
* @param {import('svelte-preprocess').AutoPreprocessOptions} [options]
|
|
490
484
|
*/
|
|
491
485
|
export function nornsPreprocess(options = {}) {
|