forked from MoOx/phenomic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
138 lines (138 loc) · 4.27 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
{
"private": true,
"name": "phenomic",
"repository": "https://github.com/phenomic/phenomic.git",
"homepage": "https://phenomic.io",
"license": "MIT",
"authors": ["Maxime Thirouin (MoOx)", "bloodyowl <[email protected]>"],
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.2.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.4.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"chalk": "^1.1.3",
"cross-env": "^2.0.0",
"cross-spawn": "^5.1.0",
"eslint": "^4.19.1",
"eslint-config-i-am-meticulous": "^8.0.0",
"eslint-import-resolver-webpack": "^0.9.0",
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-import": "^2.10.0",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-react-native": "^3.2.1",
"flow-bin": "^0.68.0",
"git-exec-and-restage": "^1.0.1",
"globby": "^6.1.0",
"husky": "^0.13.3",
"jest": "^22.4.3",
"lerna": "^2.5.1",
"lint-staged": "^3.4.0",
"npm-run-all": "^3.0.0",
"prettier": "^1.8.0",
"trash-cli": "^1.4.0"
},
"scripts": {
"#<git hooks>": "handled by husky",
"precommit": "lint-staged",
"#</git hooks>": "handled by husky",
"cleanup-node_modules":
"trash node_modules packages/*/node_modules examples/*/node_modules website/node_modules",
"clean": "trash packages/*/lib",
"transpile":
"lerna exec -- babel src --optional runtime --out-dir lib --ignore \"__tests__\"",
"posttranspile": "lerna run prepare",
"watch":
"lerna exec --parallel -- babel -w src --optional runtime --out-dir lib --ignore \"__tests__\"",
"prepare": "yarn clean && yarn transpile",
"prerelease": "yarn prepare",
"release": "lerna publish",
"postrelease": "yarn website:deploy",
"format": "yarn format:most && yarn format:re",
"format:most": "prettier --write \"**/*.{js,json,css,md}\"",
"format:re":
"find . -name \"*.re\" | grep -v \"node_modules\" | xargs refmt --in-place",
"links": "lerna exec -- yarn link",
"lint:eslint":
"eslint --ignore-path .gitignore --fix packages e2e-tests examples website",
"lint:flow": "flow check",
"lint": "npm-run-all --parallel lint:*",
"#tests":
" --maxWorkers=2 --no-cache: https://github.com/facebook/jest/issues/3552 on packages/plugin-transform-markdown/src/__tests__",
"tests": "jest --maxWorkers=2 --no-cache --coverage packages",
"examples:build": "babel-node scripts/examples.js",
"examples:tests": "jest --bail examples",
"examples": "yarn examples:build && yarn examples:tests",
"website:start": "cd website && yarn start",
"website:test": "cd website && yarn test && jest website",
"website:deploy": "cd website && yarn deploy",
"test": "yarn lint && yarn tests",
"test-without-lint": "yarn tests",
"posttest": "yarn examples && yarn website:test"
},
"lint-staged": {
"*.{js,json,css,md}": ["git-exec-and-restage prettier --write"],
"*.re": ["git-exec-and-restage refmt --in-place"]
},
"babel": {
"presets": [
"babel-preset-env",
"babel-preset-stage-1",
"babel-preset-react"
],
"plugins": ["babel-plugin-transform-runtime"]
},
"eslintConfig": {
"extends": [
"eslint-config-i-am-meticulous/react-flow",
"eslint-config-i-am-meticulous/react-native"
],
"env": {
"jest": true
},
"rules": {
"import/no-namespace": 0,
"flowtype/type-id-match": 0,
"import/max-dependencies": [
2,
{
"max": 20
}
],
"flowtype/require-valid-file-annotation": [
2,
"always",
{
"annotationStyle": "line"
}
],
"flowtype/no-dupe-keys": 0
},
"settings": {
"import/resolver": {
"webpack": {
"config": {
"resolve": {
"extensions": [".web.js", ".js", ".json"]
}
}
}
}
}
},
"jest": {
"testURL": "test://url.tld/path",
"notify": true,
"coverageThreshold": {
"global": {
"statements": 80,
"branches": 65,
"functions": 80,
"lines": 80
}
},
"testPathIgnorePatterns": ["/_output/", "/__fixtures__"]
},
"workspaces": ["website", "examples/*", "packages/*"]
}