react-with-observable
Advanced tools
Comparing version 2.0.1 to 3.0.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('create-subscription'), require('react')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'create-subscription', 'react'], factory) : | ||
(factory((global['react-with-observable'] = {}),global.createSubscription,global.React)); | ||
}(this, (function (exports,createSubscription,React) { 'use strict'; | ||
(global = global || self, factory(global['react-with-observable'] = {}, global.createSubscription, global.React)); | ||
}(this, function (exports, createSubscription, React) { 'use strict'; | ||
@@ -79,2 +79,2 @@ /*! ***************************************************************************** | ||
}))); | ||
})); |
@@ -19,13 +19,16 @@ import { danger, warn } from 'danger'; | ||
const testFilesIncludeExclusion = modifiedSpecFiles.reduce(function(acc, value) { | ||
var content = fs.readFileSync(value).toString(); | ||
var invalid = content.includes('it.only') || content.includes('describe.only'); | ||
if (invalid) { | ||
acc.push(path.basename(value)); | ||
} | ||
return acc; | ||
}, []); | ||
const testFilesIncludeExclusion = modifiedSpecFiles.reduce( | ||
function(acc, value) { | ||
var content = fs.readFileSync(value).toString(); | ||
var invalid = content.includes('it.only') || content.includes('describe.only'); | ||
if (invalid) { | ||
acc.push(path.basename(value)); | ||
} | ||
return acc; | ||
}, | ||
[] as string[] | ||
); | ||
if (testFilesIncludeExclusion.length > 0) { | ||
fail('An `only` was left in tests (' + testFilesIncludeExclusion + ')'); | ||
fail('An `only` was left in tests (' + testFilesIncludeExclusion.join(', ') + ')'); | ||
} | ||
@@ -32,0 +35,0 @@ |
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
roots: ['<rootDir>/src'], | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
setupTestFrameworkScriptFile: '<rootDir>/test.config.ts', | ||
setupFilesAfterEnv: ['<rootDir>/test.config.ts'], | ||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/node_modules/**'], | ||
restoreMocks: true, | ||
testEnvironment: 'jsdom', | ||
}; |
{ | ||
"name": "react-with-observable", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Use Observables with React declaratively!", | ||
@@ -20,9 +20,10 @@ "main": "build/index.common.js", | ||
"build": "rimraf build && rollup -c", | ||
"test": "npm-run-all -p test:jest test:types", | ||
"test:cypress": "cypress run --record", | ||
"test": "npm-run-all -p test:coverage test:types", | ||
"test:ci": "npm-run-all test", | ||
"test:e2e": "npm-run-all build:examples -p --race serve:examples test:cypress", | ||
"test:jest": "jest --detectLeaks", | ||
"test:e2e:ci": "npm-run-all build:examples -p --race serve:examples test:cypress:ci", | ||
"test:types": "tslint -c ./tslint.json --project ./tsconfig.json", | ||
"test:cypress": "cypress run --record", | ||
"test:cypress:ci": "cypress run --record --parallel --ci-build-id=$BUILD_ID", | ||
"test:coverage": "jest --detectLeaks --coverage", | ||
"test:coveralls": "npm run test:coverage && cat coverage/lcov.info | coveralls ", | ||
"build:examples": "webpack --config examples/webpack.config.js --mode production", | ||
@@ -32,5 +33,4 @@ "serve:examples": "http-server ./examples -a localhost -p 8082 -c-1", | ||
"deploy:examples": "npm run build:examples && gh-pages --dist examples", | ||
"prettier": "prettier --config .prettierrc --write '**/*.{ts,js,tsx,jsx}'", | ||
"release": "np --no-yarn", | ||
"prepublish": "npm run build", | ||
"prepare": "npm run build", | ||
"postdeploy": "npm run deploy:examples" | ||
@@ -42,54 +42,53 @@ }, | ||
"devDependencies": { | ||
"@cypress/webpack-preprocessor": "2.0.1", | ||
"@types/create-subscription": "16.4.0", | ||
"@types/enzyme": "3.1.11", | ||
"@types/enzyme-adapter-react-16": "1.0.2", | ||
"@types/jest": "23.1.3", | ||
"@types/react-dom": "16.0.6", | ||
"coveralls": "3.0.2", | ||
"create-subscription": "16.4.1", | ||
"cypress": "3.0.2", | ||
"danger": "3.7.19", | ||
"enzyme": "3.3.0", | ||
"enzyme-adapter-react-16": "1.1.1", | ||
"gh-pages": "1.2.0", | ||
"@cypress/webpack-preprocessor": "4.1.0", | ||
"@types/chai": "4.2.2", | ||
"@types/create-subscription": "16.4.2", | ||
"@types/enzyme": "3.10.3", | ||
"@types/enzyme-adapter-react-16": "1.0.5", | ||
"@types/jest": "24.0.18", | ||
"@types/react-dom": "16.9.0", | ||
"codecov": "3.5.0", | ||
"create-subscription": "16.9.0", | ||
"cypress": "3.4.1", | ||
"danger": "9.2.0", | ||
"enzyme": "3.10.0", | ||
"enzyme-adapter-react-16": "1.14.0", | ||
"gh-pages": "2.1.1", | ||
"git-revision-webpack-plugin": "3.0.3", | ||
"http-server": "0.11.1", | ||
"husky": "1.0.0-rc.9", | ||
"jest": "23.2.0", | ||
"npm-run-all": "4.1.3", | ||
"prettier": "1.13.7", | ||
"pretty-quick": "1.6.0", | ||
"react": "16.4.1", | ||
"react-dom": "16.4.1", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.62.0", | ||
"rollup-plugin-commonjs": "9.1.3", | ||
"rollup-plugin-node-resolve": "3.3.0", | ||
"rollup-plugin-typescript2": "0.15.1", | ||
"rxjs": "6.2.1", | ||
"source-map-support": "0.5.6", | ||
"husky": "3.0.5", | ||
"jest": "24.9.0", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "1.18.2", | ||
"pretty-quick": "1.11.1", | ||
"react": "16.9.0", | ||
"react-dom": "16.9.0", | ||
"rimraf": "3.0.0", | ||
"rollup": "1.21.2", | ||
"rollup-plugin-commonjs": "10.1.0", | ||
"rollup-plugin-node-resolve": "5.2.0", | ||
"rollup-plugin-typescript2": "0.24.1", | ||
"rxjs": "6.5.3", | ||
"source-map-support": "0.5.13", | ||
"symbol-observable": "1.2.0", | ||
"ts-jest": "23.0.0", | ||
"ts-loader": "4.4.2", | ||
"ts-node": "7.0.0", | ||
"tslint": "5.10.0", | ||
"typescript": "2.9.2", | ||
"typestrict": "0.0.9", | ||
"ts-jest": "24.0.2", | ||
"ts-loader": "6.0.4", | ||
"ts-node": "8.3.0", | ||
"tslint": "5.19.0", | ||
"typescript": "3.6.2", | ||
"typestrict": "1.0.2", | ||
"weak": "1.0.1", | ||
"webpack": "4.14.0", | ||
"webpack-cli": "3.0.8", | ||
"webpack-dev-server": "3.1.4" | ||
"webpack": "4.39.3", | ||
"webpack-cli": "3.3.8", | ||
"webpack-dev-server": "3.8.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.3.0 <17.0.0", | ||
"react-dom": ">=16.3.0 <17.0.0", | ||
"create-subscription": ">=16.3.0 <17.0.0" | ||
"react": "^16.9.0", | ||
"create-subscription": "^16.9.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged", | ||
"pre-push": "npm test" | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
} | ||
} |
# react-with-observable | ||
[](https://travis-ci.org/mmiszy/react-with-observable) | ||
[](https://coveralls.io/github/mmiszy/react-with-observable?branch=master) | ||
[](https://app.buddy.works/mmiszy/react-with-observable/pipelines/pipeline/209733) | ||
[](https://codecov.io/gh/mmiszy/react-with-observable) | ||
[](https://dashboard.cypress.io/#/projects/dmnv1v/runs) | ||
@@ -9,2 +9,3 @@ [](https://www.npmjs.com/package/react-with-observable) | ||
`react-with-observable`: use Observables declaratively in ⚛️ React! | ||
@@ -11,0 +12,0 @@ |
@@ -15,2 +15,6 @@ import resolve from 'rollup-plugin-node-resolve'; | ||
format: 'umd', | ||
globals: { | ||
react: 'React', | ||
'create-subscription': 'createSubscription', | ||
}, | ||
}, | ||
@@ -17,0 +21,0 @@ { |
@@ -20,5 +20,3 @@ { | ||
"include": [ | ||
"src", | ||
"node_modules/cypress", | ||
"cypress/*/*.ts" | ||
"src" | ||
], | ||
@@ -25,0 +23,0 @@ "exclude": [ |
Sorry, the diff of this file is not supported yet
2
452
141
26711
41
22