@real_ate/fake-embroider-addon-dev
v3.2.0
Published
Utilities for addon authors
Downloads
3
Readme
@embroider/addon-dev
Utilities for working on v2 addons.
For a guide on porting a V1 addon to V2, see https://github.com/embroider-build/embroider/blob/main/docs/porting-addons-to-v2.md
Rollup Utilities
@embroider/addon-dev/rollup
exports utilities for building addons with rollup. To use them:
Add the following
devDependencies
to your addon:- @embroider/addon-dev
- rollup
- @babel/core
- @rollup/plugin-babel
Copy the
./sample-rollup.config.js
in this repo to your ownrollup.config.js
.Copy the
./sample-babel.config.json
in this repo to your ownbabel.config.json
.
addon-dev command
The addon-dev
command helps with common tasks in v2 addons.
- linking up a test application that is embedded within your addon's repo
- synchronizing
devDependencies
from an embedded test application out into your addon's actual package.json
(You can avoid the need for both of these if you keep your addon and its test app as separate packages in a monorepo instead.)
Contributing
See the top-level CONTRIBUTING.md in this monorepo.
License
This project is licensed under the MIT License.