forked from jaredpalmer/formik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
138 lines (138 loc) · 3.68 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "formik",
"description": "Forms in React, without tears",
"version": "1.0.0-beta.2",
"license": "MIT",
"author": "Jared Palmer <[email protected]>",
"repository": "jaredpalmer/formik",
"keywords": [
"formik",
"react",
"react-dom",
"form",
"validation",
"forms",
"higher order component",
"hoc"
],
"main": "dist/index.js",
"module": "dist/formik.es6.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"peerDependencies": {
"react": ">=15"
},
"scripts": {
"test": "jest --env=jsdom",
"test:watch": "npm run test -- --watch",
"start": "cp ./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 ./index.js ./dist/index.js",
"prepublish": "npm run build",
"format": "prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md'",
"precommit": "lint-staged",
"addc": "all-contributors add",
"start-website": "cd website && yarn start",
"build-website": "cd website && yarn install && yarn build",
"gen-docs": "all-contributors generate && doctoc README.md",
"size": "size-limit"
},
"dependencies": {
"create-react-context": "^0.2.2",
"hoist-non-react-statics": "^2.5.0",
"lodash.clonedeep": "^4.5.0",
"lodash.topath": "4.5.2",
"prop-types": "^15.6.1",
"react-fast-compare": "^1.0.0",
"react-lifecycles-compat": "^3.0.4",
"warning": "^3.0.0"
},
"optionalDependencies": {},
"devDependencies": {
"@pisano/enzyme": "^3.3.0-pisano.public.1",
"@pisano/enzyme-adapter-react-16": "^1.1.1-pisano.public.1",
"@types/jest": "^22.2.3",
"@types/lodash.clonedeep": "^4.5.3",
"@types/lodash.topath": "4.5.3",
"@types/react": "16.0.28",
"@types/react-dom": "^16.0.3",
"@types/react-test-renderer": "15.5.2",
"@types/warning": "^3.0.0",
"all-contributors-cli": "^4.4.0",
"cross-env": "5.0.5",
"doctoc": "^1.3.0",
"husky": "0.14.3",
"jest": "^22.4.3",
"jest-cli": "^22.4.3",
"lint-staged": "4.0.2",
"prettier": "1.11.1",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"rimraf": "^2.6.2",
"rollup": "^0.59.0",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-filesize": "1.4.2",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-uglify": "^3.0.0",
"size-limit": "^0.17.0",
"ts-jest": "^22.4.6",
"tsc-watch": "^1.0.21",
"tslint": "5.5.0",
"tslint-react": "3.2.0",
"typescript": "2.8.3",
"yup": "0.21.3"
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
]
},
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"semi": true
},
"jest": {
"setupFiles": [
"raf/polyfill",
"<rootDir>/test/setupTest.ts"
],
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testMatch": [
"<rootDir>/test/**/?(*.)(spec|test).ts?(x)"
],
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
},
"size-limit": [
{
"path": "./dist/index.js",
"limit": "14 kB"
},
{
"path": "./dist/formik.es6.js",
"limit": "14 kB"
},
{
"path": "./dist/formik.umd.production.js",
"limit": "14 kB"
}
]
}