|
1 | 1 | {
|
2 | 2 | "name": "upgrade-helper",
|
3 | 3 | "version": "0.1.0",
|
4 |
| - "homepage": "https://react-native-community.github.io/upgrade-helper", |
5 | 4 | "license": "MIT",
|
| 5 | + "homepage": "https://react-native-community.github.io/upgrade-helper", |
| 6 | + "scripts": { |
| 7 | + "build": "EXTEND_ESLINT=true react-app-rewired build", |
| 8 | + "docker-test-e2e": "yarn start-and-wait && react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/.*(\\.|).e2e.spec.js?$'", |
| 9 | + "lint": "eslint . --cache --report-unused-disable-directives", |
| 10 | + "prepare": "husky install", |
| 11 | + "start": "EXTEND_ESLINT=true react-app-rewired start", |
| 12 | + "start-and-wait": "yarn start & wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 30 http://localhost:3000/", |
| 13 | + "test": "react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/((?!e2e).)*.spec.js?$'", |
| 14 | + "test-e2e": "docker-compose run tests" |
| 15 | + }, |
6 | 16 | "dependencies": {
|
7 | 17 | "@ant-design/icons": "5.0.1",
|
8 | 18 | "@emotion/core": "10.0.28",
|
|
39 | 49 | "puppeteer": "10.0.0",
|
40 | 50 | "react-app-rewired": "^2.2.1"
|
41 | 51 | },
|
42 |
| - "scripts": { |
43 |
| - "prepare": "husky install", |
44 |
| - "start": "EXTEND_ESLINT=true react-app-rewired start", |
45 |
| - "start-and-wait": "yarn start & wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 30 http://localhost:3000/", |
46 |
| - "build": "EXTEND_ESLINT=true react-app-rewired build", |
47 |
| - "test": "react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/((?!e2e).)*.spec.js?$'", |
48 |
| - "test-e2e": "docker-compose run tests", |
49 |
| - "docker-test-e2e": "yarn start-and-wait && react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/.*(\\.|).e2e.spec.js?$'", |
50 |
| - "lint": "eslint . --cache --report-unused-disable-directives" |
51 |
| - }, |
52 |
| - "husky": { |
53 |
| - "hooks": { |
54 |
| - "pre-commit": "pretty-quick --staged --pattern \"src/**/*.*(js|jsx)\"", |
55 |
| - "pre-push": "yarn run lint" |
56 |
| - } |
57 |
| - }, |
58 | 52 | "browserslist": {
|
59 | 53 | "production": [
|
60 | 54 | ">0.2%",
|
|
67 | 61 | "last 1 safari version"
|
68 | 62 | ]
|
69 | 63 | },
|
70 |
| - "jest": { |
71 |
| - "testMatch": [ |
72 |
| - "**/__tests__/**/*.spec.js" |
73 |
| - ], |
74 |
| - "setupFilesAfterEnv": [ |
75 |
| - "<rootDir>/jest.setup.js" |
76 |
| - ] |
77 |
| - }, |
78 | 64 | "eslintConfig": {
|
79 | 65 | "extends": [
|
80 | 66 | "react-app"
|
|
88 | 74 | "import/no-anonymous-default-export": "off",
|
89 | 75 | "react-hooks/exhaustive-deps": "off"
|
90 | 76 | }
|
| 77 | + }, |
| 78 | + "husky": { |
| 79 | + "hooks": { |
| 80 | + "pre-commit": "pretty-quick --staged --pattern \"src/**/*.*(js|jsx)\"", |
| 81 | + "pre-push": "yarn run lint" |
| 82 | + } |
| 83 | + }, |
| 84 | + "jest": { |
| 85 | + "testMatch": [ |
| 86 | + "**/__tests__/**/*.spec.js" |
| 87 | + ], |
| 88 | + "setupFilesAfterEnv": [ |
| 89 | + "<rootDir>/jest.setup.js" |
| 90 | + ] |
91 | 91 | }
|
92 | 92 | }
|
0 commit comments