Building and Publishing
Building the Plugin
Use the Aurelia CLI to build your plugin:
au build-pluginThis command generates two module formats:
dist/native-modules/: ES2015 module formatdist/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
Remove
"private": truefrompackage.jsonUpdate version and publish
Automated Changelog and Publishing
Install changelog utilities:
Update package.json scripts:
Last updated
Was this helpful?