ember-cli-ethnio
v0.9.1
Published
Easy wrapper for the Ethnio research recruiting tool in your EmberJS.
Maintainers
Readme
ember-cli-ethnio
Plugin for ember-cli that injects Ethnio advanced research management into your application.
Installation
To install simply run:
ember install ember-cli-ethnioUsage
Once configured, the Ethnio screener code will be injected into your index.html file.
Configuration
This plugin uses the Ember CLI project's configuration as defined in config/environment.js.
The Ethnio code will appear only if ENV.ethnioConfig.enabled is defined and is set to true. For instance, to enable the Ethnio in only the production environment:
if (environment === 'production') {
ENV.ethnioConfig = {
enabled: true,
screenerNumber: 12345
};
}Configuration Parameters
enabled(Default:false): Whether or not the feature is enabled.screenerNumber(Default:null): the number of the screener survey you wish to display.host(Default:'//ethn.io/'): The host location of the Ethnio scripts
Running Tests
git clone [email protected]:danmonroe/ember-cli-ethnio.gitnpm installember testember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
