JSPM

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

Bundle your Kirby Panel plugins with ease

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 plainkit 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 but it's not recommended.

Usage

{
  "scripts": {
    "dev": "kirbyup src/index.js --watch src",
    "build": "kirbyup src/index.js"
  },
  "devDependencies": {
    "kirbyup": "^0.4.0"
  }
}

Development

kirbyup src/index.js --watch

You can also specify the directories to be watched. By default, if no path is specified, it watches the current directory.

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.

Credits

  • Vite by Evan You and all of its contributors.
  • EGOIST for his work on tsup, on which the CLI was built.

License

MIT