ember-pausable-test
Advanced tools
Comparing version 0.1.0 to 0.2.0
13
index.js
@@ -5,3 +5,14 @@ /* eslint-env node */ | ||
module.exports = { | ||
name: 'ember-pausable-test' | ||
name: 'ember-pausable-test', | ||
included(app) { | ||
const appOptions = app.options || {}; | ||
const addonOptions = appOptions['ember-pausable-test'] || {}; | ||
if (addonOptions.strip && app.env !== 'test') { | ||
app.options.babel = app.options.babel || {}; | ||
app.options.babel.plugins = app.options.babel.plugins || []; | ||
app.options.babel.plugins.push(require('./strip-pausable-plugin')); | ||
} | ||
} | ||
}; |
{ | ||
"name": "ember-pausable-test", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "The default blueprint for ember-cli addons.", | ||
@@ -18,3 +18,3 @@ "keywords": [ | ||
"start": "ember server", | ||
"test": "ember try:each" | ||
"test": "ember try:each && mocha node-tests" | ||
}, | ||
@@ -25,2 +25,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"babel-plugin-tester": "^4.0.0", | ||
"broccoli-asset-rev": "^2.4.5", | ||
@@ -45,3 +46,4 @@ "ember-ajax": "^3.0.0", | ||
"ember-source": "~2.16.0", | ||
"loader.js": "^4.2.3" | ||
"loader.js": "^4.2.3", | ||
"mocha": "^4.0.1" | ||
}, | ||
@@ -48,0 +50,0 @@ "engines": { |
@@ -191,3 +191,14 @@ # ember-pausable-test | ||
### Configuration | ||
Experimental support for unwrappping/removing `pausable()` calls in non-test builds can be used by modifying your `ember-cli-build.js` file: | ||
```js | ||
const app = new EmberApp({ | ||
'ember-pausable-test': { | ||
strip: true | ||
} | ||
}); | ||
``` | ||
## Collaborating | ||
@@ -194,0 +205,0 @@ -------- |
Sorry, the diff of this file is not supported yet
235889
21
139
226
22