jostraca 0.36.0 → 0.36.2

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.
Files changed (2) hide show
  1. package/README.md +15 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # jostraca
2
2
 
3
3
  A code and project generator. You describe an output file tree with
4
- components — `Project`, `Folder`, `File`, `Content` and the rest inside a
4
+ components—`Project`, `Folder`, `File`, `Content` and the rest—inside a
5
5
  callback, and Jostraca writes the tree to disk. The callback runs first and
6
6
  touches nothing; only then does the build phase write files. That split is why
7
7
  a second run over code somebody has edited by hand can preserve, present, diff
8
8
  or merge instead of overwriting.
9
9
 
10
+ **No template syntax to learn.** Either write code—iteration is `for`,
11
+ branching is `if`, reuse is a function—or mark up a file that is still valid
12
+ source, with the marker inside the target language's own comment syntax, so
13
+ `<!-- <[SLOT:head]> -->` stays valid HTML and `// <[SLOT:head]>` stays valid
14
+ Go. The template opens, highlights, formats, and lints like any other file
15
+ of its type. `$$path$$` substitutes a model value and does nothing else: no
16
+ conditionals, no loops, no expressions.
17
+
10
18
  This is the canonical TypeScript implementation, published to npm as
11
19
  [`jostraca`](https://www.npmjs.com/package/jostraca). A feature-parity Go port
12
20
  lives at
@@ -57,16 +65,13 @@ The documentation set lives in
57
65
  repository root, and is rendered at [jostraca.org](https://jostraca.org). It
58
66
  follows [Diátaxis](https://diataxis.fr):
59
67
 
60
- - **[Tutorial](https://github.com/jostraca/jostraca/blob/HEAD/docs/tutorial.md)**
61
- build a generator from nothing, then run it again over hand-edited output.
62
- - **[How-to guides](https://github.com/jostraca/jostraca/blob/HEAD/docs/how-to/README.md)**
63
- — one page per task.
64
- - **Reference** —
68
+ - **[Tutorial](https://github.com/jostraca/jostraca/blob/HEAD/docs/tutorial.md)**. Build a generator from nothing, then run it again over hand-edited output.
69
+ - **[How-to guides](https://github.com/jostraca/jostraca/blob/HEAD/docs/how-to/README.md)**. One page per task.
70
+ - **Reference**—
65
71
  [components](https://github.com/jostraca/jostraca/blob/HEAD/docs/reference-components.md),
66
72
  [options](https://github.com/jostraca/jostraca/blob/HEAD/docs/reference-options.md),
67
73
  [utilities](https://github.com/jostraca/jostraca/blob/HEAD/docs/reference-utilities.md).
68
- - **[Explanation](https://github.com/jostraca/jostraca/blob/HEAD/docs/explanation.md)**
69
- — the two-phase model, and what it costs.
74
+ - **[Explanation](https://github.com/jostraca/jostraca/blob/HEAD/docs/explanation.md)**. The two-phase model, and what it costs.
70
75
 
71
76
  Every example in those pages is executed by `ts/test/docs.test.ts`, which runs
72
77
  each snippet in a temp directory and compares the tree it wrote.
@@ -81,9 +86,8 @@ npm test # node --test dist-test/**/*.test.js
81
86
  ```
82
87
 
83
88
  From the repository root, `make all` builds and tests both the TypeScript and
84
- Go stacks. See
85
- [`CLAUDE.md`](https://github.com/jostraca/jostraca/blob/HEAD/CLAUDE.md) for
86
- the contributor guide and
89
+ Go stacks. TypeScript is the source of truth: change it first, then bring Go
90
+ into parity. See
87
91
  [`go/README.md`](https://github.com/jostraca/jostraca/blob/HEAD/go/README.md)
88
92
  for the port.
89
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jostraca",
3
- "version": "0.36.0",
3
+ "version": "0.36.2",
4
4
  "main": "dist/jostraca.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/jostraca.d.ts",