-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 3.3 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "react-craft",
"description": "Component building blocks made with React hooks",
"version": "0.2.0",
"license": "MIT",
"author": "tommy-dev",
"repository": "tommy-dev/react-craft",
"keywords": ["react-craft", "react", "react-dom", "react hooks"],
"main": "dist/index.js",
"module": "dist/react-craft.esm.js",
"typings": "dist/index.d.ts",
"files": ["dist"],
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"scripts": {
"test": "jest --env=jsdom",
"test:watch": "npm run test -- --watch",
"start":
"cp-cli ./index.js ./dist/index.js && cross-env NODE_ENV=development rollup -w -c | tsc -w -p tsconfig.base.json",
"prebuild": "rimraf dist",
"build":
"cross-env NODE_ENV=production tsc -p tsconfig.base.json && rollup -c && rimraf compiled && cp-cli ./index.js ./dist/index.js",
"prepublish": "npm run build",
"format":
"prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md'",
"precommit": "lint-staged",
"size": "size-limit"
},
"dependencies": {
"prop-types": "^15.6.1",
"tslib": "^1.9.3"
},
"optionalDependencies": {},
"resolutions": {
"@types/react": "16.8.7",
"@types/react-dom": "16.8.2"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@types/jest": "^24.0.9",
"@types/react": "16.8.7",
"@types/react-dom": "16.8.2",
"awesome-typescript-loader": "^3.4.1",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-transform-rename-import": "^2.3.0",
"cp-cli": "^1.1.2",
"cross-env": "5.0.5",
"husky": "0.14.3",
"jest": "^24.3.1",
"lint-staged": "4.0.2",
"prettier": "1.11.1",
"raw-loader": "^0.5.1",
"react": "16.8.4",
"react-dom": "16.8.4",
"react-testing-library": "^6.0.0",
"react-hooks-testing-library": "^0.3.6",
"rimraf": "^2.6.2",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-size-snapshot": "^0.8.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^4.0.2",
"size-limit": "^0.17.0",
"ts-jest": "^22.4.6",
"tsc-watch": "^1.0.21",
"tslint": "^5.11.0",
"tslint-react": "^3.6.0",
"typescript": "^3.3.3333"
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
]
},
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"semi": true
},
"jest": {
"collectCoverageFrom": ["src/**/*.{ts,tsx}"],
"setupFilesAfterEnv": [
"react-testing-library/cleanup-after-each.js",
"<rootDir>/test/setupTests.ts"
],
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testMatch": ["<rootDir>/test/**/*.ts(x)"],
"transformIgnorePatterns": ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
"moduleFileExtensions": ["ts", "tsx", "js", "json"]
},
"size-limit": [
{
"path": "./dist/index.js",
"limit": "14 kB"
},
{
"path": "./dist/react-craft.esm.js",
"limit": "14 kB"
},
{
"path": "./dist/react-craft.umd.production.js",
"limit": "14 kB"
}
]
}