create-packer 1.39.2 → 1.39.4
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/bin/createTemp.js +1 -1
- package/package.json +2 -2
- package/template/lib/workspace/packages/react/package.json +4 -0
- package/template/lib/workspace/packages/ts/package.json +1 -0
- package/template/web-app/react-vite/main.tsx +4 -4
- package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +49 -49
package/bin/createTemp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-packer",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "https://github.com/kevily/create-packer",
|
|
6
6
|
"author": "1k <bug_zero@163.com>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@inquirer/prompts": "7.0.0",
|
|
22
22
|
"chalk": "5.3.0",
|
|
23
23
|
"commander": "8.1.0",
|
|
24
|
-
"fs-extra": "
|
|
24
|
+
"fs-extra": "11.3.0",
|
|
25
25
|
"lodash": "4.17.21",
|
|
26
26
|
"ora": "8.1.0"
|
|
27
27
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRoot } from 'react-dom/client'
|
|
2
|
-
import { App } from '@/domain/app'
|
|
3
|
-
|
|
4
|
-
createRoot(document.getElementById('root') as HTMLElement).render(<App.Root />)
|
|
1
|
+
import { createRoot } from 'react-dom/client'
|
|
2
|
+
import { App } from '@/domain/app'
|
|
3
|
+
|
|
4
|
+
createRoot(document.getElementById('root') as HTMLElement).render(<App.Root />)
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
import root from '../root.js';
|
|
3
|
-
import { set_building, set_prerendering } from '__sveltekit/environment';
|
|
4
|
-
import { set_assets } from '__sveltekit/paths';
|
|
5
|
-
import { set_manifest, set_read_implementation } from '__sveltekit/server';
|
|
6
|
-
import { set_private_env, set_public_env, set_safe_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_dun526chfqq2tdeu4ndukklh5a/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
|
7
|
-
|
|
8
|
-
export const options = {
|
|
9
|
-
app_dir: "_app",
|
|
10
|
-
app_template_contains_nonce: false,
|
|
11
|
-
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
|
12
|
-
csrf_check_origin: true,
|
|
13
|
-
embedded: false,
|
|
14
|
-
env_public_prefix: 'PUBLIC_',
|
|
15
|
-
env_private_prefix: '',
|
|
16
|
-
hash_routing: false,
|
|
17
|
-
hooks: null, // added lazily, via `get_hooks`
|
|
18
|
-
preload_strategy: "modulepreload",
|
|
19
|
-
root,
|
|
20
|
-
service_worker: false,
|
|
21
|
-
templates: {
|
|
22
|
-
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n\t\t" + head + "\r\n\t</head>\r\n\t<body data-sveltekit-preload-data=\"hover\">\r\n\t\t<div style=\"display: contents\">" + body + "</div>\r\n\t</body>\r\n</html>\r\n",
|
|
23
|
-
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
24
|
-
},
|
|
25
|
-
version_hash: "1au0b5n"
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export async function get_hooks() {
|
|
29
|
-
let handle;
|
|
30
|
-
let handleFetch;
|
|
31
|
-
let handleError;
|
|
32
|
-
let init;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
let reroute;
|
|
36
|
-
let transport;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
handle,
|
|
41
|
-
handleFetch,
|
|
42
|
-
handleError,
|
|
43
|
-
init,
|
|
44
|
-
reroute,
|
|
45
|
-
transport
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
|
|
1
|
+
|
|
2
|
+
import root from '../root.js';
|
|
3
|
+
import { set_building, set_prerendering } from '__sveltekit/environment';
|
|
4
|
+
import { set_assets } from '__sveltekit/paths';
|
|
5
|
+
import { set_manifest, set_read_implementation } from '__sveltekit/server';
|
|
6
|
+
import { set_private_env, set_public_env, set_safe_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_dun526chfqq2tdeu4ndukklh5a/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
|
7
|
+
|
|
8
|
+
export const options = {
|
|
9
|
+
app_dir: "_app",
|
|
10
|
+
app_template_contains_nonce: false,
|
|
11
|
+
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
|
12
|
+
csrf_check_origin: true,
|
|
13
|
+
embedded: false,
|
|
14
|
+
env_public_prefix: 'PUBLIC_',
|
|
15
|
+
env_private_prefix: '',
|
|
16
|
+
hash_routing: false,
|
|
17
|
+
hooks: null, // added lazily, via `get_hooks`
|
|
18
|
+
preload_strategy: "modulepreload",
|
|
19
|
+
root,
|
|
20
|
+
service_worker: false,
|
|
21
|
+
templates: {
|
|
22
|
+
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n\t\t" + head + "\r\n\t</head>\r\n\t<body data-sveltekit-preload-data=\"hover\">\r\n\t\t<div style=\"display: contents\">" + body + "</div>\r\n\t</body>\r\n</html>\r\n",
|
|
23
|
+
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
24
|
+
},
|
|
25
|
+
version_hash: "1au0b5n"
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export async function get_hooks() {
|
|
29
|
+
let handle;
|
|
30
|
+
let handleFetch;
|
|
31
|
+
let handleError;
|
|
32
|
+
let init;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
let reroute;
|
|
36
|
+
let transport;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
handle,
|
|
41
|
+
handleFetch,
|
|
42
|
+
handleError,
|
|
43
|
+
init,
|
|
44
|
+
reroute,
|
|
45
|
+
transport
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
|