Building and Publishing

Building the Plugin

Use the Aurelia CLI to build your plugin:

au build-plugin

This command generates two module formats:

  • dist/native-modules/: ES2015 module format

  • dist/commonjs/: CommonJS module format

Build Output Structure

dist/
├── native-modules/
│   ├── index.js
│   ├── elements/
│   ├── attributes/
│   └── ...
└── commonjs/
    ├── index.js
    ├── elements/
    ├── attributes/
    └── ...

Consuming the Plugin

Direct Git Reference

Install directly from a Git repository:

Loading the Plugin in an Aurelia App

Publishing to npm

Prepare for Publication

  1. Remove "private": true from package.json

  2. Update version and publish

Automated Changelog and Publishing

Install changelog utilities:

Update package.json scripts:

Last updated

Was this helpful?