ember-cli-mgmco-common
v1.0.4
Published
MGMco's common things for Ember.js
Downloads
6
Keywords
Readme
Our Ember CLI Add-on for our common things
We have quite some overlap in our files of our ember apps. The API is the same but the Ember apps are not. This add-on helps us to DRY too much.
Installation
npm install ember-cli-mgmco-common --dev
Updating apps using this addon
- Update
package.json
to have the new npm version number - Run
npm install && git add package.json package-lock.json && git commit -m "Update common to version x.x.x to REASON"
(Update the reason)
Developing
- Clone and navigate to the
ember-cli-mgmco-common
folder - Run
npm link
to link the addon locally to npm - Run
npm start
- Navigate to the parent app (frontend, admin, ...) folder
- Change
ember-cli-mgmco-common
version inpackage.json
to*
- Run
npm link ember-cli-mgmco-common
to link the addon locally to npm - Now they both live reload on changes, pretty cool!
Deploying
- Make sure your PR is merged and pull the
master
-branch to your machine - Update the version by running
npm version patch -m "Upgrade to %s to REASON"
(Update the reason) - A git commit is automatically created, push it to GitHub
- Run
npm publish
(credentials are known by the developers) - Push to GitHub as well
git push origin --follow-tags
Good reads
- https://ember-cli.com/extending/#developing-addons-and-blueprints
- https://ember-cli.com/extending/#link-to-addon-while-developing