create-packer 1.25.17 → 1.25.19
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/package.json +1 -1
- package/template/web-app/svelte/.env +2 -0
- package/template/web-app/svelte/.env.development +2 -0
- package/template/web-app/svelte/.eslintrc +76 -0
- package/template/web-app/svelte/.gitignore +26 -9
- package/template/web-app/svelte/.prettierrc +12 -7
- package/template/web-app/svelte/.svelte-kit/ambient.d.ts +287 -0
- package/template/web-app/svelte/.svelte-kit/generated/client/app.js +19 -0
- package/template/web-app/svelte/.svelte-kit/generated/client/matchers.js +1 -0
- package/template/web-app/svelte/.svelte-kit/generated/client/nodes/0.js +1 -0
- package/template/web-app/svelte/.svelte-kit/generated/client/nodes/1.js +1 -0
- package/template/web-app/svelte/.svelte-kit/generated/client/nodes/2.js +1 -0
- package/template/web-app/svelte/.svelte-kit/generated/root.svelte +56 -0
- package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +30 -0
- package/template/web-app/svelte/.svelte-kit/tsconfig.json +39 -0
- package/template/web-app/svelte/.svelte-kit/types/route_meta_data.json +3 -0
- package/template/web-app/svelte/.svelte-kit/types/src/routes/$types.d.ts +20 -0
- package/template/web-app/svelte/package.json +37 -29
- package/template/web-app/svelte/scripts/createChunks.ts +26 -0
- package/template/web-app/svelte/scripts/index.ts +1 -0
- package/template/web-app/svelte/svelte.config.js +13 -13
- package/template/web-app/svelte/tsconfig.json +18 -15
- package/template/web-app/svelte/vite-env.d.ts +12 -0
- package/template/web-app/svelte/vite.config.ts +48 -5
- package/template/web-app/svelte/.eslintrc.cjs +0 -30
- package/template/web-app/svelte/.prettierignore +0 -13
package/package.json
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"plugins": ["@typescript-eslint"],
|
|
4
|
+
"extends": [
|
|
5
|
+
"eslint:recommended",
|
|
6
|
+
"plugin:@typescript-eslint/recommended",
|
|
7
|
+
"plugin:svelte/recommended",
|
|
8
|
+
"prettier",
|
|
9
|
+
"plugin:import/recommended",
|
|
10
|
+
"plugin:import/typescript"
|
|
11
|
+
],
|
|
12
|
+
"parser": "@typescript-eslint/parser",
|
|
13
|
+
"parserOptions": {
|
|
14
|
+
"sourceType": "module",
|
|
15
|
+
"ecmaVersion": 2020,
|
|
16
|
+
"extraFileExtensions": [".svelte"]
|
|
17
|
+
},
|
|
18
|
+
"settings": {
|
|
19
|
+
"import/resolver": {
|
|
20
|
+
"typescript": true,
|
|
21
|
+
"node": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"env": {
|
|
25
|
+
"browser": true,
|
|
26
|
+
"es2017": true,
|
|
27
|
+
"node": true
|
|
28
|
+
},
|
|
29
|
+
"overrides": [
|
|
30
|
+
{
|
|
31
|
+
"files": ["*.svelte"],
|
|
32
|
+
"parser": "svelte-eslint-parser",
|
|
33
|
+
"parserOptions": {
|
|
34
|
+
"parser": "@typescript-eslint/parser"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"rules": {
|
|
39
|
+
"import/export": "off",
|
|
40
|
+
"import/namespace": "off",
|
|
41
|
+
"import/default": "off",
|
|
42
|
+
"import/order": [
|
|
43
|
+
"error",
|
|
44
|
+
{
|
|
45
|
+
"groups": [
|
|
46
|
+
"builtin",
|
|
47
|
+
"external",
|
|
48
|
+
"internal",
|
|
49
|
+
"parent",
|
|
50
|
+
"sibling",
|
|
51
|
+
"index",
|
|
52
|
+
"object",
|
|
53
|
+
"type"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"no-case-declarations": "off",
|
|
58
|
+
"@typescript-eslint/no-var-requires": 0,
|
|
59
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
60
|
+
"@typescript-eslint/no-explicit-any": 0,
|
|
61
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
62
|
+
"@typescript-eslint/no-inferrable-types": [
|
|
63
|
+
"warn",
|
|
64
|
+
{
|
|
65
|
+
"ignoreParameters": true
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
|
69
|
+
"@typescript-eslint/member-delimiter-style": 0,
|
|
70
|
+
"@typescript-eslint/class-name-casing": 0,
|
|
71
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
72
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
73
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
74
|
+
"no-constant-condition": "off"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
|
|
2
10
|
node_modules
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
dist
|
|
12
|
+
dist-ssr
|
|
13
|
+
*.local
|
|
14
|
+
stats.html
|
|
15
|
+
vite.config.ts.*
|
|
16
|
+
|
|
17
|
+
# Editor directories and files
|
|
18
|
+
.vscode/*
|
|
19
|
+
!.vscode/extensions.json
|
|
20
|
+
.history
|
|
21
|
+
.idea
|
|
22
|
+
.DS_Store
|
|
23
|
+
*.suo
|
|
24
|
+
*.ntvs*
|
|
25
|
+
*.njsproj
|
|
26
|
+
*.sln
|
|
27
|
+
*.sw?
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"plugins": ["prettier-plugin-svelte"],
|
|
3
|
+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
|
|
4
|
+
"printWidth": 100,
|
|
5
|
+
"tabWidth": 4,
|
|
6
|
+
"useTabs": false,
|
|
7
|
+
"semi": false,
|
|
8
|
+
"singleQuote": true,
|
|
9
|
+
"trailingComma": "none",
|
|
10
|
+
"bracketSpacing": true,
|
|
11
|
+
"bracketSameLine": false,
|
|
12
|
+
"arrowParens": "avoid",
|
|
13
|
+
"rangeStart": 0
|
|
9
14
|
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
|
|
2
|
+
// this file is generated — do not edit it
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/// <reference types="@sveltejs/kit" />
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
|
9
|
+
*
|
|
10
|
+
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { API_KEY } from '$env/static/private';
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
|
17
|
+
*
|
|
18
|
+
* ```
|
|
19
|
+
* MY_FEATURE_FLAG=""
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* You can override `.env` values from the command line like so:
|
|
23
|
+
*
|
|
24
|
+
* ```bash
|
|
25
|
+
* MY_FEATURE_FLAG="enabled" npm run dev
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare module '$env/static/private' {
|
|
29
|
+
export const VITE_BASE_URL: string;
|
|
30
|
+
export const VITE_API_HOST: string;
|
|
31
|
+
export const npm_package_devDependencies_prettier: string;
|
|
32
|
+
export const MANPATH: string;
|
|
33
|
+
export const npm_package_devDependencies_eslint_plugin_svelte: string;
|
|
34
|
+
export const TERM_PROGRAM: string;
|
|
35
|
+
export const NODE: string;
|
|
36
|
+
export const npm_config__jz_registry: string;
|
|
37
|
+
export const INIT_CWD: string;
|
|
38
|
+
export const npm_package_devDependencies_typescript: string;
|
|
39
|
+
export const npm_package_devDependencies_prettier_plugin_svelte: string;
|
|
40
|
+
export const npm_package_devDependencies_vite: string;
|
|
41
|
+
export const TERM: string;
|
|
42
|
+
export const SHELL: string;
|
|
43
|
+
export const HOMEBREW_BOTTLE_DOMAIN: string;
|
|
44
|
+
export const HOMEBREW_API_DOMAIN: string;
|
|
45
|
+
export const HOMEBREW_REPOSITORY: string;
|
|
46
|
+
export const TMPDIR: string;
|
|
47
|
+
export const npm_config_metrics_registry: string;
|
|
48
|
+
export const npm_package_scripts_lint: string;
|
|
49
|
+
export const npm_config_global_prefix: string;
|
|
50
|
+
export const TERM_PROGRAM_VERSION: string;
|
|
51
|
+
export const npm_package_scripts_dev: string;
|
|
52
|
+
export const ZDOTDIR: string;
|
|
53
|
+
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
|
54
|
+
export const MallocNanoZone: string;
|
|
55
|
+
export const COLOR: string;
|
|
56
|
+
export const npm_config_home: string;
|
|
57
|
+
export const npm_config_registry: string;
|
|
58
|
+
export const npm_package_devDependencies__sveltejs_kit: string;
|
|
59
|
+
export const npm_package_private: string;
|
|
60
|
+
export const npm_config_noproxy: string;
|
|
61
|
+
export const LC_ALL: string;
|
|
62
|
+
export const ZSH: string;
|
|
63
|
+
export const npm_config_local_prefix: string;
|
|
64
|
+
export const USER: string;
|
|
65
|
+
export const npm_package_scripts_check_watch: string;
|
|
66
|
+
export const LS_COLORS: string;
|
|
67
|
+
export const COMMAND_MODE: string;
|
|
68
|
+
export const PNPM_SCRIPT_SRC_DIR: string;
|
|
69
|
+
export const npm_config_globalconfig: string;
|
|
70
|
+
export const SSH_AUTH_SOCK: string;
|
|
71
|
+
export const npm_package_devDependencies_eslint: string;
|
|
72
|
+
export const __CF_USER_TEXT_ENCODING: string;
|
|
73
|
+
export const npm_execpath: string;
|
|
74
|
+
export const npm_package_devDependencies_tslib: string;
|
|
75
|
+
export const npm_package_devDependencies__typescript_eslint_eslint_plugin: string;
|
|
76
|
+
export const HOMEBREW_PIP_INDEX_URL: string;
|
|
77
|
+
export const npm_package_devDependencies_svelte: string;
|
|
78
|
+
export const PAGER: string;
|
|
79
|
+
export const LSCOLORS: string;
|
|
80
|
+
export const npm_package_devDependencies__typescript_eslint_parser: string;
|
|
81
|
+
export const PATH: string;
|
|
82
|
+
export const npm_config_engine_strict: string;
|
|
83
|
+
export const npm_package_json: string;
|
|
84
|
+
export const USER_ZDOTDIR: string;
|
|
85
|
+
export const __CFBundleIdentifier: string;
|
|
86
|
+
export const npm_config_init_module: string;
|
|
87
|
+
export const npm_config_userconfig: string;
|
|
88
|
+
export const npm_command: string;
|
|
89
|
+
export const PWD: string;
|
|
90
|
+
export const npm_package_scripts_up_vite: string;
|
|
91
|
+
export const npm_package_scripts_preview: string;
|
|
92
|
+
export const npm_lifecycle_event: string;
|
|
93
|
+
export const EDITOR: string;
|
|
94
|
+
export const npm_package_name: string;
|
|
95
|
+
export const LANG: string;
|
|
96
|
+
export const npm_config_resolution_mode: string;
|
|
97
|
+
export const NODE_PATH: string;
|
|
98
|
+
export const npm_package_scripts_build: string;
|
|
99
|
+
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
100
|
+
export const XPC_FLAGS: string;
|
|
101
|
+
export const npm_package_devDependencies__types_lodash_es: string;
|
|
102
|
+
export const npm_config_node_gyp: string;
|
|
103
|
+
export const npm_package_devDependencies_eslint_config_prettier: string;
|
|
104
|
+
export const npm_config_sass_binary_site: string;
|
|
105
|
+
export const npm_package_devDependencies__sveltejs_adapter_auto: string;
|
|
106
|
+
export const npm_package_version: string;
|
|
107
|
+
export const XPC_SERVICE_NAME: string;
|
|
108
|
+
export const npm_package_devDependencies_svelte_check: string;
|
|
109
|
+
export const VSCODE_INJECTION: string;
|
|
110
|
+
export const npm_package_type: string;
|
|
111
|
+
export const SHLVL: string;
|
|
112
|
+
export const HOME: string;
|
|
113
|
+
export const VSCODE_GIT_ASKPASS_MAIN: string;
|
|
114
|
+
export const HOMEBREW_PREFIX: string;
|
|
115
|
+
export const npm_package_scripts_format: string;
|
|
116
|
+
export const LESS: string;
|
|
117
|
+
export const LOGNAME: string;
|
|
118
|
+
export const npm_config_cache: string;
|
|
119
|
+
export const npm_lifecycle_script: string;
|
|
120
|
+
export const npm_package_dependencies_lodash_es: string;
|
|
121
|
+
export const VSCODE_GIT_IPC_HANDLE: string;
|
|
122
|
+
export const npm_config_user_agent: string;
|
|
123
|
+
export const npm_config_ignore_scripts: string;
|
|
124
|
+
export const VSCODE_GIT_ASKPASS_NODE: string;
|
|
125
|
+
export const GIT_ASKPASS: string;
|
|
126
|
+
export const INFOPATH: string;
|
|
127
|
+
export const HOMEBREW_CELLAR: string;
|
|
128
|
+
export const npm_package_scripts_build_analyse: string;
|
|
129
|
+
export const npm_config_init_author_name: string;
|
|
130
|
+
export const npm_package_scripts_check: string;
|
|
131
|
+
export const npm_node_execpath: string;
|
|
132
|
+
export const COLORTERM: string;
|
|
133
|
+
export const npm_config_prefix: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
|
138
|
+
*
|
|
139
|
+
* Values are replaced statically at build time.
|
|
140
|
+
*
|
|
141
|
+
* ```ts
|
|
142
|
+
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
declare module '$env/static/public' {
|
|
146
|
+
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
|
151
|
+
*
|
|
152
|
+
* This module cannot be imported into client-side code.
|
|
153
|
+
*
|
|
154
|
+
* ```ts
|
|
155
|
+
* import { env } from '$env/dynamic/private';
|
|
156
|
+
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
|
160
|
+
*/
|
|
161
|
+
declare module '$env/dynamic/private' {
|
|
162
|
+
export const env: {
|
|
163
|
+
VITE_BASE_URL: string;
|
|
164
|
+
VITE_API_HOST: string;
|
|
165
|
+
npm_package_devDependencies_prettier: string;
|
|
166
|
+
MANPATH: string;
|
|
167
|
+
npm_package_devDependencies_eslint_plugin_svelte: string;
|
|
168
|
+
TERM_PROGRAM: string;
|
|
169
|
+
NODE: string;
|
|
170
|
+
npm_config__jz_registry: string;
|
|
171
|
+
INIT_CWD: string;
|
|
172
|
+
npm_package_devDependencies_typescript: string;
|
|
173
|
+
npm_package_devDependencies_prettier_plugin_svelte: string;
|
|
174
|
+
npm_package_devDependencies_vite: string;
|
|
175
|
+
TERM: string;
|
|
176
|
+
SHELL: string;
|
|
177
|
+
HOMEBREW_BOTTLE_DOMAIN: string;
|
|
178
|
+
HOMEBREW_API_DOMAIN: string;
|
|
179
|
+
HOMEBREW_REPOSITORY: string;
|
|
180
|
+
TMPDIR: string;
|
|
181
|
+
npm_config_metrics_registry: string;
|
|
182
|
+
npm_package_scripts_lint: string;
|
|
183
|
+
npm_config_global_prefix: string;
|
|
184
|
+
TERM_PROGRAM_VERSION: string;
|
|
185
|
+
npm_package_scripts_dev: string;
|
|
186
|
+
ZDOTDIR: string;
|
|
187
|
+
ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
|
188
|
+
MallocNanoZone: string;
|
|
189
|
+
COLOR: string;
|
|
190
|
+
npm_config_home: string;
|
|
191
|
+
npm_config_registry: string;
|
|
192
|
+
npm_package_devDependencies__sveltejs_kit: string;
|
|
193
|
+
npm_package_private: string;
|
|
194
|
+
npm_config_noproxy: string;
|
|
195
|
+
LC_ALL: string;
|
|
196
|
+
ZSH: string;
|
|
197
|
+
npm_config_local_prefix: string;
|
|
198
|
+
USER: string;
|
|
199
|
+
npm_package_scripts_check_watch: string;
|
|
200
|
+
LS_COLORS: string;
|
|
201
|
+
COMMAND_MODE: string;
|
|
202
|
+
PNPM_SCRIPT_SRC_DIR: string;
|
|
203
|
+
npm_config_globalconfig: string;
|
|
204
|
+
SSH_AUTH_SOCK: string;
|
|
205
|
+
npm_package_devDependencies_eslint: string;
|
|
206
|
+
__CF_USER_TEXT_ENCODING: string;
|
|
207
|
+
npm_execpath: string;
|
|
208
|
+
npm_package_devDependencies_tslib: string;
|
|
209
|
+
npm_package_devDependencies__typescript_eslint_eslint_plugin: string;
|
|
210
|
+
HOMEBREW_PIP_INDEX_URL: string;
|
|
211
|
+
npm_package_devDependencies_svelte: string;
|
|
212
|
+
PAGER: string;
|
|
213
|
+
LSCOLORS: string;
|
|
214
|
+
npm_package_devDependencies__typescript_eslint_parser: string;
|
|
215
|
+
PATH: string;
|
|
216
|
+
npm_config_engine_strict: string;
|
|
217
|
+
npm_package_json: string;
|
|
218
|
+
USER_ZDOTDIR: string;
|
|
219
|
+
__CFBundleIdentifier: string;
|
|
220
|
+
npm_config_init_module: string;
|
|
221
|
+
npm_config_userconfig: string;
|
|
222
|
+
npm_command: string;
|
|
223
|
+
PWD: string;
|
|
224
|
+
npm_package_scripts_up_vite: string;
|
|
225
|
+
npm_package_scripts_preview: string;
|
|
226
|
+
npm_lifecycle_event: string;
|
|
227
|
+
EDITOR: string;
|
|
228
|
+
npm_package_name: string;
|
|
229
|
+
LANG: string;
|
|
230
|
+
npm_config_resolution_mode: string;
|
|
231
|
+
NODE_PATH: string;
|
|
232
|
+
npm_package_scripts_build: string;
|
|
233
|
+
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
234
|
+
XPC_FLAGS: string;
|
|
235
|
+
npm_package_devDependencies__types_lodash_es: string;
|
|
236
|
+
npm_config_node_gyp: string;
|
|
237
|
+
npm_package_devDependencies_eslint_config_prettier: string;
|
|
238
|
+
npm_config_sass_binary_site: string;
|
|
239
|
+
npm_package_devDependencies__sveltejs_adapter_auto: string;
|
|
240
|
+
npm_package_version: string;
|
|
241
|
+
XPC_SERVICE_NAME: string;
|
|
242
|
+
npm_package_devDependencies_svelte_check: string;
|
|
243
|
+
VSCODE_INJECTION: string;
|
|
244
|
+
npm_package_type: string;
|
|
245
|
+
SHLVL: string;
|
|
246
|
+
HOME: string;
|
|
247
|
+
VSCODE_GIT_ASKPASS_MAIN: string;
|
|
248
|
+
HOMEBREW_PREFIX: string;
|
|
249
|
+
npm_package_scripts_format: string;
|
|
250
|
+
LESS: string;
|
|
251
|
+
LOGNAME: string;
|
|
252
|
+
npm_config_cache: string;
|
|
253
|
+
npm_lifecycle_script: string;
|
|
254
|
+
npm_package_dependencies_lodash_es: string;
|
|
255
|
+
VSCODE_GIT_IPC_HANDLE: string;
|
|
256
|
+
npm_config_user_agent: string;
|
|
257
|
+
npm_config_ignore_scripts: string;
|
|
258
|
+
VSCODE_GIT_ASKPASS_NODE: string;
|
|
259
|
+
GIT_ASKPASS: string;
|
|
260
|
+
INFOPATH: string;
|
|
261
|
+
HOMEBREW_CELLAR: string;
|
|
262
|
+
npm_package_scripts_build_analyse: string;
|
|
263
|
+
npm_config_init_author_name: string;
|
|
264
|
+
npm_package_scripts_check: string;
|
|
265
|
+
npm_node_execpath: string;
|
|
266
|
+
COLORTERM: string;
|
|
267
|
+
npm_config_prefix: string;
|
|
268
|
+
[key: `PUBLIC_${string}`]: undefined;
|
|
269
|
+
[key: `${string}`]: string | undefined;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
|
275
|
+
*
|
|
276
|
+
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
|
277
|
+
*
|
|
278
|
+
* ```ts
|
|
279
|
+
* import { env } from '$env/dynamic/public';
|
|
280
|
+
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
declare module '$env/dynamic/public' {
|
|
284
|
+
export const env: {
|
|
285
|
+
[key: `PUBLIC_${string}`]: string | undefined;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { matchers } from './matchers.js';
|
|
2
|
+
|
|
3
|
+
export const nodes = [
|
|
4
|
+
() => import('./nodes/0'),
|
|
5
|
+
() => import('./nodes/1'),
|
|
6
|
+
() => import('./nodes/2')
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export const server_loads = [];
|
|
10
|
+
|
|
11
|
+
export const dictionary = {
|
|
12
|
+
"/": [2]
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const hooks = {
|
|
16
|
+
handleError: (({ error }) => { console.error(error) }),
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { default as root } from '../root.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const matchers = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@1.25.0_svelte@4.2.1_vite@4.4.9/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@1.25.0_svelte@4.2.1_vite@4.4.9/node_modules/@sveltejs/kit/src/runtime/components/error.svelte";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as component } from "../../../../src/routes/+page.svelte";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
|
|
2
|
+
<script>
|
|
3
|
+
import { setContext, afterUpdate, onMount, tick } from 'svelte';
|
|
4
|
+
import { browser } from '$app/environment';
|
|
5
|
+
|
|
6
|
+
// stores
|
|
7
|
+
export let stores;
|
|
8
|
+
export let page;
|
|
9
|
+
|
|
10
|
+
export let constructors;
|
|
11
|
+
export let components = [];
|
|
12
|
+
export let form;
|
|
13
|
+
export let data_0 = null;
|
|
14
|
+
export let data_1 = null;
|
|
15
|
+
|
|
16
|
+
if (!browser) {
|
|
17
|
+
setContext('__svelte__', stores);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
$: stores.page.set(page);
|
|
21
|
+
afterUpdate(stores.page.notify);
|
|
22
|
+
|
|
23
|
+
let mounted = false;
|
|
24
|
+
let navigated = false;
|
|
25
|
+
let title = null;
|
|
26
|
+
|
|
27
|
+
onMount(() => {
|
|
28
|
+
const unsubscribe = stores.page.subscribe(() => {
|
|
29
|
+
if (mounted) {
|
|
30
|
+
navigated = true;
|
|
31
|
+
tick().then(() => {
|
|
32
|
+
title = document.title || 'untitled page';
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
mounted = true;
|
|
38
|
+
return unsubscribe;
|
|
39
|
+
});
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
{#if constructors[1]}
|
|
43
|
+
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0}>
|
|
44
|
+
<svelte:component this={constructors[1]} bind:this={components[1]} data={data_1} {form} />
|
|
45
|
+
</svelte:component>
|
|
46
|
+
{:else}
|
|
47
|
+
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0} {form} />
|
|
48
|
+
{/if}
|
|
49
|
+
|
|
50
|
+
{#if mounted}
|
|
51
|
+
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
|
|
52
|
+
{#if navigated}
|
|
53
|
+
{title}
|
|
54
|
+
{/if}
|
|
55
|
+
</div>
|
|
56
|
+
{/if}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
import root from '../root.svelte';
|
|
3
|
+
import { set_building } from '__sveltekit/environment';
|
|
4
|
+
import { set_assets } from '__sveltekit/paths';
|
|
5
|
+
import { set_private_env, set_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@1.25.0_svelte@4.2.1_vite@4.4.9/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
|
6
|
+
|
|
7
|
+
export const options = {
|
|
8
|
+
app_template_contains_nonce: false,
|
|
9
|
+
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
|
10
|
+
csrf_check_origin: true,
|
|
11
|
+
track_server_fetches: false,
|
|
12
|
+
embedded: false,
|
|
13
|
+
env_public_prefix: 'PUBLIC_',
|
|
14
|
+
env_private_prefix: '',
|
|
15
|
+
hooks: null, // added lazily, via `get_hooks`
|
|
16
|
+
preload_strategy: "modulepreload",
|
|
17
|
+
root,
|
|
18
|
+
service_worker: false,
|
|
19
|
+
templates: {
|
|
20
|
+
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
|
|
21
|
+
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: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n\t\t\t\t\tUbuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-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"
|
|
22
|
+
},
|
|
23
|
+
version_hash: "nvk3jq"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export function get_hooks() {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { set_assets, set_building, set_private_env, set_public_env };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"paths": {},
|
|
4
|
+
"rootDirs": [
|
|
5
|
+
"..",
|
|
6
|
+
"./types"
|
|
7
|
+
],
|
|
8
|
+
"importsNotUsedAsValues": "error",
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"preserveValueImports": true,
|
|
11
|
+
"lib": [
|
|
12
|
+
"esnext",
|
|
13
|
+
"DOM",
|
|
14
|
+
"DOM.Iterable"
|
|
15
|
+
],
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"module": "esnext",
|
|
18
|
+
"target": "esnext",
|
|
19
|
+
"ignoreDeprecations": "5.0"
|
|
20
|
+
},
|
|
21
|
+
"include": [
|
|
22
|
+
"ambient.d.ts",
|
|
23
|
+
"./types/**/$types.d.ts",
|
|
24
|
+
"../vite.config.ts",
|
|
25
|
+
"../src/**/*.js",
|
|
26
|
+
"../src/**/*.ts",
|
|
27
|
+
"../src/**/*.svelte",
|
|
28
|
+
"../tests/**/*.js",
|
|
29
|
+
"../tests/**/*.ts",
|
|
30
|
+
"../tests/**/*.svelte"
|
|
31
|
+
],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"../node_modules/**",
|
|
34
|
+
"./[!ambient.d.ts]**",
|
|
35
|
+
"../src/service-worker.js",
|
|
36
|
+
"../src/service-worker.ts",
|
|
37
|
+
"../src/service-worker.d.ts"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Kit from '@sveltejs/kit';
|
|
2
|
+
|
|
3
|
+
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
4
|
+
type RouteParams = { }
|
|
5
|
+
type RouteId = '/';
|
|
6
|
+
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
|
7
|
+
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
|
8
|
+
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
|
9
|
+
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
|
10
|
+
type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
|
|
11
|
+
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
|
12
|
+
type PageParentData = EnsureDefined<LayoutData>;
|
|
13
|
+
type LayoutRouteId = RouteId | "/" | null
|
|
14
|
+
type LayoutParams = RouteParams & { }
|
|
15
|
+
type LayoutParentData = EnsureDefined<{}>;
|
|
16
|
+
|
|
17
|
+
export type PageServerData = null;
|
|
18
|
+
export type PageData = Expand<PageParentData>;
|
|
19
|
+
export type LayoutServerData = null;
|
|
20
|
+
export type LayoutData = Expand<LayoutParentData>;
|
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
"name": "svelte",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "npm run check && npm run lint && vite build",
|
|
9
|
+
"build:analyse": "npm run check && npm run lint && vite build --mode analyse",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"up:vite": "pnpm up vite @vitejs/* -L",
|
|
12
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
13
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"format": "prettier --plugin-search-dir . --write ."
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@sveltejs/adapter-auto": "2.1.0",
|
|
19
|
+
"@sveltejs/kit": "1.25.0",
|
|
20
|
+
"@types/lodash-es": "^4.17.9",
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "6.7.2",
|
|
22
|
+
"@typescript-eslint/parser": "6.7.2",
|
|
23
|
+
"eslint": "8.50.0",
|
|
24
|
+
"eslint-config-prettier": "9.0.0",
|
|
25
|
+
"eslint-plugin-import": "2.27.5",
|
|
26
|
+
"eslint-plugin-svelte": "2.33.2",
|
|
27
|
+
"prettier": "3.0.3",
|
|
28
|
+
"prettier-plugin-svelte": "3.0.3",
|
|
29
|
+
"rollup-plugin-visualizer": "5.9.2",
|
|
30
|
+
"svelte-check": "3.5.2",
|
|
31
|
+
"tslib": "2.6.2",
|
|
32
|
+
"typescript": "5.2.2",
|
|
33
|
+
"vite": "4.4.9"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"lodash-es": "4.17.21",
|
|
37
|
+
"svelte": "4.2.1"
|
|
38
|
+
}
|
|
31
39
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { concat, forEach, isArray, isRegExp, keys, remove, size } from 'lodash-es'
|
|
2
|
+
import pkg from '../package.json'
|
|
3
|
+
|
|
4
|
+
export function createChunks(chunks: { [key: string]: Array<string | RegExp> }) {
|
|
5
|
+
const vendor = keys(pkg.dependencies)
|
|
6
|
+
const result: { [key: string]: string[] } = {}
|
|
7
|
+
|
|
8
|
+
forEach(chunks, (values, key) => {
|
|
9
|
+
if (!isArray(result[key])) {
|
|
10
|
+
result[key] = []
|
|
11
|
+
}
|
|
12
|
+
forEach(values, value => {
|
|
13
|
+
let modules: string[] = []
|
|
14
|
+
if (isRegExp(value)) {
|
|
15
|
+
modules = remove(vendor, name => value.test(name))
|
|
16
|
+
} else {
|
|
17
|
+
modules = remove(vendor, name => name === value)
|
|
18
|
+
}
|
|
19
|
+
if (size(modules) > 0) {
|
|
20
|
+
result[key] = concat(result[key], modules)
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
})
|
|
24
|
+
result.vendor = vendor
|
|
25
|
+
return result
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createChunks'
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import adapter from '@sveltejs/adapter-auto'
|
|
2
|
-
import { vitePreprocess } from '@sveltejs/kit/vite'
|
|
1
|
+
import adapter from '@sveltejs/adapter-auto'
|
|
2
|
+
import { vitePreprocess } from '@sveltejs/kit/vite'
|
|
3
3
|
|
|
4
4
|
/** @type {import('@sveltejs/kit').Config} */
|
|
5
5
|
const config = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
7
|
+
// for more information about preprocessors
|
|
8
|
+
preprocess: vitePreprocess(),
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
10
|
+
kit: {
|
|
11
|
+
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
|
12
|
+
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
|
13
|
+
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
|
14
|
+
adapter: adapter()
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
export default config
|
|
18
|
+
export default config
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"extends": "./.svelte-kit/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"checkJs": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"paths": {
|
|
13
|
+
"@/*": ["./*"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
|
17
|
+
//
|
|
18
|
+
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
|
19
|
+
// from the referenced tsconfig.json - TypeScript does not merge them in
|
|
17
20
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vite-plugin-svgr/client" />
|
|
3
|
+
|
|
4
|
+
interface ImportMetaEnv {
|
|
5
|
+
readonly VITE_BASE_URL: string
|
|
6
|
+
readonly VITE_API_HOST: string
|
|
7
|
+
// 更多环境变量...
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface ImportMeta {
|
|
11
|
+
readonly env: ImportMetaEnv
|
|
12
|
+
}
|
|
@@ -1,6 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineConfig } from 'vite'
|
|
1
|
+
import path from 'path'
|
|
2
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
3
|
+
import { sveltekit } from '@sveltejs/kit/vite'
|
|
4
|
+
import { visualizer } from 'rollup-plugin-visualizer'
|
|
5
|
+
import { includes } from 'lodash-es'
|
|
6
|
+
import { createChunks } from './scripts'
|
|
3
7
|
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
export default defineConfig(({ mode }) => {
|
|
9
|
+
const env = loadEnv(mode, process.cwd(), '')
|
|
10
|
+
const plugins: any[] = [sveltekit()]
|
|
11
|
+
|
|
12
|
+
if (mode === 'analyse') {
|
|
13
|
+
plugins.push(visualizer({ open: true, sourcemap: true, brotliSize: true, gzipSize: true }))
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
base: env.VITE_BASE_URL,
|
|
18
|
+
plugins,
|
|
19
|
+
resolve: {
|
|
20
|
+
alias: {
|
|
21
|
+
'@': path.join(__dirname, 'src')
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
esbuild: {
|
|
25
|
+
drop: includes(['production', 'analyse'], mode) ? ['console', 'debugger'] : []
|
|
26
|
+
},
|
|
27
|
+
build: {
|
|
28
|
+
sourcemap: mode === 'analyse',
|
|
29
|
+
reportCompressedSize: mode === 'analyse',
|
|
30
|
+
rollupOptions: {
|
|
31
|
+
output: {
|
|
32
|
+
manualChunks: createChunks({
|
|
33
|
+
svelte: ['svelte']
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
server: {
|
|
39
|
+
host: '0.0.0.0',
|
|
40
|
+
proxy: {
|
|
41
|
+
'/dev/api': {
|
|
42
|
+
target: 'http://127.0.0.1',
|
|
43
|
+
changeOrigin: true,
|
|
44
|
+
rewrite: path => path.replace(/^\/dev\/api/, '')
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
})
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
extends: [
|
|
4
|
-
'eslint:recommended',
|
|
5
|
-
'plugin:@typescript-eslint/recommended',
|
|
6
|
-
'plugin:svelte/recommended',
|
|
7
|
-
'prettier'
|
|
8
|
-
],
|
|
9
|
-
parser: '@typescript-eslint/parser',
|
|
10
|
-
plugins: ['@typescript-eslint'],
|
|
11
|
-
parserOptions: {
|
|
12
|
-
sourceType: 'module',
|
|
13
|
-
ecmaVersion: 2020,
|
|
14
|
-
extraFileExtensions: ['.svelte']
|
|
15
|
-
},
|
|
16
|
-
env: {
|
|
17
|
-
browser: true,
|
|
18
|
-
es2017: true,
|
|
19
|
-
node: true
|
|
20
|
-
},
|
|
21
|
-
overrides: [
|
|
22
|
-
{
|
|
23
|
-
files: ['*.svelte'],
|
|
24
|
-
parser: 'svelte-eslint-parser',
|
|
25
|
-
parserOptions: {
|
|
26
|
-
parser: '@typescript-eslint/parser'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
};
|