ember-lux

v0.2.0
The default blueprint for ember-cli addons.
ember-addon

ember-lux Build Status

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 (Runs ember 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/.

Metadata

  • MIT
  • ^4.5 || 6.* || >= 7.*
  • Unknown
  • released 8/24/2017

Downloads