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:
{ LUX this}
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/.