react-with-observable
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "react-with-observable", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -23,3 +23,7 @@ "main": "build/index.js", | ||
"test:coveralls": "npm run test:coverage && cat coverage/lcov.info | coveralls ", | ||
"prepublish": "npm run build" | ||
"prepublish": "npm run build && npm run deploy:examples", | ||
"build:examples": "webpack --config examples/webpack.config.js", | ||
"start:examples": "webpack-dev-server --config examples/webpack.config.js", | ||
"deploy:examples": "npm run build:examples && gh-pages --dist examples", | ||
"prettier": "prettier --config .prettierrc --write '**/*.{ts,js,tsx,jsx}'" | ||
}, | ||
@@ -39,4 +43,8 @@ "keywords": [], | ||
"enzyme-adapter-react-16": "1.1.1", | ||
"gh-pages": "1.2.0", | ||
"husky": "0.14.3", | ||
"jest": "23.2.0", | ||
"npm-run-all": "4.1.3", | ||
"prettier": "1.13.7", | ||
"pretty-quick": "1.6.0", | ||
"react": "16.4.1", | ||
@@ -53,2 +61,3 @@ "react-dom": "16.4.1", | ||
"ts-jest": "23.0.0", | ||
"ts-loader": "4.4.2", | ||
"ts-node": "7.0.0", | ||
@@ -58,3 +67,6 @@ "tslint": "5.10.0", | ||
"typestrict": "0.0.9", | ||
"weak": "1.0.1" | ||
"weak": "1.0.1", | ||
"webpack": "4.14.0", | ||
"webpack-cli": "3.0.8", | ||
"webpack-dev-server": "3.1.4" | ||
}, | ||
@@ -65,3 +77,8 @@ "peerDependencies": { | ||
"create-subscription": ">=16.3.0 <17.0.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
} | ||
} |
@@ -13,2 +13,3 @@ # react-with-observable | ||
* ✅ Very extensible by composing Observable operators! | ||
* ✅ TypeScript definitions included! | ||
@@ -79,2 +80,4 @@ It handles subscribing and unsubscribing automatically and, hence, you don't have to worry about memory leaks or updating state when new values come! | ||
## Example | ||
You can find more interactive examples here: https://mmiszy.github.io/react-with-observable/ | ||
```javascript | ||
@@ -86,3 +89,3 @@ import * as React from 'react'; | ||
// myContacts$ is contains a reactive list of contacts | ||
// myContacts$ is an Observable of an array of contacts | ||
@@ -89,0 +92,0 @@ export class ContactsList extends React.Component { |
15620
15
131
35