mvp-ai's picture
download
raw
1.37 kB
// Copyright (c) 2026 the Zuke contributors
// SPDX-License-Identifier: MIT
/**
* A Node project driven by Zuke. Nothing is added to package.json's
* dependencies: Deno runs the build, and the typed `@zuke/npm` wrapper drives
* the app's own npm scripts and toolchain.
*
* zuke # install → test → build → pack
* zuke test # just install → test
* npm run zuke -- --list # the same, for npm-centric colleagues
*/
import { Build, run, target } from "jsr:@zuke/core@^1";
import { NpmTasks } from "jsr:@zuke/npm@^1";
class App extends Build {
install = target()
.description("Clean-install dependencies from the lockfile (npm ci)")
.executes(() => NpmTasks.ci());
test = target()
.description("Run the app's test script (npm test)")
.dependsOn(this.install)
.executes(() => NpmTasks.test());
build = target()
.description("Run the app's build script (npm run build)")
.dependsOn(this.test)
.executes(() => NpmTasks.run((s) => s.script("build")));
pack = target()
.description("Verify the publishable tarball (npm pack --dry-run)")
.dependsOn(this.build)
.executes(() => NpmTasks.pack((s) => s.dryRun()));
default = target()
.description("Default: install → test → build → pack")
.dependsOn(this.pack)
.executes(() => {});
}
await run(App);

Xet Storage Details

Size:
1.37 kB
·
Xet hash:
37b529e67cd02265181127952b45288ec2ec1efa30958548ffcb1d1a389bb090

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.