@voxgig/model 0.25.0 → 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.
@@ -1,11 +1,5 @@
1
1
 
2
- shape: builder: {
3
- load: string
4
- x: 1
5
- }
6
2
 
7
- model: build: order: string # TODO: comma sep
8
-
9
- model: builders: {
10
- # &=/sys/shape/builder
3
+ sys: model: builders: &: {
4
+ load: string
11
5
  }
package/model/sys.jsonic CHANGED
@@ -1,48 +1,71 @@
1
1
 
2
- shape: srv: {
2
+ sys: shape: srv: base: {
3
3
  in: {
4
4
  # TODO: validate leaf?
5
+ # &&: => &:, &: &:, &: &: &:, etc
5
6
  }
6
7
  deps: {
7
8
  &: {}
8
9
  }
9
- api: {
10
- web: {
11
- active: *true | boolean
12
- path: {
13
- prefix: string
14
- area: string
15
- suffix: string
16
- #prefix: *'/' | string
17
- #area: *'' | string
18
- #suffix: *'' | string
19
- # TODO: path to ref srv name?
20
- # name: ..path..web..api..*;name | string
21
- }
22
- method: *'POST' | string
23
- cors: {
24
- active: *false | boolean
25
- }
10
+ api: web: {
11
+ active: boolean
12
+ path: {
13
+ prefix: string
14
+ area: string
15
+ suffix: string
16
+ }
17
+ method: string
18
+ cors: {
19
+ active: boolean
26
20
  }
27
21
  }
28
- env: {
29
- lambda: {
30
- active: *false | boolean
31
- timeout: *30 | integer
32
- handler: {
33
- path: {
34
- #prefix: *'src/' | string
35
- #suffix: *'.handler' | string
36
- prefix: string
37
- suffix: string
38
- }
22
+ env: lambda: {
23
+ active: boolean
24
+ timeout: integer
25
+ handler: {
26
+ path: {
27
+ prefix: string
28
+ suffix: string
39
29
  }
40
30
  }
41
31
  }
42
32
  }
43
33
 
44
34
 
45
- shape: app: {
35
+ sys: shape: srv: std: $.sys.shape.srv.base & {
36
+ api: web: {
37
+ active: *true | boolean
38
+ method: *'POST' | string
39
+ cors: active: *false | boolean
40
+ path: prefix: '/api/'
41
+ }
42
+ env: lambda: {
43
+ active: *false | boolean
44
+ timeout: *30 | integer
45
+ handler: path: {
46
+ suffix: *'.handler' | string
47
+ }
48
+ kind: *standard | string
49
+ }
50
+ }
51
+
52
+
53
+ sys: shape: srv: std_js: $.sys.shape.srv.std & {
54
+ env: lambda: handler: path: {
55
+ prefix: *'src/handler/lambda/' | string
56
+ }
57
+ }
58
+
59
+ sys: shape: srv: std_ts: $.sys.shape.srv.std & {
60
+ env: lambda: handler: path: {
61
+ prefix: *'dist/handler/lambda/' | string
62
+ }
63
+ }
64
+
65
+
66
+
67
+
68
+ sys: shape: app: {
46
69
  name: string
47
70
  layout: string
48
71
  # TODO: test
@@ -55,7 +78,7 @@ shape: app: {
55
78
  # }
56
79
  }
57
80
 
58
- shape: part: img: {
81
+ sys: shape: part: img: {
59
82
  src: string
60
83
  svg: string
61
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxgig/model",
3
- "version": "0.25.0",
3
+ "version": "1.1.0",
4
4
  "main": "dist/model.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/model.d.ts",
@@ -42,15 +42,15 @@
42
42
  "LICENSE"
43
43
  ],
44
44
  "dependencies": {
45
- "aontu": "0.16.0",
45
+ "aontu": "0.19.0",
46
46
  "chokidar": "3.5.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/jest": "^29.5.10",
50
- "esbuild": "^0.19.8",
49
+ "@types/jest": "^29.5.11",
50
+ "esbuild": "^0.19.11",
51
51
  "esbuild-jest": "^0.5.0",
52
52
  "jest": "^29.7.0",
53
53
  "es-jest": "^2.1.0",
54
- "typescript": "^5.3.2"
54
+ "typescript": "^5.3.3"
55
55
  }
56
56
  }