@flight-framework/cli 0.3.2 → 0.3.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.
Files changed (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +544 -544
  3. package/dist/bin.js +0 -0
  4. package/dist/bin.js.map +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/package.json +51 -51
  7. package/templates/angular/index.html +13 -13
  8. package/templates/angular/package.json.template +25 -25
  9. package/templates/angular/src/app.component.ts +13 -13
  10. package/templates/angular/src/main.server.ts +11 -11
  11. package/templates/angular/src/main.ts +4 -4
  12. package/templates/angular/tsconfig.json +16 -16
  13. package/templates/base/README.md.template +26 -26
  14. package/templates/base/_gitignore +25 -25
  15. package/templates/base/flight.config.ts.template +15 -15
  16. package/templates/base/styles/global.css +58 -58
  17. package/templates/htmx/index.html +18 -18
  18. package/templates/htmx/package.json.template +18 -18
  19. package/templates/htmx/vite.config.ts +6 -6
  20. package/templates/lit/index.html +14 -14
  21. package/templates/lit/package.json.template +21 -21
  22. package/templates/lit/src/app-root.ts +18 -18
  23. package/templates/lit/src/entry-client.ts +5 -5
  24. package/templates/lit/src/entry-server.ts +9 -9
  25. package/templates/lit/tsconfig.json +18 -18
  26. package/templates/lit/vite.config.ts +6 -6
  27. package/templates/preact/index.html +14 -14
  28. package/templates/preact/package.json.template +22 -22
  29. package/templates/preact/src/App.tsx +8 -8
  30. package/templates/preact/src/entry-client.tsx +11 -11
  31. package/templates/preact/src/entry-server.tsx +6 -6
  32. package/templates/preact/tsconfig.json +18 -18
  33. package/templates/preact/vite.config.ts +8 -8
  34. package/templates/qwik/index.html +14 -14
  35. package/templates/qwik/package.json.template +20 -20
  36. package/templates/qwik/src/App.tsx +10 -10
  37. package/templates/qwik/src/entry-client.tsx +4 -4
  38. package/templates/qwik/src/entry-server.tsx +9 -9
  39. package/templates/qwik/tsconfig.json +18 -18
  40. package/templates/qwik/vite.config.ts +8 -8
  41. package/templates/react/index.html +13 -13
  42. package/templates/react/package.json.template +24 -24
  43. package/templates/react/src/App.tsx +13 -13
  44. package/templates/react/src/context/RouterContext.tsx +63 -63
  45. package/templates/react/src/entry-client.tsx +19 -19
  46. package/templates/react/src/entry-server.tsx +17 -17
  47. package/templates/react/tsconfig.json +19 -19
  48. package/templates/react/vite.config.ts +12 -12
  49. package/templates/solid/index.html +14 -14
  50. package/templates/solid/package.json.template +21 -21
  51. package/templates/solid/src/App.tsx +8 -8
  52. package/templates/solid/src/entry-client.tsx +11 -11
  53. package/templates/solid/src/entry-server.tsx +6 -6
  54. package/templates/solid/tsconfig.json +18 -18
  55. package/templates/solid/vite.config.ts +8 -8
  56. package/templates/svelte/index.html +14 -14
  57. package/templates/svelte/package.json.template +21 -21
  58. package/templates/svelte/src/App.svelte +4 -4
  59. package/templates/svelte/src/entry-client.ts +7 -7
  60. package/templates/svelte/src/entry-server.ts +7 -7
  61. package/templates/svelte/tsconfig.json +17 -17
  62. package/templates/svelte/vite.config.ts +8 -8
  63. package/templates/use-cases/api/README.md +41 -41
  64. package/templates/use-cases/api/package.json.template +14 -14
  65. package/templates/use-cases/api/src/routes/api/health.get.ts.template +3 -3
  66. package/templates/use-cases/blog/README.md +47 -47
  67. package/templates/use-cases/blog/flight.config.ts.template +11 -11
  68. package/templates/use-cases/blog/package.json.template +15 -15
  69. package/templates/use-cases/blog/src/routes/blog/[slug].page.tsx.template +23 -23
  70. package/templates/use-cases/blog/src/routes/index.page.tsx.template +9 -9
  71. package/templates/use-cases/docs/README.md +49 -49
  72. package/templates/use-cases/docs/package.json.template +15 -15
  73. package/templates/use-cases/docs/src/content/index.md.template +16 -16
  74. package/templates/use-cases/ecommerce/README.md +32 -32
  75. package/templates/use-cases/ecommerce/package.json.template +16 -16
  76. package/templates/use-cases/ecommerce/src/routes/index.page.tsx.template +9 -9
  77. package/templates/use-cases/saas/README.md +34 -34
  78. package/templates/use-cases/saas/package.json.template +15 -15
  79. package/templates/use-cases/saas/src/routes/index.page.tsx.template +9 -9
  80. package/templates/vanilla/index.html +14 -14
  81. package/templates/vanilla/package.json.template +19 -19
  82. package/templates/vanilla/src/main.ts +10 -10
  83. package/templates/vanilla/tsconfig.json +16 -16
  84. package/templates/vanilla/vite.config.ts +6 -6
  85. package/templates/vue/index.html +14 -14
  86. package/templates/vue/package.json.template +21 -21
  87. package/templates/vue/src/App.vue +6 -6
  88. package/templates/vue/src/entry-client.ts +12 -12
  89. package/templates/vue/src/entry-server.ts +8 -8
  90. package/templates/vue/tsconfig.json +17 -17
  91. package/templates/vue/vite.config.ts +8 -8
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
1
  {
2
- "name": "@flight-framework/cli",
3
- "version": "0.3.2",
4
- "description": "Command-line interface for Flight Framework",
5
- "keywords": [
6
- "flight",
7
- "cli",
8
- "framework"
9
- ],
10
- "license": "MIT",
11
- "author": "Flight Contributors",
12
- "type": "module",
13
- "bin": {
14
- "flight": "./dist/bin.js"
15
- },
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
20
- }
21
- },
22
- "main": "./dist/index.js",
23
- "types": "./dist/index.d.ts",
24
- "files": [
25
- "dist",
26
- "templates"
27
- ],
28
- "scripts": {
29
- "build": "tsup",
30
- "dev": "tsup --watch",
31
- "test": "vitest run",
32
- "lint": "eslint src/",
33
- "clean": "rimraf dist",
34
- "typecheck": "tsc --noEmit"
35
- },
36
- "dependencies": {
37
- "@flight-framework/core": "^0.5.0",
38
- "@flight-framework/http": "0.0.3",
39
- "cac": "^6.7.14",
40
- "picocolors": "^1.1.0",
41
- "prompts": "^2.4.2"
42
- },
43
- "devDependencies": {
44
- "@types/node": "^22.0.0",
45
- "@types/prompts": "^2.4.9",
46
- "rimraf": "^6.0.0",
47
- "tsup": "^8.0.0",
48
- "typescript": "^5.7.0",
49
- "vitest": "^2.0.0"
50
- },
51
- "peerDependencies": {
52
- "vite": "^6.0.0 || ^7.0.0"
2
+ "name": "@flight-framework/cli",
3
+ "version": "0.3.4",
4
+ "description": "Command-line interface for Flight Framework",
5
+ "keywords": [
6
+ "flight",
7
+ "cli",
8
+ "framework"
9
+ ],
10
+ "license": "MIT",
11
+ "author": "Flight Contributors",
12
+ "type": "module",
13
+ "bin": {
14
+ "flight": "./dist/bin.js"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
53
20
  }
21
+ },
22
+ "main": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
+ "files": [
25
+ "dist",
26
+ "templates"
27
+ ],
28
+ "dependencies": {
29
+ "@flight-framework/core": "^0.5.0",
30
+ "@flight-framework/http": "0.0.4",
31
+ "cac": "^6.7.14",
32
+ "picocolors": "^1.1.0",
33
+ "prompts": "^2.4.2"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^22.0.0",
37
+ "@types/prompts": "^2.4.9",
38
+ "rimraf": "^6.0.0",
39
+ "tsup": "^8.0.0",
40
+ "typescript": "^5.7.0",
41
+ "vitest": "^2.0.0"
42
+ },
43
+ "peerDependencies": {
44
+ "vite": "^6.0.0 || ^7.0.0"
45
+ },
46
+ "scripts": {
47
+ "build": "tsup",
48
+ "dev": "tsup --watch",
49
+ "test": "vitest run",
50
+ "lint": "eslint src/",
51
+ "clean": "rimraf dist",
52
+ "typecheck": "tsc --noEmit"
53
+ }
54
54
  }
@@ -1,13 +1,13 @@
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.0" />
6
- <title>{{PROJECT_NAME}}</title>
7
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
- </head>
9
- <body>
10
- <app-root><!--ssr-outlet--></app-root>
11
- <script type="module" src="/src/main.ts"></script>
12
- </body>
13
- </html>
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.0" />
6
+ <title>{{PROJECT_NAME}}</title>
7
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
+ </head>
9
+ <body>
10
+ <app-root><!--ssr-outlet--></app-root>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
@@ -1,25 +1,25 @@
1
- {
2
- "name": "{{PROJECT_NAME}}",
3
- "version": "0.0.1",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "flight dev",
8
- "build": "flight build",
9
- "preview": "flight preview"
10
- },
11
- "dependencies": {
12
- "@flight-framework/core": "^0.0.1",
13
- "{{BUNDLER_PACKAGE}}": "^0.0.1",
14
- "@angular/core": "^19.0.0",
15
- "@angular/common": "^19.0.0",
16
- "@angular/platform-browser": "^19.0.0",
17
- "@angular/platform-server": "^19.0.0"
18
- },
19
- "devDependencies": {
20
- "@angular/compiler": "^19.0.0",
21
- "@angular/compiler-cli": "^19.0.0",
22
- "typescript": "^5.7.0",
23
- "vite": "^6.0.0"
24
- }
25
- }
1
+ {
2
+ "name": "{{PROJECT_NAME}}",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "flight dev",
8
+ "build": "flight build",
9
+ "preview": "flight preview"
10
+ },
11
+ "dependencies": {
12
+ "@flight-framework/core": "^0.0.1",
13
+ "{{BUNDLER_PACKAGE}}": "^0.0.1",
14
+ "@angular/core": "^19.0.0",
15
+ "@angular/common": "^19.0.0",
16
+ "@angular/platform-browser": "^19.0.0",
17
+ "@angular/platform-server": "^19.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "@angular/compiler": "^19.0.0",
21
+ "@angular/compiler-cli": "^19.0.0",
22
+ "typescript": "^5.7.0",
23
+ "vite": "^6.0.0"
24
+ }
25
+ }
@@ -1,13 +1,13 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'app-root',
5
- standalone: true,
6
- template: `
7
- <main>
8
- <h1>Welcome to Flight</h1>
9
- <p>Edit <code>src/app.component.ts</code> to get started.</p>
10
- </main>
11
- `,
12
- })
13
- export class AppComponent { }
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'app-root',
5
+ standalone: true,
6
+ template: `
7
+ <main>
8
+ <h1>Welcome to Flight</h1>
9
+ <p>Edit <code>src/app.component.ts</code> to get started.</p>
10
+ </main>
11
+ `,
12
+ })
13
+ export class AppComponent { }
@@ -1,11 +1,11 @@
1
- import { renderApplication } from '@angular/platform-server';
2
- import { bootstrapApplication } from '@angular/platform-browser';
3
- import { AppComponent } from './app.component';
4
-
5
- export async function render(url: string): Promise<string> {
6
- return await renderApplication(() => bootstrapApplication(AppComponent), {
7
- url,
8
- document: '<app-root></app-root>',
9
- });
10
- }
11
-
1
+ import { renderApplication } from '@angular/platform-server';
2
+ import { bootstrapApplication } from '@angular/platform-browser';
3
+ import { AppComponent } from './app.component';
4
+
5
+ export async function render(url: string): Promise<string> {
6
+ return await renderApplication(() => bootstrapApplication(AppComponent), {
7
+ url,
8
+ document: '<app-root></app-root>',
9
+ });
10
+ }
11
+
@@ -1,4 +1,4 @@
1
- import { bootstrapApplication } from '@angular/platform-browser';
2
- import { AppComponent } from './app.component';
3
-
4
- bootstrapApplication(AppComponent).catch((err) => console.error(err));
1
+ import { bootstrapApplication } from '@angular/platform-browser';
2
+ import { AppComponent } from './app.component';
3
+
4
+ bootstrapApplication(AppComponent).catch((err) => console.error(err));
@@ -1,16 +1,16 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "strict": true,
7
- "esModuleInterop": true,
8
- "skipLibCheck": true,
9
- "experimentalDecorators": true,
10
- "emitDecoratorMetadata": true,
11
- "declaration": false,
12
- "outDir": "./dist"
13
- },
14
- "include": ["src/**/*"],
15
- "exclude": ["node_modules"]
16
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "skipLibCheck": true,
9
+ "experimentalDecorators": true,
10
+ "emitDecoratorMetadata": true,
11
+ "declaration": false,
12
+ "outDir": "./dist"
13
+ },
14
+ "include": ["src/**/*"],
15
+ "exclude": ["node_modules"]
16
+ }
@@ -1,26 +1,26 @@
1
- # {{PROJECT_NAME}}
2
-
3
- A Flight application.
4
-
5
- ## Development
6
-
7
- ```bash
8
- npm run dev
9
- ```
10
-
11
- ## Build
12
-
13
- ```bash
14
- npm run build
15
- npm run preview
16
- ```
17
-
18
- ## Stack
19
-
20
- - **UI**: {{UI_FRAMEWORK}}
21
- - **Build**: Vite 6
22
- - **Language**: {{LANGUAGE}}
23
-
24
- ---
25
-
26
- *Built with [Flight Framework](https://github.com/EliosLT/Flight-framework) - Maximum flexibility. Zero lock-in.*
1
+ # {{PROJECT_NAME}}
2
+
3
+ A Flight application.
4
+
5
+ ## Development
6
+
7
+ ```bash
8
+ npm run dev
9
+ ```
10
+
11
+ ## Build
12
+
13
+ ```bash
14
+ npm run build
15
+ npm run preview
16
+ ```
17
+
18
+ ## Stack
19
+
20
+ - **UI**: {{UI_FRAMEWORK}}
21
+ - **Build**: Vite 6
22
+ - **Language**: {{LANGUAGE}}
23
+
24
+ ---
25
+
26
+ *Built with [Flight Framework](https://github.com/EliosLT/Flight-framework) - Maximum flexibility. Zero lock-in.*
@@ -1,25 +1,25 @@
1
- # Dependencies
2
- node_modules/
3
-
4
- # Build output
5
- dist/
6
- .output/
7
-
8
- # Environment
9
- .env
10
- .env.*
11
- !.env.example
12
-
13
- # Logs
14
- *.log
15
- npm-debug.log*
16
-
17
- # Editor
18
- .vscode/
19
- .idea/
20
- *.swp
21
- *.swo
22
-
23
- # OS
24
- .DS_Store
25
- Thumbs.db
1
+ # Dependencies
2
+ node_modules/
3
+
4
+ # Build output
5
+ dist/
6
+ .output/
7
+
8
+ # Environment
9
+ .env
10
+ .env.*
11
+ !.env.example
12
+
13
+ # Logs
14
+ *.log
15
+ npm-debug.log*
16
+
17
+ # Editor
18
+ .vscode/
19
+ .idea/
20
+ *.swp
21
+ *.swo
22
+
23
+ # OS
24
+ .DS_Store
25
+ Thumbs.db
@@ -1,15 +1,15 @@
1
- // Flight Framework Configuration
2
- // Using {{BUNDLER}} bundler with {{UI_FRAMEWORK}} UI
3
-
4
- import { defineConfig } from '@flight-framework/core';
5
- import { {{BUNDLER}} } from '{{BUNDLER_PACKAGE}}';
6
-
7
- export default defineConfig({
8
- bundler: {{BUNDLER}}(),
9
- ui: {
10
- framework: '{{UI_FRAMEWORK}}',
11
- },
12
- rendering: {
13
- default: 'ssr',
14
- },
15
- });
1
+ // Flight Framework Configuration
2
+ // Using {{BUNDLER}} bundler with {{UI_FRAMEWORK}} UI
3
+
4
+ import { defineConfig } from '@flight-framework/core';
5
+ import { {{BUNDLER}} } from '{{BUNDLER_PACKAGE}}';
6
+
7
+ export default defineConfig({
8
+ bundler: {{BUNDLER}}(),
9
+ ui: {
10
+ framework: '{{UI_FRAMEWORK}}',
11
+ },
12
+ rendering: {
13
+ default: 'ssr',
14
+ },
15
+ });
@@ -1,58 +1,58 @@
1
- /* Flight - Minimal CSS */
2
-
3
- :root {
4
- --color-bg: #0a0a0f;
5
- --color-text: #f0f0f5;
6
- --color-muted: #8888a0;
7
- --color-primary: #6366f1;
8
- --font-sans: system-ui, -apple-system, sans-serif;
9
- --font-mono: 'Fira Code', monospace;
10
- }
11
-
12
- *, *::before, *::after {
13
- box-sizing: border-box;
14
- margin: 0;
15
- padding: 0;
16
- }
17
-
18
- body {
19
- font-family: var(--font-sans);
20
- background: var(--color-bg);
21
- color: var(--color-text);
22
- line-height: 1.6;
23
- min-height: 100vh;
24
- display: flex;
25
- align-items: center;
26
- justify-content: center;
27
- }
28
-
29
- main {
30
- text-align: center;
31
- padding: 2rem;
32
- }
33
-
34
- h1 {
35
- font-size: 2.5rem;
36
- margin-bottom: 1rem;
37
- }
38
-
39
- p {
40
- color: var(--color-muted);
41
- margin-bottom: 0.5rem;
42
- }
43
-
44
- code {
45
- font-family: var(--font-mono);
46
- background: rgba(99, 102, 241, 0.1);
47
- padding: 0.2rem 0.5rem;
48
- border-radius: 4px;
49
- color: var(--color-primary);
50
- }
51
-
52
- @media (prefers-color-scheme: light) {
53
- :root {
54
- --color-bg: #fafafa;
55
- --color-text: #1a1a2e;
56
- --color-muted: #64648a;
57
- }
58
- }
1
+ /* Flight - Minimal CSS */
2
+
3
+ :root {
4
+ --color-bg: #0a0a0f;
5
+ --color-text: #f0f0f5;
6
+ --color-muted: #8888a0;
7
+ --color-primary: #6366f1;
8
+ --font-sans: system-ui, -apple-system, sans-serif;
9
+ --font-mono: 'Fira Code', monospace;
10
+ }
11
+
12
+ *, *::before, *::after {
13
+ box-sizing: border-box;
14
+ margin: 0;
15
+ padding: 0;
16
+ }
17
+
18
+ body {
19
+ font-family: var(--font-sans);
20
+ background: var(--color-bg);
21
+ color: var(--color-text);
22
+ line-height: 1.6;
23
+ min-height: 100vh;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ }
28
+
29
+ main {
30
+ text-align: center;
31
+ padding: 2rem;
32
+ }
33
+
34
+ h1 {
35
+ font-size: 2.5rem;
36
+ margin-bottom: 1rem;
37
+ }
38
+
39
+ p {
40
+ color: var(--color-muted);
41
+ margin-bottom: 0.5rem;
42
+ }
43
+
44
+ code {
45
+ font-family: var(--font-mono);
46
+ background: rgba(99, 102, 241, 0.1);
47
+ padding: 0.2rem 0.5rem;
48
+ border-radius: 4px;
49
+ color: var(--color-primary);
50
+ }
51
+
52
+ @media (prefers-color-scheme: light) {
53
+ :root {
54
+ --color-bg: #fafafa;
55
+ --color-text: #1a1a2e;
56
+ --color-muted: #64648a;
57
+ }
58
+ }
@@ -1,19 +1,19 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>{{PROJECT_NAME}}</title>
8
- <link rel="stylesheet" href="/src/styles/global.css" />
9
- <script src="https://unpkg.com/htmx.org@2.0.0"></script>
10
- </head>
11
-
12
- <body hx-boost="true">
13
- <main>
14
- <h1>Flight ✈️</h1>
15
- <p>Edit <code>index.html</code> to get started.</p>
16
- </main>
17
- </body>
18
-
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>{{PROJECT_NAME}}</title>
8
+ <link rel="stylesheet" href="/src/styles/global.css" />
9
+ <script src="https://unpkg.com/htmx.org@2.0.0"></script>
10
+ </head>
11
+
12
+ <body hx-boost="true">
13
+ <main>
14
+ <h1>Flight ✈️</h1>
15
+ <p>Edit <code>index.html</code> to get started.</p>
16
+ </main>
17
+ </body>
18
+
19
19
  </html>
@@ -1,18 +1,18 @@
1
- {
2
- "name": "{{PROJECT_NAME}}",
3
- "version": "0.0.1",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "flight dev",
8
- "build": "flight build",
9
- "preview": "flight preview"
10
- },
11
- "dependencies": {
12
- "@flight-framework/core": "^0.0.1",
13
- "{{BUNDLER_PACKAGE}}": "^0.0.1"
14
- },
15
- "devDependencies": {
16
- "vite": "^6.0.0"
17
- }
18
- }
1
+ {
2
+ "name": "{{PROJECT_NAME}}",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "flight dev",
8
+ "build": "flight build",
9
+ "preview": "flight preview"
10
+ },
11
+ "dependencies": {
12
+ "@flight-framework/core": "^0.0.1",
13
+ "{{BUNDLER_PACKAGE}}": "^0.0.1"
14
+ },
15
+ "devDependencies": {
16
+ "vite": "^6.0.0"
17
+ }
18
+ }
@@ -1,6 +1,6 @@
1
- import { defineConfig } from 'vite';
2
-
3
- export default defineConfig({
4
- server: { port: 5173 },
5
- build: { target: 'es2022' },
6
- });
1
+ import { defineConfig } from 'vite';
2
+
3
+ export default defineConfig({
4
+ server: { port: 5173 },
5
+ build: { target: 'es2022' },
6
+ });
@@ -1,15 +1,15 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>{{PROJECT_NAME}}</title>
8
- </head>
9
-
10
- <body>
11
- <div id="root"><!--ssr-outlet--></div>
12
- <script type="module" src="/src/entry-client.ts"></script>
13
- </body>
14
-
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>{{PROJECT_NAME}}</title>
8
+ </head>
9
+
10
+ <body>
11
+ <div id="root"><!--ssr-outlet--></div>
12
+ <script type="module" src="/src/entry-client.ts"></script>
13
+ </body>
14
+
15
15
  </html>