ember-lux
v0.3.0
Published
The default blueprint for ember-cli addons.
Downloads
3
Maintainers
Keywords
Readme
ember-lux
Easily integrate SpeedCurve LUX into your ember app.
Installation
$ npm install ember-lux
Setup
Be sure to call LUX.init()
in your router's
willTransition
hook. For example:
willTransition (...args) {
LUX.init()
this._super(...args)
}
Note: you can explore the rest of LUX's API here
Configuration
The only config that is required is your LUX ID. You can set your config in config/environment.js
Name | Type | Description | Default
:--- | :--- | :--- | :---
id
| int
| [REQUIRED] Your LUX ID found within Admin -> Teams | undefined
sampleRate
| int
| How many users should be sampled? | 1
enabled
| Boolean
| Set to false
to not inject the lux script into the page. | true
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.