Ember-cli-new-version
A convention-based version update notifier.
Usage
- Add this add-on as you would any other:
> ember install ember-cli-new-version- Add a version file to your app, eg: ./public/VERSION.txt
1.0.0- Include the component in your view:
viola!
Options
updateInterval- the amount of time, in milliseconds, to wait between version checks default: 60000 (one minute)versionFileName- the name of the file on the server to check default: /VERSION.txtupdateMessage- the message to show to users when update has been detected. There are two tokens allowed in this string:{{newVersion}}and{{oldVersion}}which will replaced with their respective values. eg. (and default). "This application has been updated from version {{oldVersion}} to {{newVersion}}. Please save any work, then refresh browser to see changes."showReload- true shows a reload button the user can click to refresh. false hides the button. default: true
Custom Notification
By default the notification is styled as a Bootstrap Alert. If you want custom layouts or to use a different framework, then you can define your own markup for the notification.
Contributing
-
git clonethis repository npm installbower install
Running
ember server- Visit your app at http://localhost:4200.
For more information on using ember-cli, visit http://www.ember-cli.com/.