/
package.json.ejs
127 lines (127 loc) · 4.84 KB
/
package.json.ejs
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
{
"name": "<%= name %>",
"version": "0.1.0",
"private": true,
<% if (host.name === 'heroku') { -%>
"cacheDirectories": [".next/cache"],
<% } -%>
"scripts": {
"build": "ts-node ./scripts/buildProd",
"build:prisma": "prisma generate",
"build:next": "next build",
"build:nexus": "NODE_ENV=development ts-node -P tsconfig.cjs.json --transpile-only graphql/schema.ts",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"db:migrate": "yarn -s prisma migrate up --experimental && yarn build:prisma",
"db:rollback": "yarn prisma migrate down --experimental && yarn build:prisma",
"db:setup": "yarn db:migrate && yarn prisma generate",
"db:drop": "DOTENV_CONFIG_PATH=./prisma/.env ts-node -r dotenv/config ./scripts/dropDatabase",
"dev": "concurrently -n \"WATCHERS,NEXT\" -c \"black.bgYellow.dim,black.bgCyan.dim\" \"yarn watch:all\" \"next dev\"",
"dev:typecheck": "tsc --noEmit",
"g:cell": "hygen cell new --name",
"g:component": "hygen component new --name",
"g:graphql": "hygen graphql new --name",
"g:page": "hygen page new --name",
"g:migration": "yarn -s prisma migrate save --experimental",
"g:test:component": "hygen test component --name",
"g:test:factory": "hygen test factory --name",
"g:test:request": "hygen test request --name",
"g:test:util": "hygen test util --name",
"lint": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp",
"start": "next start -p $PORT",
"test": "yarn withEnv:test jest --runInBand --watch",
"test:ci": "yarn withEnv:test jest --runInBand",
"test:e2e": "DOTENV_CONFIG_PATH=.env.test ts-node -r dotenv/config $(yarn bin)/start-server-and-test 'yarn test:server' http://localhost:3001 'yarn cypress:run'",
"test:e2e:local": "CYPRESS_LOCAL=true CYPRESS_BASE_URL=http://localhost:3000 cypress open",
"test:server": "next start --port 3001",
"withEnv:test": "DOTENV_CONFIG_PATH=.env.test ts-node -r dotenv/config ./scripts/yarnWithEnv",
"watch:all": "concurrently -n \"NEXUS,GQLCODEGEN,TYPESCRIPT\" -c \"black.bgGreen.dim,black.bgBlue.dim,white.bgMagenta.dim\" \"yarn watch:nexus\" \"yarn watch:codegen\" \"yarn watch:ts\"",
"watch:codegen": "graphql-codegen --config codegen.yml --watch",
"watch:nexus": "ts-node-dev -P tsconfig.cjs.json --transpile-only --respawn --watch graphql/schema.ts,prisma/schema.prisma graphql/schema.ts",
"watch:ts": "yarn dev:typecheck --watch"
},
"dependencies": {
"@apollo/client": "^3.0.2",
"@chakra-ui/core": "^1.0.0-rc.5",
"@chakra-ui/theme": "^1.0.0-rc.5",
"@nexus/schema": "^0.16.0",
"@prisma/client": "2.8.1",
<% if (host.name === 'vercel') { -%>
"apollo-server-micro": "^2.18.1",
<% } -%>
<% if (host.name === 'heroku') { -%>
"apollo-server-express": "^2.18.1",
<% } -%>
"bcryptjs": "^2.4.3",
"cross-fetch": "^3.0.5",
"framer-motion": "^2.9.4",
"graphql": "^15.3.0",
"graphql-scalars": "^1.3.0",
"graphql-type-json": "^0.3.1",
"jsonwebtoken": "^8.5.1",
"next": "9.5.3",
"nexus-plugin-prisma": "^0.21.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-hook-form": "^6.1.0",
"universal-cookie": "^4.0.3"
},
"devDependencies": {
"@apollo/react-testing": "^4.0.0",
"@graphql-codegen/cli": "1.17.6",
"@graphql-codegen/typescript": "1.17.6",
"@graphql-codegen/typescript-operations": "^1.17.6",
"@graphql-codegen/typescript-react-apollo": "1.17.6",
"@graphql-codegen/typescript-resolvers": "1.17.4",
"@prisma/cli": "2.8.1",
"@testing-library/cypress": "^7.0.2",
"@testing-library/dom": "^7.21.7",
"@testing-library/jest-dom": "^5.11.2",
"@testing-library/react": "^10.4.7",
"@testing-library/user-event": "^12.0.17",
"@types/bcryptjs": "^2.4.2",
"@types/jest": "^26.0.6",
"@types/node": "^14.0.26",
"@types/react": "^16.9.43",
"@types/supertest": "^2.0.10",
"@vercel/node": "^1.7.3",
"chance": "^1.1.6",
"concurrently": "^5.2.0",
"cypress": "^6.1.0",
"eslint": "^7.5.0",
"eslint-plugin-cypress": "^2.11.1",
"eslint-plugin-echobind": "^0.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
"hygen": "^6.0.4",
"jest": "^26.1.0",
"jest-environment-node": "^26.1.0",
"lint-staged": "^10.2.11",
"msw": "^0.20.1",
"nanoid": "^3.1.10",
"pg": "^8.3.0",
"prettier": "^2.0.5",
"start-server-and-test": "^1.11.2",
"supertest": "^4.0.2",
"ts-jest": "^26.1.3",
"ts-node-dev": "^1.0.0",
"typescript": "^3.9.7"
},
"bison": {
"version": "<%= bisonVersion %>",
"branches": {
"staging": "<%= repo.stagingBranch %>",
"production": "<%= repo.productionBranch %>"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": "yarn lint",
"*.{graphql}": "prettier --write"
}
}