Skip to content

Commit 0f5885d

Browse files
authored
Added React and React Native as dev dependencies (#120)
* Added React and React Native as dev dependencies * Remove add react and react native in circleci * Added codecov in dev
1 parent dc3dbf2 commit 0f5885d

File tree

3 files changed

+2175
-133
lines changed

3 files changed

+2175
-133
lines changed

.circleci/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ jobs:
77
steps:
88
- checkout
99
- run: yarn install
10-
- run: yarn add react@16.9.0
11-
- run: yarn add react-native@0.60.5
12-
- run: yarn add codecov
1310
- run: yarn tslint
1411
- run: yarn type-check
1512
- run: yarn test

package.json

Lines changed: 94 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,99 @@
11
{
2-
"name": "react-native-nested-listview",
3-
"version": "0.7.2",
4-
"description": "Nested Listview for React native",
5-
"main": "./dist/index.js",
6-
"types": "./dist/index.d.ts",
7-
"scripts": {
8-
"test": "jest && codecov",
9-
"tslint": "tslint -p .",
10-
"type-check": "tsc --noEmit",
11-
"prepublishOnly": "tsc -p ./ --outDir dist/",
12-
"add-react": "yarn add react@16.9.0 && yarn add react-native@0.60.5",
13-
"remove-react": "yarn remove react && yarn remove react-native",
14-
"prettier-check": "prettier --check 'src/**/*.{ts, tsx}'",
15-
"prettier-format": "prettier --write 'src/**/*.{ts, tsx}'"
16-
},
17-
"repository": {
18-
"type": "git",
19-
"url": "git+https://github.com/fjmorant/react-native-nested-listview.git"
20-
},
21-
"dependencies": {
22-
"react-fast-compare": "2.0.4",
23-
"shortid": "2.2.14"
24-
},
25-
"peerDependencies": {
26-
"react": "16.9.0",
27-
"react-native": "~0.60.5"
28-
},
29-
"devDependencies": {
30-
"@babel/core": "7.5.5",
31-
"@babel/runtime": "7.5.5",
32-
"@types/jest": "24.0.17",
33-
"@types/react": "16.9.2",
34-
"@types/react-native": "0.60.8",
35-
"@types/react-test-renderer": "16.9.0",
36-
"@types/shortid": "0.0.29",
37-
"babel-jest": "24.9.0",
38-
"flow-bin": "0.105.2",
39-
"istanbul": "0.4.5",
40-
"istanbul-api": "2.1.6",
41-
"istanbul-reports": "2.2.6",
42-
"jest": "24.9.0",
43-
"metro-react-native-babel-preset": "0.56.0",
44-
"prettier": "1.18.2",
45-
"prettier-eslint": "9.0.0",
46-
"react-test-renderer": "16.9.0",
47-
"ts-jest": "24.0.2",
48-
"tslint": "5.19.0",
49-
"typescript": "3.5.3"
50-
},
51-
"keywords": [
52-
"react",
53-
"native",
54-
"list",
55-
"nested"
2+
"name": "react-native-nested-listview",
3+
"version": "0.7.2",
4+
"description": "Nested Listview for React native",
5+
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
7+
"scripts": {
8+
"test": "jest && codecov",
9+
"tslint": "tslint -p .",
10+
"type-check": "tsc --noEmit",
11+
"prepublishOnly": "tsc -p ./ --outDir dist/",
12+
"add-react": "yarn add react@16.9.0 && yarn add react-native@0.60.5",
13+
"remove-react": "yarn remove react && yarn remove react-native",
14+
"prettier-check": "prettier --check 'src/**/*.{ts, tsx}'",
15+
"prettier-format": "prettier --write 'src/**/*.{ts, tsx}'"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "git+https://github.com/fjmorant/react-native-nested-listview.git"
20+
},
21+
"dependencies": {
22+
"react-fast-compare": "2.0.4",
23+
"shortid": "2.2.14"
24+
},
25+
"peerDependencies": {
26+
"react": "*",
27+
"react-native": "*"
28+
},
29+
"devDependencies": {
30+
"@babel/core": "7.5.5",
31+
"@babel/runtime": "7.5.5",
32+
"@types/jest": "24.0.17",
33+
"@types/react": "16.9.2",
34+
"@types/react-native": "0.60.8",
35+
"@types/react-test-renderer": "16.9.0",
36+
"@types/shortid": "0.0.29",
37+
"babel-jest": "24.9.0",
38+
"codecov": "3.5.0",
39+
"flow-bin": "0.105.2",
40+
"istanbul": "0.4.5",
41+
"istanbul-api": "2.1.6",
42+
"istanbul-reports": "2.2.6",
43+
"jest": "24.9.0",
44+
"metro-react-native-babel-preset": "0.56.0",
45+
"prettier": "1.18.2",
46+
"prettier-eslint": "9.0.0",
47+
"react": "16.9.0",
48+
"react-native": "0.60.5",
49+
"react-test-renderer": "16.9.0",
50+
"ts-jest": "24.0.2",
51+
"tslint": "5.19.0",
52+
"typescript": "3.5.3"
53+
},
54+
"keywords": [
55+
"react",
56+
"native",
57+
"list",
58+
"nested"
59+
],
60+
"author": "Javier Morant",
61+
"license": "MIT",
62+
"bugs": {
63+
"url": "https://github.com/fjmorant/react-native-nested-listview/issues"
64+
},
65+
"homepage": "https://github.com/fjmorant/react-native-nested-listview#readme",
66+
"jest": {
67+
"preset": "react-native",
68+
"moduleFileExtensions": [
69+
"ts",
70+
"tsx",
71+
"js"
5672
],
57-
"author": "Javier Morant",
58-
"license": "MIT",
59-
"bugs": {
60-
"url": "https://github.com/fjmorant/react-native-nested-listview/issues"
73+
"transform": {
74+
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
75+
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
6176
},
62-
"homepage": "https://github.com/fjmorant/react-native-nested-listview#readme",
63-
"jest": {
64-
"preset": "react-native",
65-
"moduleFileExtensions": [
66-
"ts",
67-
"tsx",
68-
"js"
69-
],
70-
"transform": {
71-
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
72-
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
73-
},
74-
"transformIgnorePatterns": [
75-
"node_modules/(?!(jest-)|react-native|react-navigation|react-clone-referenced-element|mobx-react)"
76-
],
77-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
78-
"modulePathIgnorePatterns": [
79-
"<rootDir>/examples/"
80-
],
81-
"testPathIgnorePatterns": [
82-
"\\.snap$",
83-
"<rootDir>/node_modules/",
84-
"<rootDir>/examples/",
85-
"<rootDir>/lib/",
86-
"<rootDir>/dist/"
87-
],
88-
"coverageDirectory": "./coverage/",
89-
"collectCoverage": true,
90-
"globals": {
91-
"ts-jest": {
92-
"babelConfig": true
93-
}
94-
}
77+
"transformIgnorePatterns": [
78+
"node_modules/(?!(jest-)|react-native|react-navigation|react-clone-referenced-element|mobx-react)"
79+
],
80+
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
81+
"modulePathIgnorePatterns": [
82+
"<rootDir>/examples/"
83+
],
84+
"testPathIgnorePatterns": [
85+
"\\.snap$",
86+
"<rootDir>/node_modules/",
87+
"<rootDir>/examples/",
88+
"<rootDir>/lib/",
89+
"<rootDir>/dist/"
90+
],
91+
"coverageDirectory": "./coverage/",
92+
"collectCoverage": true,
93+
"globals": {
94+
"ts-jest": {
95+
"babelConfig": true
96+
}
9597
}
98+
}
9699
}

0 commit comments

Comments
 (0)