-
Notifications
You must be signed in to change notification settings - Fork 293
Migrate to vite for webui #1399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
59bf5b6
migrate to vite
netomi c2ae8a1
rework vite migration
netomi 2377360
add named volume for node_modules
netomi bf73e40
chore: convert tabs to spaces
netomi c576352
rebase on latest master
netomi 3319b96
updates
netomi ca0b44c
clean up docker compose wrt webui
netomi bb02849
add changelog entry
netomi e1b5f29
fix docker compose
netomi a519d08
add babel/core as it is defined as a peer dependency, script cleanups
netomi dca3aed
compose update to ensure the server is built before starting
netomi ef8e055
bump package version
netomi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| !.yarn/releases | ||
| !.yarn/sdks | ||
| !.yarn/versions | ||
| /dist/ | ||
| /lib/ | ||
| /static/bundle.* | ||
| /static/*-report.html | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "extends": "./base.tsconfig.json", | ||
| "compilerOptions": { | ||
| "noEmit": true | ||
| }, | ||
| "include": [ | ||
| "../src/**/*" | ||
| ], | ||
| "exclude": [ | ||
| "../src/default/server.ts" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,24 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "es6", | ||
| "module": "es6", | ||
| "moduleResolution": "node", | ||
| "allowSyntheticDefaultImports": true, | ||
| "lib": [ | ||
| "es6", "es2020.string", "dom" | ||
| ], | ||
| "typeRoots": [ | ||
| "node_modules/@types", "typings" | ||
| ], | ||
| "sourceMap": true, | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "noImplicitAny": true, | ||
| "noImplicitThis": true, | ||
| "noImplicitReturns": true, | ||
| "noUnusedLocals": true, | ||
| "strictNullChecks": true, | ||
| "jsx": "react", | ||
| "baseUrl": "./src" | ||
| } | ||
| } | ||
| "compilerOptions": { | ||
| "target": "es6", | ||
| "module": "es6", | ||
| "moduleResolution": "bundler", | ||
| "allowSyntheticDefaultImports": true, | ||
| "lib": [ | ||
| "es6", "es2020.string", "dom" | ||
| ], | ||
| "typeRoots": [ | ||
| "node_modules/@types", "typings" | ||
| ], | ||
| "sourceMap": true, | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "noImplicitAny": true, | ||
| "noImplicitThis": true, | ||
| "noImplicitReturns": true, | ||
| "noUnusedLocals": true, | ||
| "strictNullChecks": true, | ||
| "jsx": "react-jsx", | ||
| "baseUrl": "./src" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "extends": "./base.tsconfig.json", | ||
| "compilerOptions": { | ||
| "outDir": "../lib" | ||
| }, | ||
| "include": [ | ||
| "../src/**/*" | ||
| ], | ||
| "exclude": [ | ||
| "../src/default/server.ts" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ESNext", | ||
|
|
||
| "lib": [ | ||
| "ESNext" | ||
| ], | ||
|
|
||
| "module": "ESNext", | ||
| "skipLibCheck": true, | ||
|
|
||
| "moduleResolution": "bundler", | ||
| "allowImportingTsExtensions": true, | ||
| "moduleDetection": "force", | ||
| "noEmit": true, | ||
|
|
||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noFallthroughCasesInSwitch": true | ||
| }, | ||
|
|
||
| "include": [ | ||
| "../vite.config.ts", | ||
| "../configs/**.ts" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| { | ||
| "extends": "./base.tsconfig.json", | ||
| "compilerOptions": { | ||
| "module": "commonjs", | ||
| "lib": ["es6"], | ||
| "outDir": "../lib/default" | ||
| }, | ||
| "files": [ | ||
| "../src/default/server.ts" | ||
| ] | ||
| } | ||
| "extends": "./base.tsconfig.json", | ||
| "compilerOptions": { | ||
| "module": "commonjs", | ||
| "moduleResolution": "node", | ||
| "lib": ["es6"], | ||
| "skipLibCheck": true, | ||
| "outDir": "../lib/default" | ||
| }, | ||
| "include": [ | ||
| "../src/default/server.ts" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| { | ||
| "extends": "./base.tsconfig.json", | ||
| "compilerOptions": { | ||
| "module": "commonjs" | ||
| "module": "commonjs", | ||
| "moduleResolution": "node" | ||
| }, | ||
| "include": [ | ||
| "src", "test", "typings" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "es6", | ||
| "module": "es6", | ||
|
|
||
| "lib": [ | ||
| "es6", "es2020.string", "dom" | ||
| ], | ||
| "typeRoots": [ | ||
| "node_modules/@types", "typings" | ||
| ], | ||
|
|
||
| "sourceMap": true, | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "esModuleInterop": true, | ||
|
|
||
| "moduleResolution": "bundler", | ||
| "allowImportingTsExtensions": true, | ||
| "allowSyntheticDefaultImports": true, | ||
| "isolatedModules": true, | ||
| "moduleDetection": "force", | ||
| "noEmit": true, | ||
| "jsx": "react-jsx", | ||
|
|
||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": false, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "noImplicitAny": true, | ||
| "noImplicitThis": true, | ||
| "noImplicitReturns": true, | ||
| "strictNullChecks": true, | ||
|
|
||
| "baseUrl": "./src" | ||
| }, | ||
|
|
||
| "include": [ | ||
| "../src", "../typings" | ||
| ], | ||
|
|
||
| "exclude": [ | ||
| "**/*.spec.ts", "**/*.spec.tsx", "**/server.ts" | ||
| ] | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <link rel="preconnect" href="https://fonts.googleapis.com"> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div id="main"></div> | ||
| <script type='module' src='/src/default/default-app.tsx'></script> | ||
| </body> | ||
|
|
||
| </html> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.