JSPM

  • Created
  • Published
  • Downloads 250
  • Score
    100M100P100Q89080F
  • License MIT

Zero-config bundler for Kirby Panel plugins

Package Exports

  • kirbyup

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kirbyup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

kirbyup

Take a lool into the pluginkit folder for an example setup.

The fastest and leanest way to bundle your Kirby Panel plugins. No configuration necessary.

Install

Install it locally in your project folder:

npm i kirbyup --save-dev

You can also install it globally.

Usage

{
  "scripts": {
    "dev": "npx -y kirbyup src/index.js --watch",
    "build": "npx -y kirbyup src/index.js"
  }
}

Development

Rebuild the Panel plugin on any file changes:

kirbyup src/index.js --watch

You can also specify the directories to be watched. By default, if no path is specified, kirbyup watches the directory specified by the input file (src for the example above).

kirbyup src/index.js --watch src

You can specify more than a single directory:

kirbyup src/index.js --watch src --watch libs

Production

kirbyup src/index.js

The final panel plugin will be bundled, minified, and written into the current directory as ./index.js.

TODO

  • HMR with Vite in lib mode

Credits

  • Vite by Evan You and all of its contributors.
  • EGOIST for his inspirational work on tsup.

License

MIT