Buckets:
node-app
Zuke driving a Node project's build without touching its dependencies. The app
is greet.mjs with a node --test suite and an npm build
script; zuke.ts runs them through the typed @zuke/npm wrapper:
install ─▶ test ─▶ build ─▶ pack ─▶ default
zuke # the whole chain
zuke test # install → test
npm run zuke -- --list # the same build, for npm-centric colleagues
What to notice:
package.jsongains no dependency. Deno is the only prerequisite for the build; the app keeps its Node toolchain, andnpm ci/npm test/npm run buildare what actually execute — throughNpmTasks.ci(),NpmTasks.test()andNpmTasks.run((s) => s.script("build")), which build the argv rather than a shell string.- The
zukenpm script hands over to thezukeCLI, so npm-centric colleagues keep their habit:npm run zuke -- testruns one target,npm run zuke -- --listshows what the build can do. Nobody has to learn Deno commands. - A larger app would put the build in a
build/folder and drive the root with.cwd("..")— see Using Zuke in a Node/npm project for that layout and for the pnpm, Yarn and Bun equivalents.
Xet Storage Details
- Size:
- 1.3 kB
- Xet hash:
- d6c92599ca3be107e3a4cd861784198d043b1d4e0ba503319f0ea411a6083235
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.