ember-cli-heap
v4.0.0
Published
An Ember CLI Addon to add support for Heap Analytics
Downloads
53
Readme
ember-cli-heap
This ember-cli addon injects heap analytics into index.html. More info on heap at https://heapanalytics.com
Compatibility
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
Installation
ember install ember-cli-heap
Configuration
This plugin uses the ember-cli project's configuration as defined in config/environment.js
.
// environment.js
ENV.heap = {
projectId: 'xxxxxx'
}
Add your heap projectId to config/environment.js
and you're good to go.
You can disable injecting heap into different environments by setting the development param to true:
// environment.js
if (environment === 'test') {
ENV.heap = {
development: true
}
}
Disclaimer
This is completely unofficial and is not related to Heap Analytics in any way.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
This project is licensed under the MIT License.