mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
aa37f643e7
* init checkpoint * ui second pass... * round 1 backend + saving settings + detecting changes... * checkpoint * fix openapi * saving + correct wmill.yaml diff * cli refactor * cli and tests refactor done * cli multi workspace support * cli support skip core types to align with ui * new test framework * sqlx * openapi spec * frontend * sync + settings changes * some fixes * some fixes * security: Remove hardcoded EE license key, use environment variable only - Remove hardcoded license key from containerized test backend - Environment variable EE_LICENSE_KEY now required for EE features - License key no longer stored in database during tests * sqlx * tests * fixing tests * fix tests * checkpoint * checkpoint * cli build * frontend - cli exchange * settings match * ee repo ref * npm check * openapi * tests * checkpoint * cli + tests * reset to preview on changes * merge issue ee * cleanup * hubscript * simplifications * ee repo ref * cli fixes * fix sync and add tests * extra test * git sync settings / key change aware * ee-repo ref * ee-repo ref * ee repo ref * ee ref * review 1 * ee ref * Update frontend/src/lib/components/PullGitRepoPopover.svelte Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Update frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * ee ref * remove extra includes from ui --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
86 lines
2.1 KiB
TypeScript
86 lines
2.1 KiB
TypeScript
// ex. scripts/build_npm.ts
|
|
import { build, emptyDir } from "jsr:@deno/dnt@0.41.3";
|
|
import { VERSION } from "./main.ts";
|
|
await emptyDir("./npm");
|
|
|
|
await build({
|
|
entryPoints: [
|
|
"main.ts",
|
|
{
|
|
kind: "bin",
|
|
name: "wmill", // command name
|
|
path: "./main.ts",
|
|
},
|
|
],
|
|
outDir: "./npm",
|
|
test: false, // Disable all tests in npm build since they use Deno-specific APIs
|
|
shims: {
|
|
// see JS docs for overview and more options
|
|
deno: true,
|
|
// shims to only use in the tests
|
|
customDev: [{
|
|
// this is what `timers: "dev"` does internally
|
|
package: {
|
|
name: "@deno/shim-timers",
|
|
version: "~0.1.0",
|
|
},
|
|
globalNames: ["setTimeout", "setInterval"],
|
|
}],
|
|
},
|
|
scriptModule: false,
|
|
filterDiagnostic(diagnostic) {
|
|
if (
|
|
diagnostic.file?.fileName.includes("node_modules/") ||
|
|
diagnostic.file?.fileName.includes("src/deps/") ||
|
|
diagnostic.file?.fileName.includes("src/deps.ts") ||
|
|
diagnostic.file?.fileName.includes("src/utils.ts")
|
|
) {
|
|
return false; // ignore all diagnostics in this file
|
|
}
|
|
// console.log(diagnostic.file?.fileName);
|
|
return true;
|
|
},
|
|
declaration: "separate",
|
|
package: {
|
|
// package.json properties
|
|
name: "windmill-cli",
|
|
version: VERSION,
|
|
description: "CLI for Windmill",
|
|
license: "Apache 2.0",
|
|
main: "esm/main.js",
|
|
repository: {
|
|
type: "git",
|
|
url: "git+https://github.com/windmill-labs/windmill.git",
|
|
},
|
|
bugs: {
|
|
url: "https://github.com/windmill-labs/windmill/issues",
|
|
},
|
|
},
|
|
|
|
postBuild() {
|
|
// steps to run after building and before running the tests
|
|
// add shebang to npm/esm/main.js
|
|
const dirs = [
|
|
"nu",
|
|
"ts",
|
|
"regex",
|
|
"python",
|
|
"go",
|
|
"php",
|
|
"rust",
|
|
"yaml",
|
|
"csharp",
|
|
"java",
|
|
];
|
|
|
|
for (const l of dirs) {
|
|
Deno.copyFileSync(
|
|
"wasm/" + l + "/windmill_parser_wasm_bg.wasm",
|
|
"npm/esm/wasm/" + l + "/windmill_parser_wasm_bg.wasm"
|
|
);
|
|
}
|
|
Deno.copyFileSync("../LICENSE", "npm/LICENSE");
|
|
Deno.copyFileSync("README.md", "npm/README.md");
|
|
},
|
|
});
|