@thi.ng/tangle 0.1.13 → 0.1.15
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/CHANGELOG.md +1 -1
- package/README.md +13 -16
- package/api.d.ts +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/tangle)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -32,7 +32,7 @@ This project is part of the
|
|
|
32
32
|
|
|
33
33
|
## About
|
|
34
34
|
|
|
35
|
-
Literate programming code block tangling / codegen utility, inspired by org-mode & noweb
|
|
35
|
+
Literate programming code block tangling / codegen utility, inspired by org-mode & noweb
|
|
36
36
|
|
|
37
37
|
[Literate Programming](https://en.wikipedia.org/wiki/Literate_programming) (LP)
|
|
38
38
|
is a form of programming focused on creating documents of interleaved prose,
|
|
@@ -279,12 +279,12 @@ source file. E.g. this configuration (add to your VSCode workspace
|
|
|
279
279
|
|
|
280
280
|
```json
|
|
281
281
|
"emeraldwalk.runonsave": {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
282
|
+
"commands": [
|
|
283
|
+
{
|
|
284
|
+
"match": "\\.lit\\.md$",
|
|
285
|
+
"cmd": "${workspaceFolder}/node_modules/.bin/tangle ${file}"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
288
|
}
|
|
289
289
|
```
|
|
290
290
|
|
|
@@ -317,11 +317,8 @@ ES module import:
|
|
|
317
317
|
|
|
318
318
|
For Node.js REPL:
|
|
319
319
|
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
node --experimental-repl-await
|
|
323
|
-
|
|
324
|
-
> const tangle = await import("@thi.ng/tangle");
|
|
320
|
+
```js
|
|
321
|
+
const tangle = await import("@thi.ng/tangle");
|
|
325
322
|
```
|
|
326
323
|
|
|
327
324
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.84 KB
|
|
@@ -353,7 +350,7 @@ for usage examples.
|
|
|
353
350
|
|
|
354
351
|
## Authors
|
|
355
352
|
|
|
356
|
-
Karsten Schmidt
|
|
353
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
357
354
|
|
|
358
355
|
If this project contributes to an academic publication, please cite it as:
|
|
359
356
|
|
|
@@ -368,4 +365,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
368
365
|
|
|
369
366
|
## License
|
|
370
367
|
|
|
371
|
-
© 2022 Karsten Schmidt // Apache
|
|
368
|
+
© 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface TangleRef {
|
|
|
19
19
|
src: string;
|
|
20
20
|
blocks: Record<string, Block>;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type Blocks = Record<string, Block>;
|
|
23
23
|
export interface TangleCtx {
|
|
24
24
|
/**
|
|
25
25
|
* Code block marker definitions for current source file format. If not
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/tangle",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Literate programming code block tangling / codegen utility, inspired by org-mode & noweb",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
13
13
|
},
|
|
14
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
14
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/tangle#readme",
|
|
15
15
|
"funding": [
|
|
16
16
|
{
|
|
17
17
|
"type": "github",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"url": "https://patreon.com/thing_umbrella"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
|
-
"author": "Karsten Schmidt
|
|
25
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"test": "testament test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.
|
|
39
|
-
"@thi.ng/args": "^2.2.
|
|
40
|
-
"@thi.ng/checks": "^3.3.
|
|
41
|
-
"@thi.ng/compare": "^2.1.
|
|
42
|
-
"@thi.ng/date": "^2.3.
|
|
43
|
-
"@thi.ng/errors": "^2.2.
|
|
44
|
-
"@thi.ng/file-io": "^0.3.
|
|
45
|
-
"@thi.ng/logger": "^1.4.
|
|
46
|
-
"@thi.ng/strings": "^3.3.
|
|
47
|
-
"@thi.ng/transducers": "^8.3.
|
|
38
|
+
"@thi.ng/api": "^8.6.1",
|
|
39
|
+
"@thi.ng/args": "^2.2.13",
|
|
40
|
+
"@thi.ng/checks": "^3.3.5",
|
|
41
|
+
"@thi.ng/compare": "^2.1.20",
|
|
42
|
+
"@thi.ng/date": "^2.3.19",
|
|
43
|
+
"@thi.ng/errors": "^2.2.6",
|
|
44
|
+
"@thi.ng/file-io": "^0.3.23",
|
|
45
|
+
"@thi.ng/logger": "^1.4.5",
|
|
46
|
+
"@thi.ng/strings": "^3.3.21",
|
|
47
|
+
"@thi.ng/transducers": "^8.3.27"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.33.
|
|
51
|
-
"@thi.ng/testament": "^0.3.
|
|
50
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
51
|
+
"@thi.ng/testament": "^0.3.7",
|
|
52
52
|
"rimraf": "^3.0.2",
|
|
53
53
|
"tools": "^0.0.1",
|
|
54
|
-
"typedoc": "^0.23.
|
|
55
|
-
"typescript": "^4.
|
|
54
|
+
"typedoc": "^0.23.22",
|
|
55
|
+
"typescript": "^4.9.4"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"codegen",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"status": "alpha",
|
|
93
93
|
"year": 2022
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
96
96
|
}
|