forked from VulcanJS/vulcan-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
179 lines (179 loc) · 8.31 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"name": "vulcan-next",
"version": "0.7.1",
"private": true,
"scripts": {
"analyze:bundle:storybook": "cross-env ANALYZE=true yarn run build:storybook",
"analyze:bundle": "cross-env ANALYZE=true npm run build",
"auto-changelog": "auto-changelog -u",
"build-storybook": "build-storybook",
"build:docker": "docker build -f ./.vn/docker/vn.production.dockerfile -t vulcan-next .",
"build:scripts": "./.vn/scripts/build-scripts.sh",
"build:static": "# Next Export is not compatible with i18n, this feature is now deactivated in Vulcan Next. See https://github.com/VulcanJS/vulcan-next/issues/98 #next build && next export",
"build:storybook": "rm -Rf storybook-static && build-storybook -s ./public # TODO: we shouldn't need to remove, but Storybook 6.1 has a small bug and can't remove existing build automatically",
"build:test:docker": "docker build -f ./.vn/docker/cypress.dockerfile -t vulcan-next-test .",
"build": "next build",
"chromatic": "dotenv -e .env.development.local chromatic --build-script-name build-storybook",
"clean": "rm -Rf ./dist ./storybook-static .yalc # clean various build folders",
"combine:reports": "nyc merge reports && mv coverage.json .nyc_output/out.json # intermediate script",
"copy:reports": "cp coverage-e2e/coverage-final.json reports/from-cypress.json && cp coverage-unit/coverage-final.json reports/from-jest.json # intermediate scripts",
"coverage:e2e": "cross-env COVERAGE=1 npm run build && start-server-and-test start:test http://localhost:3000 'COVERAGE=1 cypress run'",
"coverage:unit": "jest --coverage",
"coverage": "npm run coverage:unit && npm run coverage:e2e",
"cypress:open": "cross-env CYPRESS_coverage=false NODE_ENV=test cypress open",
"cypress:run": "cross-env CYPRESS_DEBUG=false CYPRESS_coverage=false NODE_ENV=test cypress run --headless",
"db:test:seed": "dotenv -e .env.test node .vn/scripts/db/seed.js",
"db:test:reset": "dotenv -e .env.test node .vn/scripts/db/reset.js # reset can only happen against the test database!",
"debug": "NODE_OPTIONS='--inspect' next",
"dev": "next",
"dev:test": "cross-env NODE_ENV=test next # Start app in test + dev mode",
"link:vulcan": "./.vn/scripts/link-vulcan.sh # for linking a local copy of Vulcan NPM monorepo (don't forget to publish in Vulcan NPM first)",
"lint": "yarn run next lint",
"mkdir:reports": "rm -Rf reports && mkdir reports || true # intermediate script",
"mongo": "yarn run start:mongo # shortcut for start:mongo",
"postbuild": "next-sitemap --config vulcan-next-sitemap.js",
"postcoverage": "npm run report:combined # combine jest and cypress coverage reports",
"postinstall": "",
"precombine:reports": "npm run copy:reports && rm -Rf .nyc_output && mkdir .nyc_output || true # intermediate script",
"precopy:reports": "npm run mkdir:reports # intermediate script",
"precoverage": "rm -rf .nyc_output || true # delete previous nyx instrumentation",
"prereport:combined": "npm run combine:reports # intermediate script",
"report:combined": "nyc report --reporter lcov --report-dir coverage | exit 0 # intermediate script",
"start:docker": "docker run -p 3000:3000 --env-file .env.development -it vns:latest",
"start:mongo": "docker run --rm -p 27017:27017 -v \"$(pwd)/.mongo:/data/db\" --label vulcan-mongodb mongo:4.0.4 # will start or create & start the image + store data locally in .mongo folder + remove the container when stopped",
"start:static": "# Next Export is not compatible with i18n, this feature is now deactivated in Vulcan Next. See https://github.com/VulcanJS/vulcan-next/issues/98 #serve ./out",
"start:storybook-static": "serve storybook-static",
"start:test": "cross-env NODE_ENV=test npm run start # Start app in test mode",
"start": "next start",
"storybook": "start-storybook -p 6006 -s ./public",
"test:docker": "docker run --env-file .env.development -it vns-test:latest",
"test:e2e": "cross-env NODE_ENV=test npm run build && start-server-and-test start:test http://localhost:3000 'cypress:run'",
"test:unit": "jest",
"test:vn": "jest --config=./.vn/jest.config.vn.js --testPathPattern=tests/vn # run tests for Vulcan Next itself, eg scripts (long) ",
"test": "npm run test:unit && npm run test:e2e",
"upgrade:vulcan": "yarn upgrade --latest --pattern '@vulcanjs/*'",
"typecheck-watch": "tsc --noEmit --p src/tsconfig.json -w",
"typecheck": "tsc --noEmit --p src/tsconfig.json # in case of error with @vulcanjs/* package, check that src/types (eg simpl-schema) are up-to-date with vulcan-npm",
"link:vulcan:update": "yalc update"
},
"dependencies": {
"@apollo/client": "^3.2.0",
"@emotion/cache": "^11.4.0",
"@emotion/react": "^11.4.1",
"@emotion/server": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@hapi/iron": "6.0.0",
"@mdx-js/loader": "^1.6.6",
"@mdx-js/react": "^1.6.13",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@next/mdx": "^10.0.2",
"@vulcanjs/crud": "^0.5.0",
"@vulcanjs/demo": "^0.5.0",
"@vulcanjs/graphql": "^0.5.0",
"@vulcanjs/mdx": "^0.5.0",
"@vulcanjs/meteor-legacy": "^0.5.0",
"@vulcanjs/mongo": "^0.5.0",
"@vulcanjs/react-hooks": "^0.5.0",
"@vulcanjs/react-ui": "^0.5.0",
"apollo-server": "^3",
"apollo-server-express": "^3",
"babel-jest": "26.0.1",
"babel-plugin-istanbul": "6.0.0",
"bcrypt": "^5.0.1",
"clsx": "^1.1.1",
"cors": "^2.8.5",
"cross-env": "7.0.2",
"debug": "4.1.1",
"express": "4.17.1",
"graphql": "15.4.0",
"graphql-tag": "2.10.3",
"gray-matter": "^4.0.2",
"i18next": "^19.4.5",
"i18next-browser-languagedetector": "^4.2.0",
"i18next-http-backend": "^1.0.15",
"lodash": "^4.17.19",
"mongoose": "6",
"nanoid": "^3.1.25",
"next": "12",
"next-connect": "^0.9.1",
"next-i18next": "^8.10.0",
"next-mdx-remote": "3",
"next-sitemap": "^1.4.17",
"nodemailer": "^6.6.3",
"passport": "^0.4.1",
"passport-local": "1.0.0",
"polished": "^3.6.5",
"postcss-nested": "^4.2.1",
"querystring": "^0.2.1",
"react": "^17.0.1",
"react-bootstrap-typeahead": "^6.0.0-alpha.4",
"react-cookie": "^4.1.1",
"react-dom": "^17.0.1",
"react-hook-form": "4.9.8",
"react-i18next": "^11.5.0",
"react-spring": "^8.0.27",
"styled-jsx-plugin-postcss": "^3.0.2",
"swr": "^0.4.0"
},
"devDependencies": {
"@babel/core": "^7.10.2",
"@storybook/testing-react": "^0.0.22",
"@types/mongoose": "^5.7.27",
"@types/node": "^13.7.6",
"@types/nodemailer": "^6.4.4",
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.5",
"@types/shelljs": "^0.8.8",
"@vercel/ncc": "^0.30.0",
"babel-loader": "^8.1.0",
"babel-plugin-import": "^1.13.3",
"chalk": "^4.1.2",
"eslint": "^7.32.0",
"graphql-voyager": "^1.0.0-rc.31",
"mongodb-memory-server": "^7.3.6",
"react-is": "^16.13.1",
"source-map-support": "^0.5.19",
"storybook-css-modules-preset": "^1.1.1",
"supertest": "^6.1.6",
"ts-loader": "^7.0.5",
"ts-node": "^8.10.2",
"typescript": "=4.3.5",
"yalc": "^1.0.0-pre.53"
},
"optionalDependencies": {
"@cypress/code-coverage": "^3.8.1",
"@cypress/webpack-preprocessor": "^5.4.1",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@next/bundle-analyzer": "^9.4.4",
"@next/plugin-storybook": "^11.1.0",
"@storybook/addon-a11y": "^6.3.7",
"@storybook/addon-actions": "^6.3.7",
"@storybook/addon-backgrounds": "^6.3.7",
"@storybook/addon-controls": "^6.3.7",
"@storybook/addon-docs": "^6.3.7",
"@storybook/addon-essentials": "^6.3.7",
"@storybook/addon-links": "^6.3.7",
"@storybook/addons": "^6.3.7",
"@storybook/react": "^6.3.7",
"@testing-library/cypress": "^6.0.0",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^10.2.0",
"@testing-library/react-hooks": "^3.3.0",
"@types/jest": "^25.2.3",
"auto-changelog": "^2.2.1",
"chromatic": "^5.9.2",
"cypress": "^9",
"dotenv-cli": "^4.0.0",
"eslint-config-next": "^11.1.0",
"eslint-plugin-cypress": "2.11.1",
"jest": "^26.0.1",
"jest-transformer-mdx": "^2.2.0",
"nyc": "^15.1.0",
"serve": "^11.3.2",
"shelljs": "^0.8.4",
"smtp-tester": "^1.2.0",
"start-server-and-test": "^1.11.0",
"storybook-addon-next-router": "^3.0.7"
}
}