-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4316 from GordonSmith/V3TWEAKS_ECLWATCH_II
feat: Switch to vite for dev server and build process
- Loading branch information
Showing
222 changed files
with
5,172 additions
and
1,787 deletions.
There are no files selected for viewing
This file contains 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,15 +1,36 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "gen-types-watch", | ||
"type": "npm", | ||
"script": "gen-types-watch", | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
], | ||
"presentation": { | ||
"group": "group-build" | ||
} | ||
}, | ||
{ | ||
"label": "bundle-watch", | ||
"type": "npm", | ||
"script": "bundle-watch", | ||
"problemMatcher": [], | ||
"presentation": { | ||
"group": "group-build" | ||
} | ||
}, | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "npm run dev", | ||
"dependsOn": [ | ||
"gen-types-watch", | ||
"bundle-watch", | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [] | ||
} | ||
} | ||
] | ||
} |
This file contains 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 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 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 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 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,14 @@ | ||
import React, { StrictMode } from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
import { FluentProvider, webLightTheme } from "@fluentui/react-components"; | ||
import { App } from "./App.tsx"; | ||
|
||
export function main() { | ||
createRoot(document.getElementById("root")!).render( | ||
<StrictMode> | ||
<FluentProvider theme={webLightTheme}> | ||
<App /> | ||
</FluentProvider> | ||
</StrictMode> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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 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,33 @@ | ||
import { defineConfig } from "vite"; | ||
import { resolve } from "path"; | ||
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"; | ||
import { hpccBundleNames } from "@hpcc-js/esbuild-plugins"; | ||
import pkg from "./package.json" with { type: "json" }; | ||
|
||
const { alias, external, globals } = hpccBundleNames(pkg); | ||
|
||
export default defineConfig({ | ||
build: { | ||
lib: { | ||
entry: resolve(__dirname, "src/index.tsx"), | ||
name: pkg.name, | ||
fileName: "index", | ||
}, | ||
rollupOptions: { | ||
external, | ||
output: { | ||
globals, | ||
}, | ||
}, | ||
sourcemap: true | ||
}, | ||
resolve: { | ||
alias | ||
}, | ||
esbuild: { | ||
minifyIdentifiers: false | ||
}, | ||
plugins: [ | ||
cssInjectedByJsPlugin() | ||
], | ||
}); |
This file contains 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 |
---|---|---|
|
@@ -19,7 +19,5 @@ | |
"@hpcc-js/util": "^3.1.0", | ||
"d3-fetch": "^1" | ||
}, | ||
"devDependencies": { | ||
"vite": "5.4.11" | ||
} | ||
"devDependencies": {} | ||
} |
Oops, something went wrong.