-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
49 lines (49 loc) · 2.36 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
{
"name": "@sample/app",
"version": "0.0.4",
"private": true,
"license": "MIT",
"engines": {
"node": ">= 10.16.x",
"yarn": ">= 1.16.0"
},
"scripts": {
"postinstall": "lerna exec -- yarn install && lerna run prepare",
"audit": "lerna run audit",
"start": "./node_modules/.bin/concurrently --names 'REACT, react-autogen, GRAPHQL, graphql-autogen' -c 'blue.bold,gray,cyan.bold,gray' 'NODE_ENV=development yarn workspace @sample/app dev' 'yarn workspace @sample/app generate:graphqlcodegen -w' 'NODE_ENV=development yarn workspace @sample/server dev' 'yarn workspace @sample/server generate:graphqlcodegen -w'",
"dev": "yarn start",
"build": "lerna run build",
"lint": "lerna run lint",
"test": "lerna run test",
"clean": "lerna run clean",
"------ playground ------": "----------------------",
"start:mock-prod": "yarn build && ./node_modules/.bin/concurrently --names 'REACT, GRAPHQL' -c 'blue.bold,cyan.bold' 'NODE_ENV=production cd packages/app && yarn start' 'NODE_ENV=production MOCK_API=on cd packages/server && yarn start' ",
"start:prod": "./node_modules/.bin/concurrently --names 'REACT, GRAPHQL' -c 'blue.bold,cyan.bold' 'yarn workspace @sample/app clean && NODE_ENV=production yarn workspace @sample/app build && NODE_ENV=production yarn workspace @sample/app start' 'NODE_ENV=production yarn workspace @sample/server start'",
"start:clinic": "./node_modules/.bin/concurrently --names 'REACT, GRAPHQL' -c 'blue.bold,cyan.bold' 'NODE_ENV=development yarn workspace @sample/app dev' 'NODE_ENV=production yarn workspace @sample/server start:clinic'",
"test:coverage": "lerna run test:coverage",
"outdated": "yarn outdated",
"upgrade": "yarn upgrade-interactive --latest",
"start:dev:server": "yarn workspace @sample/server start"
},
"workspaces": [
"packages/app",
"packages/server"
],
"resolutions": {
"graphql": "14.5.8"
},
"devDependencies": {
"@graphql-inspector/actions": "1.26.0",
"concurrently": "5.0.0",
"husky": "3.0.9",
"lerna": "^3.18.4",
"typescript": "3.7.2"
},
"graphql-inspector": {
"diff": true,
"schema": {
"ref": "master",
"path": "packages/server/src/_schema.graphql"
}
}
}