primate 0.33.3 → 0.34.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.
- package/lib/app.tsconfig.json +12 -17
- package/lib/commands/init.js +1 -2
- package/lib/public/client/app.d.ts +1 -3
- package/lib/public/client/app.js +1 -2
- package/package.json +3 -3
- package/lib/public/response/binary.d.ts +0 -2
- package/lib/public/response/binary.js +0 -2
- package/lib/public/response/error.d.ts +0 -2
- package/lib/public/response/error.js +0 -2
- package/lib/public/response/json.d.ts +0 -2
- package/lib/public/response/json.js +0 -2
- package/lib/public/response/redirect.d.ts +0 -2
- package/lib/public/response/redirect.js +0 -2
- package/lib/public/response/sse.d.ts +0 -2
- package/lib/public/response/sse.js +0 -2
- package/lib/public/response/text.d.ts +0 -2
- package/lib/public/response/text.js +0 -2
- package/lib/public/response/view.d.ts +0 -2
- package/lib/public/response/view.js +0 -2
- package/lib/public/response/ws.d.ts +0 -2
- package/lib/public/response/ws.js +0 -2
- /package/lib/public/{response → http}/Status.d.ts +0 -0
- /package/lib/public/{response → http}/Status.js +0 -0
package/lib/app.tsconfig.json
CHANGED
|
@@ -14,31 +14,23 @@
|
|
|
14
14
|
"jsx": "react-jsx",
|
|
15
15
|
"paths": {
|
|
16
16
|
"#route/*": ["routes/*"],
|
|
17
|
-
"#lib/*": [
|
|
18
|
-
"lib/*.tsx",
|
|
19
|
-
"lib/*.jsx",
|
|
20
|
-
"lib/*.vue",
|
|
21
|
-
"lib/*.svelte",
|
|
22
|
-
"lib/*.component.ts",
|
|
23
|
-
"lib/*.ts",
|
|
24
|
-
"lib/*.js",
|
|
25
|
-
"lib/*"
|
|
26
|
-
],
|
|
27
17
|
"#component/*": [
|
|
18
|
+
"components/*",
|
|
28
19
|
"components/*.tsx",
|
|
29
20
|
"components/*.jsx",
|
|
30
21
|
"components/*.vue",
|
|
31
22
|
"components/*.svelte",
|
|
32
23
|
"components/*.component.ts",
|
|
33
24
|
"components/*.ts",
|
|
34
|
-
"components/*.js"
|
|
35
|
-
"components/*"
|
|
25
|
+
"components/*.js"
|
|
36
26
|
],
|
|
37
|
-
"#
|
|
38
|
-
"#
|
|
39
|
-
"#
|
|
40
|
-
"#
|
|
41
|
-
"#
|
|
27
|
+
"#hook/*": ["hooks/*", "hooks/*.ts", "hooks/*.js"],
|
|
28
|
+
"#lib/*": ["lib/*", "lib/*.ts", "lib/*.js"],
|
|
29
|
+
"#store/*": ["stores/*", "stores/*.ts", "stores/*.js"],
|
|
30
|
+
"#locale/*": ["locales/*", "locales/*.ts", "locales/*.js"],
|
|
31
|
+
"#module/*": ["modules/*", "modules/*.ts", "modules/*.js"],
|
|
32
|
+
"#config/*": ["config/*", "config/*.ts", "config/*.js"],
|
|
33
|
+
"#static/*": ["static/*", "static/*.ts", "static/*.js"],
|
|
42
34
|
"#database/*": ["config/database/*.ts", "config/database/*.js"],
|
|
43
35
|
"#app": ["config/app.ts", "config/app.js"],
|
|
44
36
|
"#session": ["config/session.ts", "config/session.js"],
|
|
@@ -54,7 +46,10 @@
|
|
|
54
46
|
"include": [
|
|
55
47
|
"${configDir}/config",
|
|
56
48
|
"${configDir}/routes",
|
|
49
|
+
"${configDir}/views",
|
|
57
50
|
"${configDir}/components",
|
|
51
|
+
"${configDir}/hooks",
|
|
52
|
+
"${configDir}/lib",
|
|
58
53
|
"${configDir}/stores",
|
|
59
54
|
"${configDir}/modules",
|
|
60
55
|
"${configDir}/test",
|
package/lib/commands/init.js
CHANGED
|
@@ -131,7 +131,7 @@ export default async function init() {
|
|
|
131
131
|
// scaffold dirs
|
|
132
132
|
await target.create({ recursive: true });
|
|
133
133
|
await target.join("routes").create({ recursive: true });
|
|
134
|
-
await target.join("
|
|
134
|
+
await target.join("views").create({ recursive: true });
|
|
135
135
|
if (db)
|
|
136
136
|
await target.join("stores").create({ recursive: true });
|
|
137
137
|
// files
|
|
@@ -199,7 +199,6 @@ ${frontendImports}
|
|
|
199
199
|
${backendImports}
|
|
200
200
|
|
|
201
201
|
export default config({
|
|
202
|
-
runtime: "${c.runtime}",
|
|
203
202
|
modules: [
|
|
204
203
|
${modules.join(",\n ")}
|
|
205
204
|
],
|
package/lib/public/client/app.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "The universal web framework",
|
|
5
5
|
"homepage": "https://primate.run",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@rcompat/record": "^0.9.1",
|
|
22
|
-
"pema": "^0.
|
|
22
|
+
"pema": "^0.3.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@rcompat/args": "^0.8.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@rcompat/runtime": "^0.6.0",
|
|
31
31
|
"@rcompat/string": "^0.10.0",
|
|
32
32
|
"@rcompat/test": "^0.5.0",
|
|
33
|
-
"@primate/core": "^0.
|
|
33
|
+
"@primate/core": "^0.3.0"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=20"
|
|
File without changes
|
|
File without changes
|