Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change peerDependencies versions #15

Merged
merged 25 commits into from
Mar 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5e15ced
change deps
A-gambit Sep 14, 2017
f66cddb
Add build matrix for diff dep versions, install deps before build
blacktaxi Sep 26, 2017
3d442e9
Use newer deps for development
blacktaxi Sep 26, 2017
4609b48
Adjust peer dep lower bound to start from previous version values
blacktaxi Sep 26, 2017
1f69662
Merge branch 'master' into update-peer-dependencies
A-gambit Sep 29, 2017
ea46655
Merge branch 'master' into update-peer-dependencies
A-gambit Oct 8, 2017
67144d2
react 16.0.2, @types/react-dom@16.0.3, @types/react@16.0.33
oleksiilevzhynskyi Jan 3, 2018
b096df6
rxjs@5.5.6
oleksiilevzhynskyi Jan 3, 2018
0824732
Merge branch 'master' into update-peer-dependencies
blacktaxi Jan 3, 2018
5d0c2de
Use RxJS 5.5.6 in build matrix
blacktaxi Jan 3, 2018
6d056dd
Will this work?
blacktaxi Jan 3, 2018
a968635
How about this
blacktaxi Jan 3, 2018
371f12d
Support react from 16.2.0 version
oleksiilevzhynskyi Jan 5, 2018
18e35bd
Test project with different configurations of rxjs
oleksiilevzhynskyi Jan 5, 2018
0691717
renderToStaticMarkup no longer add ending ; to inline styles
oleksiilevzhynskyi Jan 5, 2018
0b5e1dd
Experiment with travis build jobs
oleksiilevzhynskyi Jan 5, 2018
83a1204
build jobs use only the top configuration from matrix expansion, so u…
oleksiilevzhynskyi Jan 5, 2018
f12e806
Fail webpack job with non-zero code when errors during building
oleksiilevzhynskyi Jan 5, 2018
acf2384
Update deps in examples and manual tests
oleksiilevzhynskyi Jan 6, 2018
4d86cbf
Add proper deps for examples and test projects
oleksiilevzhynskyi Jan 11, 2018
d6f5391
Fix before_install scripts
oleksiilevzhynskyi Jan 11, 2018
bce36a0
Merge branch 'master' into update-peer-dependencies
blacktaxi Feb 13, 2018
c199afc
Merge branch 'master' into update-peer-dependencies
blacktaxi Feb 22, 2018
f0eae11
Install focal from npm for examples
blacktaxi Mar 13, 2018
5160076
Remove RxJS 5.4.2 from build matrix
blacktaxi Mar 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,25 @@ cache:
- examples/todomvc/node_modules
- test/manual/node_modules

env:
global:
- V_REACT=16.2.0 V_REACT_TYPES=16.0.33 V_REACT_DOM_TYPES=16.0.3
matrix:
- V_RXJS=5.5.6
- V_RXJS=5.*

before_install:
- yarn add react@$V_REACT react-dom@$V_REACT @types/react@$V_REACT_TYPES @types/react-dom@$V_REACT_DOM_TYPES rxjs@$V_RXJS
- cd ./examples/all && yarn add react@$V_REACT react-dom@$V_REACT @types/react@$V_REACT_TYPES @types/react-dom@$V_REACT_DOM_TYPES rxjs@$V_RXJS && cd ../..
- cd ./examples/todomvc && yarn add react@$V_REACT react-dom@$V_REACT @types/react@$V_REACT_TYPES @types/react-dom@$V_REACT_DOM_TYPES rxjs@$V_RXJS && cd ../..
- cd ./test/manual && yarn add react@$V_REACT react-dom@$V_REACT @types/react@$V_REACT_TYPES @types/react-dom@$V_REACT_DOM_TYPES rxjs@$V_RXJS && cd ../..

jobs:
include:
- script: npm run test:unit
- script: npm run test:examples
- script: npm run test:todomvc
- script: npm run test:manual
- stage: github release
script: npm run build && npm pack
deploy:
env: V_RXJS=5.5.6
provider: releases
api_key:
secure: k+Pvk4XKUjjVjc7jJ8OVW4fjOc8dFacupYjEZ3qV8JAFPSCpLcJi0ijGHZx44r/EaaVaVMBamGCtUQR1eotq8xturxfQZz6Jug+Eu6zOUh1KqVNzqGyv4y7UfLT5HHq7bthFBmdJ7gIN0hm0Fvi0/xm7FZWoPeucnhu31WQ16dSFUw5HBMLgjDk7IaKyVslCrERwccBshxYRuwy3+Qs3kvmwu0QHGxnZmlgNdacKdgXcrdw6QfJOmAQsoidbyhIaCfxmh/ZQESCDU5WIOBjoZnEh3qZlGxvgUPUVp7bYZ68Q3g0/Xs2y5khyIKwtlCDum5E7GGUUwXtuX1WltfhWhKLtaeFN68OANI9GZTaLYWiBYsF32szkvsjB4NL8t5rsPFJ0D4zzY9WGzaBPVtE3JmwrSpPm+M2A2gbgmEzh7CT+UFIWtmNcKtQkuLVBTNnpgMBhW2XRQmVlpvMfykQuQbISsypeUqqNyIQ5br87zWIILfdGkcminSM4qtESvO/Ltd3/JxfZIv2Xdc3oq0GpB+Pl62EWGn8hnAJ0FcWX/XDTTpDLWgld26VchfQp3+T5k4ZxMyl8lSuR0okPzj+GpLkoW2hc8fqtEVcTIwU+53C/wKcPWvBbf5WTHryDLXYptjAXhOorSIybfzeVkGSbaejH7ROQBKm7n53kjy1OGv0=
Expand Down
14 changes: 7 additions & 7 deletions examples/all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"npm": ">=3.0.0"
},
"scripts": {
"preinstall": "cd ../.. && (yarn || npm i) && npm run build",
"build:webpack": "NODE_ENV=production webpack --config webpack/webpack.prod.js",
"build": "npm run clean && npm run build:static && npm run build:webpack",
"build:static": "cp -r ./static ./build",
Expand All @@ -20,18 +19,18 @@
"author": "Grammarly, Inc.",
"license": "Apache-2.0",
"devDependencies": {
"@grammarly/focal": "file:../../",
"@grammarly/focal": "0.6.436",
"@grammarly/tslint-config": "^0.3.1",
"@types/react": "15.0.38",
"@types/react-dom": "15.5.1",
"@types/react": "16.0.33",
"@types/react-dom": "16.0.3",
"css-loader": "^0.26.1",
"express": "^4.14.0",
"react": "15.6.1",
"react-dom": "15.6.1",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-transform-catch-errors": "^1.0.2",
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.3.0",
"rxjs": "5.4.2",
"rxjs": "5.5.6",
"style-loader": "^0.13.1",
"styled-components": "1.4.4",
"todomvc-app-css": "^2.0.6",
Expand All @@ -41,6 +40,7 @@
"typescript": "2.4.1",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.6.1",
"webpack-fail-plugin": "2.0.0",
"webpack-hot-middleware": "^2.12.2"
}
}
4 changes: 3 additions & 1 deletion examples/all/webpack/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var webpack = require('webpack');
var path = require('path');
var failPlugin = require('webpack-fail-plugin');

var APP_DIR = path.join(__dirname, '..', 'src');

Expand Down Expand Up @@ -38,7 +39,8 @@ module.exports = {
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
new webpack.NoErrorsPlugin(),
failPlugin
],
resolve: {
root: [path.resolve('../src')],
Expand Down
4 changes: 3 additions & 1 deletion examples/all/webpack/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require('path');
var webpack = require('webpack');
var failPlugin = require('webpack-fail-plugin');

var APP_DIR = path.join(__dirname, '..', 'src');

Expand Down Expand Up @@ -41,7 +42,8 @@ module.exports = {
compressor: {
warnings: false
}
})
}),
failPlugin
],
resolve: {
root: [path.resolve('../src')],
Expand Down
14 changes: 7 additions & 7 deletions examples/todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"npm": ">=3.0.0"
},
"scripts": {
"preinstall": "cd ../.. && (yarn || npm i) && npm run build",
"build:webpack": "NODE_ENV=production webpack --config webpack/webpack.prod.js",
"build": "npm run clean && npm run build:static && npm run build:webpack",
"build:static": "cp -r ./static ./build",
Expand All @@ -20,24 +19,25 @@
"author": "Grammarly, Inc.",
"license": "Apache-2.0",
"devDependencies": {
"@grammarly/focal": "file:../../",
"@grammarly/focal": "0.6.436",
"@grammarly/tslint-config": "^0.3.1",
"@types/react": "15.0.38",
"@types/react-dom": "15.5.1",
"@types/react": "16.0.33",
"@types/react-dom": "16.0.3",
"express": "^4.14.0",
"react": "15.6.1",
"react-dom": "15.6.1",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-transform-catch-errors": "^1.0.2",
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.3.0",
"rxjs": "5.4.2",
"rxjs": "5.5.6",
"todomvc-app-css": "^2.0.6",
"ts-loader": "^2.3.0",
"tslint": "^4.1.1",
"tslint-loader": "^3.3.0",
"typescript": "2.4.1",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.6.1",
"webpack-fail-plugin": "2.0.0",
"webpack-hot-middleware": "^2.12.2"
}
}
4 changes: 3 additions & 1 deletion examples/todomvc/webpack/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var webpack = require('webpack');
var path = require('path');
var failPlugin = require('webpack-fail-plugin');

var APP_DIR = path.join(__dirname, '..', 'src');

Expand Down Expand Up @@ -31,7 +32,8 @@ module.exports = {
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
new webpack.NoErrorsPlugin(),
failPlugin
],
resolve: {
root: [path.resolve('../src')],
Expand Down
4 changes: 3 additions & 1 deletion examples/todomvc/webpack/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require('path');
var webpack = require('webpack');
var failPlugin = require('webpack-fail-plugin');

var APP_DIR = path.join(__dirname, '..', 'src');

Expand Down Expand Up @@ -34,7 +35,8 @@ module.exports = {
compressor: {
warnings: false
}
})
}),
failPlugin
],
resolve: {
root: [path.resolve('../src')],
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"clean": "rm -rf ./dist",
"build": "npm run clean && tsc && npm run lint",
"test": "npm run test:unit && npm run test:examples && npm run test:todomvc && npm run test:manual",
"test:manual": "cd test/manual && rm -rf node_modules/@grammarly/focal && npm i --ignore-scripts && npm run build",
"test:manual": "cd test/manual && npm i && npm run build",
"test:unit": "npm run build && tape ./dist/test/**/*.js | tap-spec",
"test:examples": "cd examples/all && rm -rf node_modules/@grammarly/focal && npm i --ignore-scripts && npm run build",
"test:todomvc": "cd examples/todomvc && rm -rf node_modules/@grammarly/focal && npm i --ignore-scripts && npm run build",
"test:examples": "cd examples/all && npm i && npm run build",
"test:todomvc": "cd examples/todomvc && npm i && npm run build",
"test:watch": "watch 'npm test' src test",
"lint": "tslint --type-check --project tsconfig.json -c tslint.json",
"preversion": "if ! [[ $(git rev-parse --abbrev-ref HEAD) == \"master\" ]]; then echo \"Not on the master branch.\" && exit 1; fi",
Expand Down Expand Up @@ -83,23 +83,23 @@
"devDependencies": {
"@grammarly/tslint-config": "0.5.1",
"@types/node": "^6.0.34",
"@types/react": "16.0.33",
"@types/react-dom": "16.0.3",
"@types/tape": "^4.2.27",
"react": "16.2.0",
"react-dom": "16.2.0",
"rxjs": "5.5.6",
"tap-spec": "^4.1.1",
"tape": "^4.5.1",
"tslint": "5.2.0",
"typescript": "2.4.1",
"watch": "^0.18.0",
"@types/react": "15.0.38",
"@types/react-dom": "15.5.1",
"react": "15.6.1",
"react-dom": "15.6.1",
"rxjs": "5.4.2"
"watch": "^0.18.0"
},
"peerDependencies": {
"@types/react": "15.0.38",
"@types/react-dom": "15.5.1",
"react": "15.6.1",
"react-dom": "15.6.1",
"rxjs": "5.4.2"
"@types/react": ">= 16.0.33 < 17.0.0-0",
"@types/react-dom": ">= 16.0.3 < 17.0.0-0",
"react": ">= 16.2.0 < 17.0.0-0",
"react-dom": ">= 16.2.0 < 17.0.0-0",
"rxjs": ">= 5.4.2 < 6.0.0-0"
}
}
14 changes: 7 additions & 7 deletions test/manual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"version": "0.0.0",
"main": "webpack/dev_server.js",
"scripts": {
"preinstall": "cd ../.. && (yarn || npm i) && npm run build",
"build:webpack": "NODE_ENV=production webpack --config webpack/webpack.prod.js",
"build": "npm run clean && npm run build:static && npm run build:webpack",
"build:static": "cp -r ./static ./build",
Expand All @@ -16,24 +15,25 @@
"author": "Grammarly, Inc.",
"license": "(c) 2016 Grammarly",
"devDependencies": {
"@grammarly/focal": "file:../../",
"@grammarly/focal": "0.6.436",
"@grammarly/tslint-config": "^0.3.1",
"@types/react": "15.0.38",
"@types/react-dom": "15.5.1",
"@types/react": "16.0.33",
"@types/react-dom": "16.0.3",
"express": "^4.14.0",
"react": "15.6.1",
"react-dom": "15.6.1",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-transform-catch-errors": "^1.0.2",
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.3.0",
"rxjs": "5.4.2",
"rxjs": "5.5.6",
"todomvc-app-css": "^2.0.6",
"ts-loader": "^2.3.0",
"tslint": "^4.1.1",
"tslint-loader": "^3.3.0",
"typescript": "2.4.1",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.6.1",
"webpack-fail-plugin": "2.0.0",
"webpack-hot-middleware": "^2.12.2"
}
}
4 changes: 3 additions & 1 deletion test/manual/webpack/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var webpack = require('webpack');
var path = require('path');
var failPlugin = require('webpack-fail-plugin');

var APP_DIR = path.join(__dirname, '..', 'src');

Expand Down Expand Up @@ -31,7 +32,8 @@ module.exports = {
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
new webpack.NoErrorsPlugin(),
failPlugin
],
resolve: {
root: [path.resolve('../src')],
Expand Down
6 changes: 3 additions & 3 deletions test/test_react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ test('react', t => {

testRender(t,
<F.span style={fromConst({ color: 'red' })}></F.span>,
'<span style="color:red;"></span>',
'<span style="color:red"></span>',
'Render F element with observable in style'
)

testRender(t,
<F.span style={fromConst({ color: 'red' })}>{fromConst('test')}</F.span>,
'<span style="color:red;">test</span>',
'<span style="color:red">test</span>',
'Render F element with 2 observables'
)

Expand Down Expand Up @@ -125,7 +125,7 @@ test('react', t => {
<F.div onClick={() => { /* no-op */ }} style={{ display: 'block', color: fromConst('red') }}>
<F.span>Hello</F.span>
</F.div>,
'<div style="display:block;color:red;"><span>Hello</span></div>',
'<div style="display:block;color:red"><span>Hello</span></div>',
'div with onClick'
)

Expand Down
Loading