@cfpreview/plinko

v0.3.4
Plinko is a linker for Pages Functions. It produces a bundled worker script containing all of the User Functions in a Pages project along with some glue code to handle routing between them.

build

esbuild cli.ts --format=esm --platform=node --bundle --external:esbuild --external:commander --outfile=bin/plinko.mjs

example:config

yarn build && ./bin/plinko.mjs -c examples/config-routing/pages.json examples/config-routing

example:filepath

yarn build && ./bin/plinko.mjs examples/filepath-routing

prepublishOnly

yarn build

test

jest
npm i @cfpreview/plinko

Metadata

  • ISC
  • >=14
  • Cina Saffary
  • released 11/22/2021

Downloads