create-packer 1.41.7 → 1.42.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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/template/web-app/svelte/.svelte-kit/ambient.d.ts +184 -10
  3. package/template/web-app/svelte/.svelte-kit/generated/client/nodes/0.js +1 -1
  4. package/template/web-app/svelte/.svelte-kit/generated/client/nodes/1.js +1 -1
  5. package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +2 -2
  6. package/template/web-app/svelte/eslint.config.js +8 -1
  7. package/template/web-app/svelte/package.json +58 -56
  8. package/template/web-app/svelte/svelte.config.js +8 -2
  9. package/template/web-app/svelte/vite.config.ts +53 -59
  10. package/template/web-app/solid/.editorconfig +0 -14
  11. package/template/web-app/solid/.gitignore +0 -2
  12. package/template/web-app/solid/.husky/commit-msg +0 -4
  13. package/template/web-app/solid/.husky/pre-commit +0 -4
  14. package/template/web-app/solid/.prettierrc +0 -12
  15. package/template/web-app/solid/.stylelintrc +0 -29
  16. package/template/web-app/solid/README.md +0 -34
  17. package/template/web-app/solid/commitlint.config.cjs +0 -1
  18. package/template/web-app/solid/index.html +0 -16
  19. package/template/web-app/solid/package.json +0 -53
  20. package/template/web-app/solid/postcss.config.cjs +0 -9
  21. package/template/web-app/solid/src/app.container.tsx +0 -12
  22. package/template/web-app/solid/src/assets/favicon.ico +0 -0
  23. package/template/web-app/solid/src/index.css +0 -15
  24. package/template/web-app/solid/src/index.tsx +0 -15
  25. package/template/web-app/solid/src/layout/index.ts +0 -1
  26. package/template/web-app/solid/src/layout/layout.container.tsx +0 -5
  27. package/template/web-app/solid/src/logo.svg +0 -1
  28. package/template/web-app/solid/src/pages/home/index.ts +0 -1
  29. package/template/web-app/solid/src/pages/home/view.css +0 -0
  30. package/template/web-app/solid/src/pages/home/view.tsx +0 -5
  31. package/template/web-app/solid/src/pages/notFound/index.ts +0 -1
  32. package/template/web-app/solid/src/pages/notFound/view.tsx +0 -3
  33. package/template/web-app/solid/src/router/home/index.ts +0 -2
  34. package/template/web-app/solid/src/router/home/paths.ts +0 -3
  35. package/template/web-app/solid/src/router/home/routes.tsx +0 -12
  36. package/template/web-app/solid/src/router/index.ts +0 -2
  37. package/template/web-app/solid/src/router/paths.ts +0 -5
  38. package/template/web-app/solid/src/router/routes.ts +0 -16
  39. package/template/web-app/solid/tailwind.config.cjs +0 -11
  40. package/template/web-app/solid/tsconfig.json +0 -20
  41. package/template/web-app/solid/vite.config.ts +0 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.41.7",
3
+ "version": "1.42.0",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -30,32 +30,115 @@ declare module '$env/static/private' {
30
30
  export const VITE_API_HOST: string;
31
31
  export const ALLUSERSPROFILE: string;
32
32
  export const APPDATA: string;
33
- export const COLORTERM: string;
34
33
  export const CommonProgramFiles: string;
35
34
  export const CommonProgramW6432: string;
36
35
  export const COMPUTERNAME: string;
37
36
  export const ComSpec: string;
37
+ export const CONDA_PROMPT_MODIFIER: string;
38
38
  export const configsetroot: string;
39
- export const DEBUG_COLORS: string;
40
39
  export const DriverData: string;
41
- export const FORCE_COLOR: string;
40
+ export const FNM_ARCH: string;
41
+ export const FNM_COREPACK_ENABLED: string;
42
+ export const FNM_DIR: string;
43
+ export const FNM_LOGLEVEL: string;
44
+ export const FNM_MULTISHELL_PATH: string;
45
+ export const FNM_NODE_DIST_MIRROR: string;
46
+ export const FNM_RESOLVE_ENGINES: string;
47
+ export const FNM_VERSION_FILE_STRATEGY: string;
42
48
  export const GIT_INSTALL_ROOT: string;
49
+ export const HOME: string;
43
50
  export const HOMEDRIVE: string;
44
51
  export const HOMEPATH: string;
52
+ export const HTTPS_PROXY: string;
53
+ export const HTTP_PROXY: string;
45
54
  export const IJ_RESTARTER_LOG: string;
55
+ export const INIT_CWD: string;
56
+ export const JETBRAINS_INTELLIJ_COMMAND_END_MARKER: string;
46
57
  export const LOCALAPPDATA: string;
47
58
  export const LOGONSERVER: string;
48
- export const MOCHA_COLORS: string;
59
+ export const MODE: string;
60
+ export const NODE: string;
49
61
  export const NODE_ENV: string;
50
- export const npm_config_color: string;
62
+ export const NODE_PATH: string;
63
+ export const npm_command: string;
64
+ export const npm_config_engine_strict: string;
65
+ export const npm_config_frozen_lockfile: string;
66
+ export const npm_config_home: string;
67
+ export const npm_config_ignore_scripts: string;
68
+ export const npm_config_node_gyp: string;
69
+ export const npm_config_registry: string;
70
+ export const npm_config_resolution_mode: string;
71
+ export const npm_config_user_agent: string;
72
+ export const npm_config__jz_registry: string;
73
+ export const npm_execpath: string;
74
+ export const npm_lifecycle_event: string;
75
+ export const npm_lifecycle_script: string;
76
+ export const npm_node_execpath: string;
77
+ export const npm_package_dependencies_lodash_es: string;
78
+ export const npm_package_dependencies_svelte: string;
79
+ export const npm_package_devDependencies_commitizen: string;
80
+ export const npm_package_devDependencies_cross_env: string;
81
+ export const npm_package_devDependencies_cssnano: string;
82
+ export const npm_package_devDependencies_dotenv: string;
83
+ export const npm_package_devDependencies_eslint: string;
84
+ export const npm_package_devDependencies_eslint_config_prettier: string;
85
+ export const npm_package_devDependencies_eslint_import_resolver_typescript: string;
86
+ export const npm_package_devDependencies_eslint_plugin_import: string;
87
+ export const npm_package_devDependencies_eslint_plugin_svelte: string;
88
+ export const npm_package_devDependencies_globals: string;
89
+ export const npm_package_devDependencies_postcss: string;
90
+ export const npm_package_devDependencies_postcss_import: string;
91
+ export const npm_package_devDependencies_postcss_nesting: string;
92
+ export const npm_package_devDependencies_prettier: string;
93
+ export const npm_package_devDependencies_prettier_plugin_svelte: string;
94
+ export const npm_package_devDependencies_rollup_plugin_visualizer: string;
95
+ export const npm_package_devDependencies_svelte_check: string;
96
+ export const npm_package_devDependencies_tslib: string;
97
+ export const npm_package_devDependencies_typescript: string;
98
+ export const npm_package_devDependencies_typescript_eslint: string;
99
+ export const npm_package_devDependencies_vite: string;
100
+ export const npm_package_devDependencies_vite_plugin_checker: string;
101
+ export const npm_package_devDependencies_vite_plugin_stylelint: string;
102
+ export const npm_package_devDependencies__commitlint_cli: string;
103
+ export const npm_package_devDependencies__commitlint_config_conventional: string;
104
+ export const npm_package_devDependencies__commitlint_cz_commitlint: string;
105
+ export const npm_package_devDependencies__sveltejs_adapter_auto: string;
106
+ export const npm_package_devDependencies__sveltejs_kit: string;
107
+ export const npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
108
+ export const npm_package_devDependencies__types_lodash_es: string;
109
+ export const npm_package_name: string;
110
+ export const npm_package_private: string;
111
+ export const npm_package_scripts_build: string;
112
+ export const npm_package_scripts_build_analyse: string;
113
+ export const npm_package_scripts_check: string;
114
+ export const npm_package_scripts_check_watch: string;
115
+ export const npm_package_scripts_commit: string;
116
+ export const npm_package_scripts_cz: string;
117
+ export const npm_package_scripts_dev: string;
118
+ export const npm_package_scripts_format: string;
119
+ export const npm_package_scripts_lint: string;
120
+ export const npm_package_scripts_prepare: string;
121
+ export const npm_package_scripts_preview: string;
122
+ export const npm_package_scripts_push: string;
123
+ export const npm_package_scripts_up_svelte: string;
124
+ export const npm_package_scripts_up_vite: string;
125
+ export const npm_package_type: string;
126
+ export const npm_package_version: string;
51
127
  export const NUMBER_OF_PROCESSORS: string;
52
128
  export const OneDrive: string;
53
129
  export const OneDriveConsumer: string;
54
130
  export const OS: string;
55
131
  export const Path: string;
56
132
  export const PATHEXT: string;
133
+ export const PNPM_SCRIPT_SRC_DIR: string;
134
+ export const POSH_CURSOR_COLUMN: string;
135
+ export const POSH_CURSOR_LINE: string;
57
136
  export const POSH_INSTALLER: string;
137
+ export const POSH_SESSION_ID: string;
138
+ export const POSH_SHELL_VERSION: string;
139
+ export const POSH_THEME: string;
58
140
  export const POSH_THEMES_PATH: string;
141
+ export const POWERLINE_COMMAND: string;
59
142
  export const PROCESSOR_ARCHITECTURE: string;
60
143
  export const PROCESSOR_IDENTIFIER: string;
61
144
  export const PROCESSOR_LEVEL: string;
@@ -63,12 +146,16 @@ declare module '$env/static/private' {
63
146
  export const ProgramData: string;
64
147
  export const ProgramFiles: string;
65
148
  export const ProgramW6432: string;
149
+ export const PROMPT: string;
150
+ export const PSExecutionPolicyPreference: string;
66
151
  export const PSModulePath: string;
67
152
  export const PUBLIC: string;
68
153
  export const SESSIONNAME: string;
69
154
  export const SystemDrive: string;
70
155
  export const SystemRoot: string;
71
156
  export const TEMP: string;
157
+ export const TERMINAL_EMULATOR: string;
158
+ export const TERM_SESSION_ID: string;
72
159
  export const TMP: string;
73
160
  export const TOOLBOX_VERSION: string;
74
161
  export const USERDOMAIN: string;
@@ -112,32 +199,115 @@ declare module '$env/dynamic/private' {
112
199
  VITE_API_HOST: string;
113
200
  ALLUSERSPROFILE: string;
114
201
  APPDATA: string;
115
- COLORTERM: string;
116
202
  CommonProgramFiles: string;
117
203
  CommonProgramW6432: string;
118
204
  COMPUTERNAME: string;
119
205
  ComSpec: string;
206
+ CONDA_PROMPT_MODIFIER: string;
120
207
  configsetroot: string;
121
- DEBUG_COLORS: string;
122
208
  DriverData: string;
123
- FORCE_COLOR: string;
209
+ FNM_ARCH: string;
210
+ FNM_COREPACK_ENABLED: string;
211
+ FNM_DIR: string;
212
+ FNM_LOGLEVEL: string;
213
+ FNM_MULTISHELL_PATH: string;
214
+ FNM_NODE_DIST_MIRROR: string;
215
+ FNM_RESOLVE_ENGINES: string;
216
+ FNM_VERSION_FILE_STRATEGY: string;
124
217
  GIT_INSTALL_ROOT: string;
218
+ HOME: string;
125
219
  HOMEDRIVE: string;
126
220
  HOMEPATH: string;
221
+ HTTPS_PROXY: string;
222
+ HTTP_PROXY: string;
127
223
  IJ_RESTARTER_LOG: string;
224
+ INIT_CWD: string;
225
+ JETBRAINS_INTELLIJ_COMMAND_END_MARKER: string;
128
226
  LOCALAPPDATA: string;
129
227
  LOGONSERVER: string;
130
- MOCHA_COLORS: string;
228
+ MODE: string;
229
+ NODE: string;
131
230
  NODE_ENV: string;
132
- npm_config_color: string;
231
+ NODE_PATH: string;
232
+ npm_command: string;
233
+ npm_config_engine_strict: string;
234
+ npm_config_frozen_lockfile: string;
235
+ npm_config_home: string;
236
+ npm_config_ignore_scripts: string;
237
+ npm_config_node_gyp: string;
238
+ npm_config_registry: string;
239
+ npm_config_resolution_mode: string;
240
+ npm_config_user_agent: string;
241
+ npm_config__jz_registry: string;
242
+ npm_execpath: string;
243
+ npm_lifecycle_event: string;
244
+ npm_lifecycle_script: string;
245
+ npm_node_execpath: string;
246
+ npm_package_dependencies_lodash_es: string;
247
+ npm_package_dependencies_svelte: string;
248
+ npm_package_devDependencies_commitizen: string;
249
+ npm_package_devDependencies_cross_env: string;
250
+ npm_package_devDependencies_cssnano: string;
251
+ npm_package_devDependencies_dotenv: string;
252
+ npm_package_devDependencies_eslint: string;
253
+ npm_package_devDependencies_eslint_config_prettier: string;
254
+ npm_package_devDependencies_eslint_import_resolver_typescript: string;
255
+ npm_package_devDependencies_eslint_plugin_import: string;
256
+ npm_package_devDependencies_eslint_plugin_svelte: string;
257
+ npm_package_devDependencies_globals: string;
258
+ npm_package_devDependencies_postcss: string;
259
+ npm_package_devDependencies_postcss_import: string;
260
+ npm_package_devDependencies_postcss_nesting: string;
261
+ npm_package_devDependencies_prettier: string;
262
+ npm_package_devDependencies_prettier_plugin_svelte: string;
263
+ npm_package_devDependencies_rollup_plugin_visualizer: string;
264
+ npm_package_devDependencies_svelte_check: string;
265
+ npm_package_devDependencies_tslib: string;
266
+ npm_package_devDependencies_typescript: string;
267
+ npm_package_devDependencies_typescript_eslint: string;
268
+ npm_package_devDependencies_vite: string;
269
+ npm_package_devDependencies_vite_plugin_checker: string;
270
+ npm_package_devDependencies_vite_plugin_stylelint: string;
271
+ npm_package_devDependencies__commitlint_cli: string;
272
+ npm_package_devDependencies__commitlint_config_conventional: string;
273
+ npm_package_devDependencies__commitlint_cz_commitlint: string;
274
+ npm_package_devDependencies__sveltejs_adapter_auto: string;
275
+ npm_package_devDependencies__sveltejs_kit: string;
276
+ npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
277
+ npm_package_devDependencies__types_lodash_es: string;
278
+ npm_package_name: string;
279
+ npm_package_private: string;
280
+ npm_package_scripts_build: string;
281
+ npm_package_scripts_build_analyse: string;
282
+ npm_package_scripts_check: string;
283
+ npm_package_scripts_check_watch: string;
284
+ npm_package_scripts_commit: string;
285
+ npm_package_scripts_cz: string;
286
+ npm_package_scripts_dev: string;
287
+ npm_package_scripts_format: string;
288
+ npm_package_scripts_lint: string;
289
+ npm_package_scripts_prepare: string;
290
+ npm_package_scripts_preview: string;
291
+ npm_package_scripts_push: string;
292
+ npm_package_scripts_up_svelte: string;
293
+ npm_package_scripts_up_vite: string;
294
+ npm_package_type: string;
295
+ npm_package_version: string;
133
296
  NUMBER_OF_PROCESSORS: string;
134
297
  OneDrive: string;
135
298
  OneDriveConsumer: string;
136
299
  OS: string;
137
300
  Path: string;
138
301
  PATHEXT: string;
302
+ PNPM_SCRIPT_SRC_DIR: string;
303
+ POSH_CURSOR_COLUMN: string;
304
+ POSH_CURSOR_LINE: string;
139
305
  POSH_INSTALLER: string;
306
+ POSH_SESSION_ID: string;
307
+ POSH_SHELL_VERSION: string;
308
+ POSH_THEME: string;
140
309
  POSH_THEMES_PATH: string;
310
+ POWERLINE_COMMAND: string;
141
311
  PROCESSOR_ARCHITECTURE: string;
142
312
  PROCESSOR_IDENTIFIER: string;
143
313
  PROCESSOR_LEVEL: string;
@@ -145,12 +315,16 @@ declare module '$env/dynamic/private' {
145
315
  ProgramData: string;
146
316
  ProgramFiles: string;
147
317
  ProgramW6432: string;
318
+ PROMPT: string;
319
+ PSExecutionPolicyPreference: string;
148
320
  PSModulePath: string;
149
321
  PUBLIC: string;
150
322
  SESSIONNAME: string;
151
323
  SystemDrive: string;
152
324
  SystemRoot: string;
153
325
  TEMP: string;
326
+ TERMINAL_EMULATOR: string;
327
+ TERM_SESSION_ID: string;
154
328
  TMP: string;
155
329
  TOOLBOX_VERSION: string;
156
330
  USERDOMAIN: string;
@@ -1 +1 @@
1
- export { default as component } 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@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte";
1
+ export { default as component } 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@_uwbcqusuq7euzznoohetjo3m5m/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte";
@@ -1 +1 @@
1
- export { default as component } 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@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
1
+ export { default as component } 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@_uwbcqusuq7euzznoohetjo3m5m/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
@@ -3,7 +3,7 @@ import root from '../root.js';
3
3
  import { set_building, set_prerendering } from '__sveltekit/environment';
4
4
  import { set_assets } from '__sveltekit/paths';
5
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@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
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@_uwbcqusuq7euzznoohetjo3m5m/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
7
7
 
8
8
  export const options = {
9
9
  app_dir: "_app",
@@ -22,7 +22,7 @@ export const options = {
22
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
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
24
  },
25
- version_hash: "65cfhv"
25
+ version_hash: "yk5c2l"
26
26
  };
27
27
 
28
28
  export async function get_hooks() {
@@ -9,7 +9,14 @@ const files = [...scriptExtensions.map(ext => `**/*.${ext}`), '**/*.svelte']
9
9
 
10
10
  export default tseslint.config([
11
11
  {
12
- ignores: ['**/node_modules/', '**/dist/', '**/.history/', '**/.vscode/', 'vite.config.ts.*']
12
+ ignores: [
13
+ '**/node_modules/',
14
+ '**/dist/',
15
+ '**/.history/',
16
+ '**/.vscode/',
17
+ '**/.svelte-kit/',
18
+ 'vite.config.ts.*'
19
+ ]
13
20
  },
14
21
  eslint.configs.recommended,
15
22
  importPlugin.flatConfigs.recommended,
@@ -1,56 +1,58 @@
1
- {
2
- "name": "svelte",
3
- "version": "0.0.1",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "prepare": "husky install",
8
- "dev": "vite",
9
- "build": "npm run check && npm run lint && vite build",
10
- "build:analyse": "npm run check && npm run lint && vite build --mode analyse",
11
- "preview": "vite preview",
12
- "up:vite": "pnpm up vite @vitejs/* -L",
13
- "up:svelte": "pnpm up svelte svelte-check @sveltejs/* -L",
14
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
15
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
16
- "lint": "pnpm run check && eslint",
17
- "format": "prettier --plugin-search-dir . --write .",
18
- "cz": "cz",
19
- "push": "npm run commit && git push",
20
- "commit": "git add . && npm run cz"
21
- },
22
- "devDependencies": {
23
- "@commitlint/cli": "17.7.1",
24
- "@commitlint/config-conventional": "17.7.0",
25
- "@commitlint/cz-commitlint": "17.7.1",
26
- "@sveltejs/adapter-auto": "3.3.1",
27
- "@sveltejs/kit": "2.15.0",
28
- "@sveltejs/vite-plugin-svelte": "5.0.3",
29
- "@types/lodash-es": "4.17.12",
30
- "commitizen": "4.3.0",
31
- "cssnano": "6.0.1",
32
- "eslint": "9.17.0",
33
- "eslint-config-prettier": "9.1.0",
34
- "eslint-import-resolver-typescript": "3.7.0",
35
- "eslint-plugin-import": "2.31.0",
36
- "eslint-plugin-svelte": "2.46.1",
37
- "globals": "15.12.0",
38
- "postcss": "8.4.35",
39
- "postcss-import": "16.0.1",
40
- "postcss-nesting": "12.0.3",
41
- "prettier": "3.2.5",
42
- "prettier-plugin-svelte": "3.2.5",
43
- "rollup-plugin-visualizer": "5.12.0",
44
- "svelte-check": "4.1.1",
45
- "tslib": "2.6.2",
46
- "typescript": "5.7.2",
47
- "typescript-eslint": "8.15.0",
48
- "vite": "6.0.7",
49
- "vite-plugin-checker": "0.8.0",
50
- "vite-plugin-stylelint": "6.0.0"
51
- },
52
- "dependencies": {
53
- "lodash-es": "4.17.21",
54
- "svelte": "5.16.0"
55
- }
56
- }
1
+ {
2
+ "name": "svelte",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "prepare": "husky install",
8
+ "dev": "cross-env MODE=development vite",
9
+ "build": "npm run check && npm run lint && cross-env MODE=production vite build",
10
+ "build:analyse": "npm run check && npm run lint && vite build --mode analyse",
11
+ "preview": "vite preview",
12
+ "up:vite": "pnpm up vite @vitejs/* -L",
13
+ "up:svelte": "pnpm up svelte svelte-check @sveltejs/* -L",
14
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
15
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
16
+ "lint": "pnpm run check && eslint",
17
+ "format": "prettier --plugin-search-dir . --write .",
18
+ "cz": "cz",
19
+ "push": "npm run commit && git push",
20
+ "commit": "git add . && npm run cz"
21
+ },
22
+ "devDependencies": {
23
+ "@commitlint/cli": "17.7.1",
24
+ "@commitlint/config-conventional": "17.7.0",
25
+ "@commitlint/cz-commitlint": "17.7.1",
26
+ "@sveltejs/adapter-auto": "3.3.1",
27
+ "@sveltejs/kit": "2.15.0",
28
+ "@sveltejs/vite-plugin-svelte": "5.0.3",
29
+ "@types/lodash-es": "4.17.12",
30
+ "commitizen": "4.3.0",
31
+ "cross-env": "7.0.3",
32
+ "cssnano": "6.0.1",
33
+ "dotenv": "^16.4.7",
34
+ "eslint": "9.17.0",
35
+ "eslint-config-prettier": "9.1.0",
36
+ "eslint-import-resolver-typescript": "3.7.0",
37
+ "eslint-plugin-import": "2.31.0",
38
+ "eslint-plugin-svelte": "2.46.1",
39
+ "globals": "15.12.0",
40
+ "postcss": "8.4.35",
41
+ "postcss-import": "16.0.1",
42
+ "postcss-nesting": "12.0.3",
43
+ "prettier": "3.2.5",
44
+ "prettier-plugin-svelte": "3.2.5",
45
+ "rollup-plugin-visualizer": "5.12.0",
46
+ "svelte-check": "4.1.1",
47
+ "tslib": "2.6.2",
48
+ "typescript": "5.7.2",
49
+ "typescript-eslint": "8.15.0",
50
+ "vite": "6.0.7",
51
+ "vite-plugin-checker": "0.8.0",
52
+ "vite-plugin-stylelint": "6.0.0"
53
+ },
54
+ "dependencies": {
55
+ "lodash-es": "4.17.21",
56
+ "svelte": "5.16.0"
57
+ }
58
+ }
@@ -1,8 +1,11 @@
1
- import adapter from '@sveltejs/adapter-auto'
2
- import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
3
1
  import path from 'path'
4
2
  import { fileURLToPath } from 'url'
3
+ import adapter from '@sveltejs/adapter-auto'
4
+ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
5
+ import dotenv from 'dotenv'
5
6
 
7
+ const mode = process.env.MODE
8
+ const env = dotenv.config({ path: `./${mode ? `.env.${mode}` : '.env'}` }).parsed
6
9
  const __filename = fileURLToPath(import.meta.url)
7
10
  const __dirname = path.dirname(__filename)
8
11
  // This config is ignored and replaced with one of the configs in the shared folder when a project is created.
@@ -14,6 +17,9 @@ const config = {
14
17
  preprocess: vitePreprocess(),
15
18
  kit: {
16
19
  adapter: adapter(),
20
+ paths: {
21
+ base: env.VITE_BASE_URL
22
+ },
17
23
  alias: {
18
24
  '@': path.join(__dirname, 'src')
19
25
  }
@@ -1,59 +1,53 @@
1
- import path from 'path'
2
- import { defineConfig, loadEnv } from 'vite'
3
- import { sveltekit } from '@sveltejs/kit/vite'
4
- import stylelint from 'vite-plugin-stylelint'
5
- import checker from 'vite-plugin-checker'
6
- import { visualizer } from 'rollup-plugin-visualizer'
7
- import { includes } from 'lodash-es'
8
- import { createChunks } from './scripts'
9
-
10
- export default defineConfig(({ mode }) => {
11
- const env = loadEnv(mode, process.cwd(), '')
12
- const plugins: any[] = [
13
- stylelint({ cache: false, include: ['**/*.{css,scss,sass,less,styl,ts,tsx}'] }),
14
- checker({
15
- enableBuild: false,
16
- typescript: true,
17
- eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
18
- }),
19
- sveltekit()
20
- ]
21
-
22
- if (mode === 'analyse') {
23
- plugins.push(visualizer({ open: true, sourcemap: true, brotliSize: true, gzipSize: true }))
24
- }
25
-
26
- return {
27
- base: env.VITE_BASE_URL,
28
- plugins,
29
- resolve: {
30
- alias: {
31
- '@': path.join(__dirname, 'src')
32
- }
33
- },
34
- esbuild: {
35
- drop: includes(['production', 'analyse'], mode) ? ['console', 'debugger'] : []
36
- },
37
- build: {
38
- sourcemap: mode === 'analyse',
39
- reportCompressedSize: mode === 'analyse',
40
- rollupOptions: {
41
- output: {
42
- manualChunks: createChunks({
43
- svelte: ['svelte']
44
- })
45
- }
46
- }
47
- },
48
- server: {
49
- host: '0.0.0.0',
50
- proxy: {
51
- '/dev/api': {
52
- target: 'http://127.0.0.1',
53
- changeOrigin: true,
54
- rewrite: path => path.replace(/^\/dev\/api/, '')
55
- }
56
- }
57
- }
58
- }
59
- })
1
+ import path from 'path'
2
+ import { defineConfig, loadEnv } from 'vite'
3
+ import { sveltekit } from '@sveltejs/kit/vite'
4
+ import stylelint from 'vite-plugin-stylelint'
5
+ import checker from 'vite-plugin-checker'
6
+ import { visualizer } from 'rollup-plugin-visualizer'
7
+ import { includes } from 'lodash-es'
8
+ import { createChunks } from './scripts'
9
+
10
+ export default defineConfig(({ mode }) => {
11
+ const env = loadEnv(mode, process.cwd(), '')
12
+ const plugins: any[] = [
13
+ stylelint({ cache: false, include: ['**/*.{css,scss,sass,less,styl,ts,tsx}'] }),
14
+ checker({
15
+ enableBuild: false,
16
+ typescript: true,
17
+ eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
18
+ }),
19
+ sveltekit()
20
+ ]
21
+
22
+ if (mode === 'analyse') {
23
+ plugins.push(visualizer({ open: true, sourcemap: true, brotliSize: true, gzipSize: true }))
24
+ }
25
+
26
+ return {
27
+ plugins,
28
+ esbuild: {
29
+ drop: includes(['production', 'analyse'], mode) ? ['console', 'debugger'] : []
30
+ },
31
+ build: {
32
+ sourcemap: mode === 'analyse',
33
+ reportCompressedSize: mode === 'analyse',
34
+ rollupOptions: {
35
+ output: {
36
+ manualChunks: createChunks({
37
+ svelte: ['svelte']
38
+ })
39
+ }
40
+ }
41
+ },
42
+ server: {
43
+ host: '0.0.0.0',
44
+ proxy: {
45
+ '/dev/api': {
46
+ target: 'http://127.0.0.1',
47
+ changeOrigin: true,
48
+ rewrite: path => path.replace(/^\/dev\/api/, '')
49
+ }
50
+ }
51
+ }
52
+ }
53
+ })
@@ -1,14 +0,0 @@
1
- # editorconfig.org
2
-
3
- root = true
4
-
5
- [*]
6
- charset = utf-8
7
- indent_size = 4
8
- indent_style = space
9
- insert_final_newline = true
10
- trim_trailing_whitespace = true
11
-
12
-
13
- [*.md]
14
- trim_trailing_whitespace = false
@@ -1,2 +0,0 @@
1
- node_modules
2
- dist
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx --no -- commitlint --edit
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npm run lint
@@ -1,12 +0,0 @@
1
- {
2
- "printWidth": 100,
3
- "tabWidth": 4,
4
- "useTabs": false,
5
- "semi": false,
6
- "singleQuote": true,
7
- "trailingComma": "none",
8
- "bracketSpacing": true,
9
- "bracketSameLine": false,
10
- "arrowParens": "avoid",
11
- "rangeStart": 0
12
- }
@@ -1,29 +0,0 @@
1
- {
2
- "extends": "stylelint-config-standard-scss",
3
- "rules": {
4
- "comment-empty-line-before": "never",
5
- "no-empty-source": null,
6
- "alpha-value-notation": null,
7
- "color-function-notation": null,
8
- "at-rule-no-unknown": [
9
- true,
10
- {
11
- "ignoreAtRules": ["tailwind", "apply", "use"]
12
- }
13
- ],
14
- "declaration-block-no-redundant-longhand-properties": null,
15
- "selector-pseudo-class-no-unknown": [
16
- true,
17
- {
18
- "ignorePseudoClasses": ["global"]
19
- }
20
- ],
21
- "selector-class-pattern": null,
22
- "scss/at-rule-no-unknown": [
23
- true,
24
- {
25
- "ignoreAtRules": ["tailwind", "a pply"]
26
- }
27
- ]
28
- }
29
- }
@@ -1,34 +0,0 @@
1
- ## Usage
2
-
3
- Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
4
-
5
- This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.
6
-
7
- ```bash
8
- $ npm install # or pnpm install or yarn install
9
- ```
10
-
11
- ### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
12
-
13
- ## Available Scripts
14
-
15
- In the project directory, you can run:
16
-
17
- ### `npm dev` or `npm start`
18
-
19
- Runs the app in the development mode.<br>
20
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
21
-
22
- The page will reload if you make edits.<br>
23
-
24
- ### `npm run build`
25
-
26
- Builds the app for production to the `dist` folder.<br>
27
- It correctly bundles Solid in production mode and optimizes the build for the best performance.
28
-
29
- The build is minified and the filenames include the hashes.<br>
30
- Your app is ready to be deployed!
31
-
32
- ## Deployment
33
-
34
- You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
@@ -1 +0,0 @@
1
- module.exports = { extends: ['@commitlint/config-conventional'] }
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <meta name="theme-color" content="#000000" />
7
- <link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
8
- <title>Solid App</title>
9
- </head>
10
- <body>
11
- <noscript>You need to enable JavaScript to run this app.</noscript>
12
- <div id="root"></div>
13
-
14
- <script src="/src/index.tsx" type="module"></script>
15
- </body>
16
- </html>
@@ -1,53 +0,0 @@
1
- {
2
- "name": "vite-template-solid",
3
- "version": "0.0.0",
4
- "description": "",
5
- "scripts": {
6
- "prepare": "husky install",
7
- "start": "vite",
8
- "dev": "vite",
9
- "build": "vite build",
10
- "serve": "vite preview",
11
- "up:vite": "pnpm up vite @vitejs/* -L",
12
- "format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\"",
13
- "lint": "eslint ./src/**/*.{tsx,ts} && stylelint ./src/**/*.{css,scss,less}",
14
- "lint:fix": "eslint ./src/**/*.{tsx,ts} --fix && stylelint ./src/**/*.{css,scss,less} --fix",
15
- "test:watchs": "jest --watch",
16
- "test": "jest",
17
- "test:coverage": "jest --silent --watchAll=false --coverage",
18
- "cz": "cz",
19
- "push": "npm run commit && git push",
20
- "commit": "git add . && npm run cz"
21
- },
22
- "license": "MIT",
23
- "devDependencies": {
24
- "@commitlint/cli": "17.6.3",
25
- "@commitlint/config-conventional": "17.6.3",
26
- "@commitlint/cz-commitlint": "17.5.0",
27
- "@eslint/js": "9.15.0",
28
- "autoprefixer": "10.4.14",
29
- "commitizen": "4.3.0",
30
- "cssnano": "6.0.0",
31
- "inquirer": "8.0.0",
32
- "postcss": "8.4.35",
33
- "postcss-import": "16.0.1",
34
- "postcss-nesting": "12.0.3",
35
- "prettier": "3.2.5",
36
- "stylelint": "16.10.0",
37
- "stylelint-config-standard-scss": "13.0.0",
38
- "tailwindcss": "3.4.3",
39
- "typescript": "5.7.2",
40
- "typescript-eslint": "8.15.0",
41
- "vite": "6.0.7",
42
- "vite-plugin-solid": "2.11.0"
43
- },
44
- "dependencies": {
45
- "@solidjs/router": "0.8.2",
46
- "solid-js": "1.7.5"
47
- },
48
- "config": {
49
- "commitizen": {
50
- "path": "@commitlint/cz-commitlint"
51
- }
52
- }
53
- }
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- 'postcss-import': {},
4
- 'tailwindcss/nesting': 'postcss-nesting',
5
- tailwindcss: {},
6
- autoprefixer: {},
7
- ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
8
- }
9
- }
@@ -1,12 +0,0 @@
1
- import { Router, useRoutes } from '@solidjs/router'
2
- import { routes } from '@/router'
3
-
4
- export default function App() {
5
- const Routes = useRoutes(routes)
6
-
7
- return (
8
- <Router>
9
- <Routes />
10
- </Router>
11
- )
12
- }
@@ -1,15 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- body {
6
- margin: 0;
7
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
8
- 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
-
13
- code {
14
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
15
- }
@@ -1,15 +0,0 @@
1
- /* @refresh reload */
2
- import { render } from 'solid-js/web'
3
-
4
- import './index.css'
5
- import App from './app.container'
6
-
7
- const root = document.getElementById('root')
8
-
9
- if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
10
- throw new Error(
11
- 'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got mispelled?'
12
- )
13
- }
14
-
15
- render(() => <App />, root!)
@@ -1 +0,0 @@
1
- export { default } from './layout.container'
@@ -1,5 +0,0 @@
1
- import { Outlet } from '@solidjs/router'
2
-
3
- export default function Layout() {
4
- return <Outlet />
5
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 155.3"><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" fill="#76b3e1"/><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="27.5" y1="3" x2="152" y2="63.5"><stop offset=".1" stop-color="#76b3e1"/><stop offset=".3" stop-color="#dcf2fd"/><stop offset="1" stop-color="#76b3e1"/></linearGradient><path d="M163 35S110-4 69 5l-3 1c-6 2-11 5-14 9l-2 3-15 26 26 5c11 7 25 10 38 7l46 9 18-30z" opacity=".3" fill="url(#a)"/><path d="M52 35l-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" fill="#518ac8"/><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="95.8" y1="32.6" x2="74" y2="105.2"><stop offset="0" stop-color="#76b3e1"/><stop offset=".5" stop-color="#4377bb"/><stop offset="1" stop-color="#1f3b77"/></linearGradient><path d="M52 35l-4 1c-17 5-22 21-13 35 10 13 31 20 48 15l62-21S92 26 52 35z" opacity=".3" fill="url(#b)"/><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="18.4" y1="64.2" x2="144.3" y2="149.8"><stop offset="0" stop-color="#315aa9"/><stop offset=".5" stop-color="#518ac8"/><stop offset="1" stop-color="#315aa9"/></linearGradient><path d="M134 80a45 45 0 00-48-15L24 85 4 120l112 19 20-36c4-7 3-15-2-23z" fill="url(#c)"/><linearGradient id="d" gradientUnits="userSpaceOnUse" x1="75.2" y1="74.5" x2="24.4" y2="260.8"><stop offset="0" stop-color="#4377bb"/><stop offset=".5" stop-color="#1a336b"/><stop offset="1" stop-color="#1a336b"/></linearGradient><path d="M114 115a45 45 0 00-48-15L4 120s53 40 94 30l3-1c17-5 23-21 13-34z" fill="url(#d)"/></svg>
@@ -1 +0,0 @@
1
- export { default } from './view'
File without changes
@@ -1,5 +0,0 @@
1
- import './view.css'
2
-
3
- export default function Home() {
4
- return <div class={'flex justify-center items-center'}>sdfs</div>
5
- }
@@ -1 +0,0 @@
1
- export { default } from './view'
@@ -1,3 +0,0 @@
1
- export default function NotFound() {
2
- return <div>404</div>
3
- }
@@ -1,2 +0,0 @@
1
- export { default as routes } from './routes'
2
- export { default as paths } from './paths'
@@ -1,3 +0,0 @@
1
- export default {
2
- home: '/home'
3
- }
@@ -1,12 +0,0 @@
1
- import { lazy } from 'solid-js'
2
- import { RouteDefinition } from '@solidjs/router'
3
- import paths from './paths'
4
-
5
- const routes: RouteDefinition[] = [
6
- {
7
- path: ['/', paths.home],
8
- component: lazy(() => import('@/pages/home'))
9
- }
10
- ]
11
-
12
- export default routes
@@ -1,2 +0,0 @@
1
- export { default as routePaths } from './paths'
2
- export { default as routes } from './routes'
@@ -1,5 +0,0 @@
1
- import * as home from './home'
2
- export default {
3
- root: '/',
4
- ...home.paths
5
- }
@@ -1,16 +0,0 @@
1
- import { lazy } from 'solid-js'
2
- import { RouteDefinition } from '@solidjs/router'
3
- import * as home from './home'
4
-
5
- const routes: RouteDefinition[] = [
6
- {
7
- path: '/',
8
- component: lazy(() => import('@/layout')),
9
- children: [...home.routes]
10
- },
11
- {
12
- path: '/*all',
13
- component: lazy(() => import('@/pages/notFound'))
14
- }
15
- ]
16
- export default routes
@@ -1,11 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: ['./index.html', './src/**/*.{ts,tsx}'],
4
- theme: {
5
- extend: {}
6
- },
7
- plugins: [],
8
- corePlugins: {
9
- preflight: false
10
- }
11
- }
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "strict": true,
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleResolution": "node",
8
- "allowSyntheticDefaultImports": true,
9
- "strictPropertyInitialization": false,
10
- "esModuleInterop": true,
11
- "jsx": "preserve",
12
- "jsxImportSource": "solid-js",
13
- "types": ["vite/client"],
14
- "noEmit": true,
15
- "isolatedModules": true,
16
- "paths": {
17
- "@/*": ["src/*"]
18
- }
19
- }
20
- }
@@ -1,23 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import path from 'path'
3
- import solidPlugin from 'vite-plugin-solid'
4
-
5
- export default defineConfig(({ command }) => {
6
- return {
7
- plugins: [solidPlugin()],
8
- server: {
9
- port: 3000
10
- },
11
- build: {
12
- target: 'esnext'
13
- },
14
- resolve: {
15
- alias: {
16
- '@': path.join(__dirname, 'src')
17
- }
18
- },
19
- esbuild: {
20
- drop: command === 'build' ? ['console', 'debugger'] : []
21
- }
22
- }
23
- })