Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.

Commit 8324a43

Browse files
authored
Merge pull request #3 from Luchanso/feat/tests
feat(*): move react in peerDependencies
2 parents 5c66673 + 320aef7 commit 8324a43

File tree

4 files changed

+150
-4817
lines changed

4 files changed

+150
-4817
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
node_modules
22
coverage
3+
build
4+
__integration-test__
5+
.log

Diff for: package.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
"description": "High Order Component for React SSR",
55
"main": "index.js",
66
"author": "Luchanskiy Oleg <[email protected]>",
7+
"repository": "https://github.com/Luchanso/react-has-mounted",
78
"license": "MIT",
89
"private": false,
910
"scripts": {
1011
"test": "jest",
12+
"build": "babel src -d build --ignore \"src/__test__/**/*\" && cp package.json build/package.json",
13+
"pub": "cd build && npm publish",
1114
"test-coverage": "jest --coverage --coverageReporters=text-lcov | coveralls"
1215
},
1316
"devDependencies": {
17+
"@babel/cli": "^7.2.3",
1418
"@babel/core": "^7.2.2",
1519
"@babel/plugin-proposal-class-properties": "^7.2.3",
1620
"@babel/preset-env": "^7.2.3",
@@ -20,13 +24,18 @@
2024
"coveralls": "^3.0.2",
2125
"enzyme": "^3.8.0",
2226
"enzyme-adapter-react-16": "^1.7.1",
23-
"jest": "^23.6.0"
27+
"jest": "^23.6.0",
28+
"react": "^16.7.0",
29+
"react-dom": "^16.7.0"
2430
},
2531
"targets": "> 0.25%, not dead",
2632
"jest": {
27-
"setupTestFrameworkScriptFile": "<rootDir>/__test__/setup.js"
33+
"setupTestFrameworkScriptFile": "<rootDir>/__test__/setup.js",
34+
"watchPathIgnorePatterns": [
35+
"<rootDir>/__test__/__integration-test__"
36+
]
2837
},
29-
"dependencies": {
38+
"peerDependencies": {
3039
"react": "^16.7.0",
3140
"react-dom": "^16.7.0"
3241
}

0 commit comments

Comments
 (0)