ember-redux-saga-shim
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,6 +0,5 @@ | ||
/*jshint node:true*/ | ||
'use strict'; | ||
'use strict' | ||
module.exports = function(/* environment, appConfig */) { | ||
return { }; | ||
}; | ||
module.exports = function (/* environment, appConfig */) { | ||
return {} | ||
} |
46
index.js
@@ -1,20 +0,42 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
'use strict' | ||
var path = require('path'); | ||
var mergeTrees = require('broccoli-merge-trees'); | ||
const Funnel = require('broccoli-funnel') | ||
const mergeTrees = require('broccoli-merge-trees') | ||
const path = require('path') | ||
const replace = require('broccoli-replace') | ||
module.exports = { | ||
name: 'ember-redux-saga-shim', | ||
name: 'redux-saga', | ||
treeForAddon: function(tree) { | ||
var sagaPath = path.dirname(require.resolve('redux-saga/es')); | ||
var sagaTree = this.treeGenerator(sagaPath); | ||
treeForAddon (tree) { | ||
const reduxSagaPath = path.dirname(require.resolve('redux-saga/src/index.js')) | ||
let reduxSagaTree = this.treeGenerator(reduxSagaPath) | ||
var trees = mergeTrees([sagaTree, tree], { | ||
// Remove non-Javascript files | ||
reduxSagaTree = new Funnel(reduxSagaTree, { | ||
include: [ | ||
'**/*.js' | ||
] | ||
}) | ||
reduxSagaTree = replace(reduxSagaTree, { | ||
files: ['**/internal/*.js'], | ||
patterns: [ | ||
{ | ||
match: /process\.env\.NODE_ENV/g, | ||
replacement: "'production'" | ||
} | ||
] | ||
}) | ||
if (!tree) { | ||
return this._super.treeForAddon.call(this, reduxSagaTree) | ||
} | ||
const trees = mergeTrees([reduxSagaTree, tree], { | ||
overwrite: true | ||
}); | ||
}) | ||
return this._super.treeForAddon.call(this, trees); | ||
return this._super.treeForAddon.call(this, trees) | ||
} | ||
}; | ||
} |
The MIT License (MIT) | ||
Copyright (c) 2016 | ||
Copyright (c) 2016 Ciena Corporation. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
{ | ||
"name": "ember-redux-saga-shim", | ||
"version": "0.0.9", | ||
"description": "a shim to unlock redux-saga for ember-twiddle", | ||
"version": "0.0.10", | ||
"description": "redux-saga for Ember apps", | ||
"directories": { | ||
@@ -11,41 +11,55 @@ "doc": "doc", | ||
"build": "ember build", | ||
"lint": "npm run lint-js && npm run lint-md", | ||
"lint-js": "eslint *.js addon app blueprints config tests", | ||
"lint-md": "remark *.md", | ||
"start": "ember server", | ||
"test": "ember try:each" | ||
"test": "npm run lint && ember test" | ||
}, | ||
"repository": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ember-redux/ember-redux-saga-shim.git" | ||
}, | ||
"homepage": "https://github.com/ember-redux/ember-redux-saga-shim", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
"node": ">= 5.0.0" | ||
}, | ||
"author": "", | ||
"bugs": { | ||
"url": "https://github.com/ember-redux/ember-redux-saga-shim/issues" | ||
}, | ||
"author": "Matthew Dahl (https://github.com/sandersky)", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"broccoli-asset-rev": "^2.4.2", | ||
"ember-ajax": "^2.0.1", | ||
"ember-cli": "2.8.0", | ||
"ember-cli-app-version": "^1.0.0", | ||
"broccoli-asset-rev": "^2.4.6", | ||
"ember-cli": "^2.7.0", | ||
"ember-cli-app-version": "^2.0.0", | ||
"ember-cli-chai": "^0.3.1", | ||
"ember-cli-dependency-checker": "^1.2.0", | ||
"ember-cli-htmlbars": "^1.0.3", | ||
"ember-cli-htmlbars-inline-precompile": "^0.3.1", | ||
"ember-cli-htmlbars-inline-precompile": "^0.3.5", | ||
"ember-cli-inject-live-reload": "^1.4.0", | ||
"ember-cli-jshint": "^1.0.0", | ||
"ember-cli-qunit": "^2.1.0", | ||
"ember-cli-release": "^0.2.9", | ||
"ember-cli-sri": "^2.1.0", | ||
"ember-cli-mocha": "0.13.1", | ||
"ember-cli-test-loader": "^1.1.0", | ||
"ember-cli-uglify": "^1.2.0", | ||
"ember-data": "^2.8.0", | ||
"ember-disable-prototype-extensions": "^1.1.0", | ||
"ember-export-application-global": "^1.0.5", | ||
"ember-load-initializers": "^0.5.1", | ||
"ember-load-initializers": "0.6.3", | ||
"ember-resolver": "^2.0.3", | ||
"ember-welcome-page": "^1.0.1", | ||
"loader.js": "^4.0.1" | ||
"ember-symbol-observable": "0.1.2", | ||
"eslint": "^3.3.1", | ||
"eslint-config-frost-standard": "^5.0.1", | ||
"loader.js": "^4.0.11", | ||
"redux-saga": "0.13.0", | ||
"remark-cli": "^2.1.0", | ||
"remark-lint": "^5.2.0" | ||
}, | ||
"keywords": [ | ||
"ember-addon" | ||
"ember-addon", | ||
"redux", | ||
"redux-saga" | ||
], | ||
"dependencies": { | ||
"broccoli-merge-trees": "^1.1.1", | ||
"ember-cli-babel": "^5.1.6", | ||
"redux-saga": "0.12.0" | ||
"broccoli-funnel": "^1.0.4", | ||
"broccoli-merge-trees": "^1.1.4", | ||
"broccoli-replace": "^0.12.0", | ||
"ember-cli-babel": "^5.1.9", | ||
"ember-cli-htmlbars": "^1.1.0" | ||
}, | ||
@@ -55,2 +69,2 @@ "ember-addon": { | ||
} | ||
} | ||
} |
@@ -1,27 +0,26 @@ | ||
# Ember-redux-saga-shim | ||
# ember-redux-saga-shim | ||
This README outlines the details of collaborating on this Ember addon. | ||
[![Travis][ci-img]][ci-url] [![Coveralls][cov-img]][cov-url] [![NPM][npm-img]][npm-url] ![Ember][ember-img] | ||
## Installation | ||
* `git clone <repository-url>` this repository | ||
* `cd ember-redux-saga-shim` | ||
* `npm install` | ||
* `bower install` | ||
```bash | ||
ember install ember-redux-saga-shim | ||
``` | ||
## Running | ||
## Usage | ||
* `ember serve` | ||
* Visit your app at [http://localhost:4200](http://localhost:4200). | ||
```js | ||
import createSagaMiddleware from 'redux-saga' | ||
import {call, put, takeEvery, takeLatest} from 'redux-saga/effects' | ||
``` | ||
## Running Tests | ||
To learn more about `redux-saga` and how to use it visit the [redux-saga](https://github.com/yelouafi/redux-saga) Github page. | ||
* `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 [http://ember-cli.com/](http://ember-cli.com/). | ||
[ci-img]: https://img.shields.io/travis/ember-redux/ember-redux-saga-shim.svg "Travis CI Build Status" | ||
[ci-url]: https://travis-ci.org/ember-redux/ember-redux-saga-shim | ||
[cov-img]: https://img.shields.io/coveralls/ember-redux/ember-redux-saga-shim.svg "Coveralls Code Coverage" | ||
[cov-url]: https://coveralls.io/github/ember-redux/ember-redux-saga-shim | ||
[ember-img]: https://img.shields.io/badge/ember-1.12.2+-green.svg "Ember 1.12.2+" | ||
[npm-img]: https://img.shields.io/npm/v/ember-redux-saga-shim.svg "NPM Version" | ||
[npm-url]: https://www.npmjs.com/package/ember-redux-saga-shim |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
41015
15
986
1
1
0
5
27
2
+ Addedbroccoli-funnel@^1.0.4
+ Addedbroccoli-replace@^0.12.0
+ Addedember-cli-htmlbars@^1.1.0
+ Addedapplause@1.2.2(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedbroccoli-replace@0.12.0(transitive)
+ Addedcoffee-script@1.12.7(transitive)
+ Addedcson-parser@1.3.5(transitive)
+ Addedember-cli-htmlbars@1.3.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedstrip-bom@2.0.0(transitive)
- Removedredux-saga@0.12.0
- Removedredux-saga@0.12.0(transitive)
Updatedbroccoli-merge-trees@^1.1.4
Updatedember-cli-babel@^5.1.9