37 GB
4,042,753 files
Updated about 1 month ago
Name
Size
test
zuke.ts1.37 kB
xet
zuke.json20 Bytes
xet
package.json316 Bytes
xet
package-lock.json219 Bytes
xet
greet.mjs257 Bytes
xet
deno.lock468 Bytes
xet
build.mjs395 Bytes
xet
README.md1.3 kB
xet
README.md

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.json gains no dependency. Deno is the only prerequisite for the build; the app keeps its Node toolchain, and npm ci / npm test / npm run build are what actually execute — through NpmTasks.ci(), NpmTasks.test() and NpmTasks.run((s) => s.script("build")), which build the argv rather than a shell string.
  • The zuke npm script hands over to the zuke CLI, so npm-centric colleagues keep their habit: npm run zuke -- test runs one target, npm run zuke -- --list shows 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.
Total size
37 GB
Files
4,042,753
Last updated
Oct 24
Pre-warmed CDN
US EU US EU

Contributors