-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
36 lines (36 loc) · 1.83 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
{
"name": "smile-dashboard",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:alisman/smile-dashboard.git",
"author": "alisman <[email protected]>",
"private": true,
"license": "MIT",
"workspaces": [
"frontend",
"graphql-server",
"packages/*"
],
"pre-commit": [
"prettierFixCurrentChanges"
],
"scripts": {
"dev:frontend": "yarn --cwd frontend start",
"start:backend": "yarn --cwd graphql-server start",
"dev:backend": "yarn --cwd graphql-server dev",
"build:backend": "yarn --cwd graphql-server build",
"prettierFixCurrentChanges": "STAGED_AND_CHANGED_FILES=$(git diff HEAD --name-only --cached --diff-filter=d) && ([ -z \"$STAGED_AND_CHANGED_FILES\" ] && echo \"Nothing to prettify\" || (yarn run prettier ./frontend/src ./graphql-server --write $(echo $STAGED_AND_CHANGED_FILES) && git add -f $(echo $STAGED_AND_CHANGED_FILES)))",
"prettierCheckCircleCI": "git remote add smile-repo https://github.com/mskcc/smile-dashboard.git && git fetch smile-repo master && CHANGED_FILES=$(git diff smile-repo/master --name-only --diff-filter=d) && [ ! -z \"$CHANGED_FILES\" ] && yarn run prettier -c $(echo $CHANGED_FILES) && git remote remove smile-repo",
"prettierFixLocal": "CHANGED_FILES=$(git diff master --name-only --diff-filter=d) && ([ ! -z \"$CHANGED_FILES\" ] && yarn run prettier ./frontend/src ./graphql-server --write $(echo $CHANGED_FILES) || echo \"Nothing to prettify\")",
"prettierAll": "yarn run prettier ./frontend/src ./graphql-server --write $(git ls-files | grep '\\(.js\\|.ts\\|.scss\\|.css\\|.ht\\)')",
"codegen": "graphql-codegen --config codegen.yml"
},
"dependencies": {
"apollo-cache-inmemory": "^1.6.6",
"apollo-client": "^2.6.10",
"apollo-link-http": "^1.5.17"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.0"
}
}