soustack 0.1.2 → 0.2.1
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 +86 -10
- package/dist/cli/index.js +159 -53
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.mts +75 -11
- package/dist/index.d.ts +75 -11
- package/dist/index.js +165 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +164 -54
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/schema.json +22 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soustack",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The logic engine for computational recipes - validation, scaling, parsing, and Schema.org conversion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsup",
|
|
17
17
|
"prepack": "npm run build",
|
|
18
|
-
"prepublishOnly": "npm run build && npm test",
|
|
18
|
+
"prepublishOnly": "npm run sync:spec && npm run build && npm test",
|
|
19
19
|
"test": "jest",
|
|
20
20
|
"sync:spec": "node bin/sync-spec.js",
|
|
21
21
|
"prepare": "husky"
|
package/src/schema.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://soustack.org/schema/v0.
|
|
4
|
-
"title": "Soustack Recipe Schema v0.
|
|
3
|
+
"$id": "http://soustack.org/schema/v0.2",
|
|
4
|
+
"title": "Soustack Recipe Schema v0.2",
|
|
5
5
|
"description": "A portable, scalable, interoperable recipe format.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["name", "ingredients", "instructions"],
|
|
@@ -31,8 +31,21 @@
|
|
|
31
31
|
"items": { "type": "string" }
|
|
32
32
|
},
|
|
33
33
|
"image": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"description": "Recipe-level hero image(s)",
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "uri"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "array",
|
|
42
|
+
"minItems": 1,
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": "uri"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
36
49
|
},
|
|
37
50
|
"dateAdded": {
|
|
38
51
|
"type": "string",
|
|
@@ -197,6 +210,11 @@
|
|
|
197
210
|
"properties": {
|
|
198
211
|
"id": { "type": "string" },
|
|
199
212
|
"text": { "type": "string" },
|
|
213
|
+
"image": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"format": "uri",
|
|
216
|
+
"description": "Optional image that illustrates this instruction"
|
|
217
|
+
},
|
|
200
218
|
"destination": { "type": "string" },
|
|
201
219
|
"dependsOn": {
|
|
202
220
|
"type": "array",
|