forked from MoOx/phenomic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
132 lines (131 loc) · 4.01 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
{
"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": "^7.2.3",
"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.6.1",
"eslint-config-i-am-meticulous": "^7.0.1",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-plugin-flowtype": "^2.35.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-react": "~7.3.0",
"eslint-plugin-react-native": "^3.1.0",
"flow-bin": "^0.55.0",
"git-exec-and-restage": "^1.0.1",
"globby": "^6.1.0",
"husky": "^0.13.3",
"jest": "^21.0.0",
"lerna": "^2.0.0",
"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 docs/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": "npm run -s clean && npm run -s transpile",
"prerelease": "npm run prepare",
"release": "lerna publish",
"format": "npm run -s format:most && npm run -s 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 -- npm link",
"lint:eslint":
"eslint --ignore-path .gitignore --fix packages e2e-tests examples docs",
"lint:flow": "flow check",
"lint": "npm-run-all --parallel lint:*",
"tests": "jest --runInBand --coverage packages",
"examples:build": "babel-node scripts/examples.js",
"examples:tests": "jest --bail examples",
"examples": "npm run -s examples:build && npm run -s examples:tests",
"docs:start": "cd docs && npm start",
"docs:test": "cd docs && npm test && jest docs",
"docs:deploy": "cd docs && npm run deploy",
"test": "npm run -s lint && npm run -s tests",
"test-without-lint": "npm run -s tests",
"posttest": "npm run -s examples && npm run -s docs: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
}
]
},
"settings": {
"import/resolver": {
"webpack": {
"config": {
"resolve": {
"extensions": [".web.js", ".js", ".json"]
}
}
}
}
}
},
"jest": {
"testURL": "test://url.tld/path",
"notify": true,
"coverageThreshold": {
"global": {
"statements": 75,
"branches": 65,
"functions": 75,
"lines": 75
}
},
"transformIgnorePatterns": ["node_modules"],
"testPathIgnorePatterns": ["/_output/"]
},
"workspaces": ["docs", "examples/*", "packages/*"],
"dependencies": {
"trash-cli": "^1.4.0"
}
}