forked from relay-tools/react-relay-network-modern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
90 lines (90 loc) · 3.17 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
{
"name": "react-relay-network-modern",
"version": "0.0.0-semantically-released",
"description": "Network Layer for React Relay and Express (Batch Queries, AuthToken, Logging, Retry)",
"files": [
"es",
"lib",
"mjs",
"node8"
],
"main": "lib/index.js",
"module": "mjs/index.mjs",
"repository": {
"type": "git",
"url": "https://github.com/relay-tools/react-relay-network-modern.git"
},
"keywords": [
"relay",
"react",
"network layer",
"batch",
"express",
"jwt",
"auth token"
],
"author": "Pavel Chertorogov @nodkz",
"license": "MIT",
"bugs": {
"url": "https://github.com/relay-tools/react-relay-network-modern/issues"
},
"homepage": "https://github.com/relay-tools/react-relay-network-modern#readme",
"dependencies": {},
"peerDependencies": {
"react-relay": ">=1.4.0"
},
"devDependencies": {
"@babel/cli": "^7.1.0",
"@babel/core": "^7.1.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-flow": "^7.0.0",
"@babel/register": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.6.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.6.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-module-utils": "^2.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.6.2",
"fetch-mock": "^6.4.2",
"flow-bin": "^0.81.0",
"form-data": "^2.3.2",
"jest": "^23.6.0",
"prettier": "^1.14.3",
"relay-runtime": "^1.6.2",
"rimraf": "^2.6.2",
"semantic-release": "^15.9.15"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"jest": {
"roots": [
"<rootDir>/src"
]
},
"scripts": {
"build": "npm run build-lib && npm run build-mjs && npm run build-es && npm run build-node8",
"build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow",
"build-mjs": "rimraf mjs && BABEL_ENV=mjs babel src --ignore __tests__,__mocks__ -d mjs && yarn build-mjs-rename && COPY_TO_FOLDER=mjs npm run build-flow",
"build-mjs-rename": "find ./mjs -name \"*.js\" -exec bash -c 'mv \"$1\" \"${1%.js}\".mjs' - '{}' \\;",
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es && COPY_TO_FOLDER=es npm run build-flow",
"build-node8": "rimraf node8 && BABEL_ENV=node8 babel src --ignore __tests__,__mocks__ -d node8 && COPY_TO_FOLDER=node8 npm run build-flow",
"build-flow": "echo `$1` && find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done",
"lint": "eslint --ext .js ./src",
"coverage": "jest --coverage --maxWorkers 2",
"watch": "jest --watch",
"flow": "flow",
"test": "npm run coverage && npm run lint && npm run flow",
"semantic-release": "semantic-release"
}
}