Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 25, 2023
1 parent 841d54d commit bc2733e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 41 deletions.
14 changes: 7 additions & 7 deletions Configuration/ESBuild.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*
*/
declare const _default: {
format: "esm";
minify: true;
outdir: string;
bundle: true;
platform: "browser";
target: string[];
plugins: import("esbuild").Plugin[];
format: "esm";
minify: true;
outdir: string;
bundle: true;
platform: "browser";
target: string[];
plugins: import("esbuild").Plugin[];
};
export default _default;
62 changes: 30 additions & 32 deletions Configuration/ESBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,34 @@
*
*/
export default {
format: "esm",
minify: true,
outdir: "Target",
bundle: true,
platform: "browser",
target: ["edge104", "esnext"],
plugins: [
{
name: "Target",
setup: ({ onStart, initialOptions: { outdir } }) =>
onStart(async () => {
try {
outdir
? await (
await import("fs/promises")
).rm(outdir, {
recursive: true,
})
: {};
} catch (_Error) {}
}),
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/styles/*.css",
to: "./styles/",
},
],
}),
],
format: "esm",
minify: true,
outdir: "Target",
bundle: true,
platform: "browser",
target: ["edge104", "esnext"],
plugins: [
{
name: "Target",
setup: ({ onStart, initialOptions: { outdir } }) => onStart(async () => {
try {
outdir
? await (await import("fs/promises")).rm(outdir, {
recursive: true,
})
: {};
}
catch (_Error) { }
}),
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/styles/*.css",
to: "./styles/",
},
],
}),
],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
},
"devDependencies": {
"@tauri-apps/cli": "1.5.6",
"@types/node": "20.8.8",
"@types/node": "20.8.9",
"esbuild-plugin-copy": "2.1.1",
"typescript-esbuild": "0.3.0",
"typescript-esbuild": "0.3.1",
"vite": "4.5.0",
"vite-plugin-solid": "2.7.2"
},
Expand Down

0 comments on commit bc2733e

Please sign in to comment.