|
8 | 8 | },
|
9 | 9 | "scripts": {
|
10 | 10 | "lint": "eslint ./packages --ext .js,.jsx,.ts,.tsx",
|
| 11 | + "typescript": "tsc --noEmit --composite false", |
| 12 | + "prettier": "prettier --check ./packages", |
| 13 | + "test": "lerna run test", |
11 | 14 | "build": "lerna run build",
|
12 |
| - "test": "jest --runInBand", |
13 | 15 | "clean-install": "rimraf node_modules && yarn",
|
14 |
| - "start:example": "yarn --cwd example start", |
15 |
| - "docs": "yarn docs:build && yarn docs:serve", |
| 16 | + "example": "yarn --cwd example", |
16 | 17 | "docs:build": "yarn --cwd website build",
|
| 18 | + "docs:build:api": "yarn --cwd website build:api", |
17 | 19 | "docs:serve": "yarn --cwd website start",
|
18 |
| - "docs:lint": "prettier --write 'website/docs/**/*.md'", |
19 |
| - "docs:test": "yarn --cwd website test" |
| 20 | + "docs:prettier": "prettier --write 'website/docs/**/*.md'", |
| 21 | + "docs:test": "yarn --cwd website test", |
| 22 | + "postinstall": "husky install", |
| 23 | + "lint-staged": "lint-staged" |
20 | 24 | },
|
21 | 25 | "devDependencies": {
|
| 26 | + "@testing-library/jest-dom": "^5.11.10", |
| 27 | + "@testing-library/react": "^11.2.6", |
| 28 | + "@testing-library/react-native": "^7.0.2", |
| 29 | + "@types/jest": "^27.4.0", |
| 30 | + "@types/react-native": "*", |
| 31 | + "babel-jest": "^27.4.6", |
| 32 | + "eslint": "^7.9.0", |
| 33 | + "husky": "^7.0.4", |
| 34 | + "jest": "^27.4.7", |
22 | 35 | "lerna": "^4.0.0",
|
23 |
| - "husky": "^7.0.4" |
| 36 | + "lint-staged": "^12.1.7", |
| 37 | + "react": "^17.0.2", |
| 38 | + "react-native": "^0.64.0", |
| 39 | + "react-test-renderer": "^16.13.1", |
| 40 | + "rimraf": "^3.0.2", |
| 41 | + "typescript": "^4.3.5" |
24 | 42 | },
|
25 |
| - "jest": { |
26 |
| - "preset": "react-native", |
27 |
| - "timers": "fake", |
28 |
| - "coverageDirectory": "./coverage/", |
29 |
| - "testPathIgnorePatterns": [ |
30 |
| - "./packages/base/src/SearchBar/__tests__/common.tsx", |
31 |
| - "<rootDir>/node_modules", |
32 |
| - "<rootDir>/website", |
33 |
| - "<rootDir>/dist" |
34 |
| - ], |
35 |
| - "coveragePathIgnorePatterns": [ |
36 |
| - "./packages/base/src/searchbar/__tests__/common.tsx" |
37 |
| - ], |
38 |
| - "collectCoverageFrom": [ |
39 |
| - "packages/base/src/**/*.tsx", |
40 |
| - "!packages/base/src/index.tsx", |
41 |
| - "!packages/base/src/helpers/*.tsx" |
42 |
| - ], |
43 |
| - "collectCoverage": true, |
44 |
| - "globals": { |
45 |
| - "__DEV__": true |
46 |
| - }, |
47 |
| - "setupFilesAfterEnv": [ |
48 |
| - "<rootDir>/packages/base/.ci/setupTests.ts" |
49 |
| - ], |
50 |
| - "testRegex": "/__tests__/.*\\.(ts|tsx|js)$", |
51 |
| - "transform": { |
52 |
| - ".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub" |
53 |
| - }, |
54 |
| - "moduleFileExtensions": [ |
55 |
| - "ts", |
56 |
| - "tsx", |
57 |
| - "js", |
58 |
| - "jsx", |
59 |
| - "json", |
60 |
| - "node" |
61 |
| - ] |
| 43 | + "author": "Nader Dabit & Monte Thakkar", |
| 44 | + "license": "MIT", |
| 45 | + "bugs": { |
| 46 | + "url": "https://github.com/react-native-elements/react-native-elements/issues" |
| 47 | + }, |
| 48 | + "homepage": "https://reactnativeelements.com/", |
| 49 | + "collective": { |
| 50 | + "type": "opencollective", |
| 51 | + "url": "https://opencollective.com/react-native-elements", |
| 52 | + "logo": "https://opencollective.com/react-native-elements/logo.txt" |
62 | 53 | },
|
63 | 54 | "lint-staged": {
|
64 | 55 | "packages/**/*.{ts,tsx}": [
|
65 | 56 | "eslint --fix",
|
66 |
| - "bash -c tsc --noEmit true", |
| 57 | + "prettier --write", |
| 58 | + "tsc --noEmit --composite false", |
67 | 59 | "jest --bail --findRelatedTests"
|
68 | 60 | ],
|
69 | 61 | "packages/**/*.{js,jsx}": [
|
70 | 62 | "eslint --fix",
|
| 63 | + "prettier --write", |
71 | 64 | "jest --bail --findRelatedTests"
|
72 | 65 | ],
|
73 | 66 | "**/*.md": [
|
|
77 | 70 | "repository": {
|
78 | 71 | "type": "git",
|
79 | 72 | "url": "git+https://github.com/react-native-elements/react-native-elements.git"
|
80 |
| - }, |
81 |
| - "husky": { |
82 |
| - "hooks": { |
83 |
| - "pre-commit": "lint-staged" |
84 |
| - } |
85 | 73 | }
|
86 | 74 | }
|
0 commit comments