-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
96 lines (96 loc) · 3.45 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
{
"name": "react-relay-network-modern-ssr",
"version": "0.0.0-development",
"versionS": "0.0.0-semantically-released",
"description": "Server side rendering middleware for react-relay-network-modern",
"files": [
"lib",
"node8"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/relay-tools/react-relay-network-modern-ssr.git"
},
"keywords": [
"relay",
"react",
"network layer",
"ssr",
"server side rendering"
],
"author": "Pavel Chertorogov @nodkz",
"license": "MIT",
"bugs": {
"url": "https://github.com/relay-tools/react-relay-network-modern-ssr/issues"
},
"homepage": "https://github.com/relay-tools/react-relay-network-modern-ssr#readme",
"dependencies": {},
"peerDependencies": {
"graphql": ">=0.11.0",
"react-relay": ">=1.4.0",
"react-relay-network-modern": ">=2.1.0"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@types/graphql": "14.2.3",
"babel-eslint": "^10.0.2",
"babel-jest": "^24.8.0",
"babel-plugin-replace-imports": "^1.0.2",
"babel-polyfill": "^6.26.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^6.0.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^5.1.0",
"eslint-module-utils": "^2.4.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-prettier": "^3.1.0",
"fetch-mock": "^7.3.3",
"flow-bin": "^0.101.1",
"form-data": "^2.4.0",
"graphql": "^14.3.1",
"jest": "^24.8.0",
"prettier": "^1.18.2",
"react-relay-network-modern": "^4.0.1",
"relay-runtime": "^5.0.0",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.16",
"tslint": "^6.0.0",
"tslint-config": "^0.0.1",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.1.0",
"typescript": "^3.8.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"jest": {
"roots": [
"<rootDir>/src"
]
},
"scripts": {
"build": "npm run build-lib && npm run build-node8",
"build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib && BABEL_ENV=lib_server babel src/server.js -d lib && COPY_TO_FOLDER=lib npm run build-flow && COPY_TO_FOLDER=lib npm run build-dts",
"build-node8": "rimraf node8 && BABEL_ENV=node8 babel src --ignore __tests__,__mocks__ -d node8 && COPY_TO_FOLDER=node8 npm run build-flow && COPY_TO_FOLDER=node8 npm run build-dts",
"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",
"build-dts": "echo `$1` && find ./src -name '*d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done",
"lint": "npm run eslint && npm run tslint && npm run tscheck",
"eslint": "eslint --ext .js ./src",
"tslint": "tslint -p . \"src/**/*.d.ts\"",
"tscheck": "tsc --noEmit",
"coverage": "jest --coverage --maxWorkers 2",
"watch": "jest --watch",
"flow": "flow",
"test": "npm run lint && npm run flow",
"semantic-release": "semantic-release"
}
}