/
package.json
287 lines (287 loc) · 11.2 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"name": "overnext",
"version": "1.4.0",
"description": "Very opinionated next.js typescript boilerplate",
"keywords": [
"next.js, cypress",
"i18n",
"typescript"
],
"homepage": "https://overnext.vercel.app",
"bugs": "https://github.com/einSelbst/overnext/issues",
"author": "einSelbst",
"private": true,
"repository": "https://github.com/einSelbst/overnext",
"scripts": {
"prepare": "is-ci || husky install",
"preinstall": "npx is-ci || npx only-allow pnpm",
"postinstall": "is-ci || typesync",
" ----------------------- Development ----------------------- ": "",
"?dev": "echo Start next app in dev mode",
"dev": "pnpm open && next",
"?debug": "echo Start node debugger",
"debug": "NODE_OPTIONS='--inspect' next",
"?build": "echo Build the app",
"build": "next build && pnpm build:sitemap",
"build:sitemap": "next-sitemap",
"?start": "echo Start server to serve the local app build",
"start": "next start -p 3001",
"?serve": "echo Build app and start server",
"serve": "pnpm build && (open http://localhost:3002) && next start -p 3002",
"serve:3003": "pnpm build && next start -p 3003",
"?servex": "echo Build & run app on public URL",
"servex": "pnpm serve & npx localtunnel --port 3000",
" ------------------------- Testing ------------------------- ": "",
"?test": "echo Run unit and integration tests once",
"test": "jest && pnpm e2e",
"?test:ci": "echo Run jest tests on CI, will re-add cypress later again",
"test:ci": "jest",
"?test:jest": "echo Run jest tests and update screenshots",
"test:jest": "jest -u",
"?test:cy": "echo Open cypress test runner (needs a running app server)",
"test:cy": "cypress open",
"?e2e:watch": "echo Start dev server, open cypress and watch",
"e2e:watch": "CY_WATCH=true start-test 'next dev -p 3004' 3004 'pnpm test:cy'",
"?e2e": "echo Build & serve app, then run cypress once",
"e2e": "CYPRESS_BASE_URL=http://localhost:3003 APP_ENV=test start-test 'pnpm serve:3003' 3003 'cypress run'",
"e2e2": "CYPRESS_BASE_URL=http://localhost:3003 APP_ENV=test CY_WATCH=false start-test 'pnpm serve:3003' 3003 'cypress run && pnpm checklinks:server'",
"e2e:cy": "CYPRESS_BASE_URL=http://localhost:3001 APP_ENV=test start-test 'pnpm start' 3001 'cypress run'",
"pree2e": "rm -rf .nyc_output coverage .next || true",
" ------------------------- Linting ------------------------- ": "",
"?format": "echo Format source code and fix issues",
"format": "prettier --check --write --ignore-unknown . --plugin=prettier-plugin-sh --plugin=prettier-plugin-toml",
"?lint": "echo Lint source code",
"lint": "eslint . --cache",
"?lint:fix": "echo Use deamon to lint source code and fix issues",
"lint:fix": "eslint_d . --cache --fix --ext .js,.jsx,.ts,.tsx",
"lint:profile": "TIMING=1 eslint .",
"?lint:html": "echo Run html-validate on generated static output files",
"lint:html": "html-validate '.next/**/*.html'",
"?lint:css": "echo Run stylelint on source code to lint CSS",
"lint:css": "stylelint --fix 'src/**/*.{css,scss,tsx}' --color",
"type-check": "tsc --pretty --noEmit",
"type-check:watch": "tsc -w --pretty --skipLibCheck --noEmit",
"?checklinks": "echo Test integrity of hyperlinks in the build files",
"checklinks": "hyperlink .next/**/*.html --canonicalroot https://overnext.vercel.app/ -pr --root .next/serverless/pages --skip index.html --skip legal --skip account-settings --skip fonts.gstatic --skip chunks --skip ico --skip png --skip svg --skip manifest --skip pages/fauna --skip pages/first --skip pages/dog --skip pages/page --skip _next --todo hybrid --todo ampshared.css --todo ampdoc.css | tap-spot",
"?checklinks:server": "echo Test integrity of hyperlinks on the local server",
"checklinks:server": "hyperlink http://localhost:3003/ --canonicalroot https://overnext.vercel.app/ -pr --skip fonts.gstatic --skip api/add-show --skip api/update-show --todo ampshared.css --todo ampdoc.css --todo hybrid | tap-spot",
"?validate": "echo Validate source code and output files",
"validate:raw": "pnpm validate:src & pnpm validate:out",
"validate": "pnpm validate:raw --aggregate-output",
"?validate:src": "echo Format, lint, type-check & unit test the app",
"validate:src:raw": "pnpm format & pnpm lint:fix & pnpm lint:css & pnpm type-check & jest && pnpm audit:fix",
"validate:src": "pnpm validate:src:raw --aggregate-output",
"?validate:out": "echo Build app, run integration tests, check links & validate generated html",
"validate:out:raw": "pnpm size & (pnpm e2e2 && pnpm lint:html)",
"validate:out": "pnpm validate:out:raw --aggregate-output",
" ------------------------- Helpers ------------------------- ": "",
"?build:analyze": "echo Build app and output bundle analyzer diagrams",
"build:analyze": "ANALYZE=true next build",
"?build:size": "echo build app and measure loading performance",
"build:size": "pnpm build && size-limit",
"?size": "echo Run size-limit and open statoscope report in browser",
"size": "size-limit --why",
"?audit:fix": "echo Check vulnerabilities in production package and try to fix them",
"audit:fix": "pnpm audit --production --fix",
"open": "open http://localhost:3000",
"?find:unused": "echo Find unused files",
"find:unused": "next-unused",
"?build:ssr": "echo used on CI for 'compressed size' action",
"build:ssr": "NODE_ENV=production BROWSERSLIST_ENV=ssr next build",
"gh-action:cleanup": "rm package-lock.json",
"browserslist": "pnpx browserslist@latest --update-db",
"?cz": "Make new commit",
"cz": "git-cz",
"?release": "Prepare a new release",
"release": "standard-version",
"?docs": "Generate typedoc docs",
"docs": "typedoc",
"?info": "echo Display info about the scripts",
"info": "npm-scripts-info",
"eslint-rules:unused": "eslint-find-rules -un .eslintrc.yml --ext .tsx",
"eslint-rules:current": "eslint-find-rules -cnp .eslintrc.yml",
"eslint-rules": "eslint-find-rules -dunp .eslintrc.yml --ext .tsx",
"?stylelint-check": "Check stylelint for rules conflicting prettier",
"stylelint-check": "stylelint-config-prettier-check",
"commitlint": "commitlint"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"@babel/core": "7.16.12",
"@prefresh/babel-plugin": "0.4.1",
"@sentry/nextjs": "6.17.1",
"@types/node": "16.11.21",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"autoprefixer": "10.4.2",
"core-js": "3.20.3",
"faunadb": "4.4.1",
"is-ci": "3.0.1",
"next": "12.0.8",
"next-compose-plugins": "2.2.1",
"next-plugin-preact": "3.0.6",
"next-pwa": "5.4.4",
"next-seo": "4.29.0",
"next-sitemap": "1.9.12",
"next-themes": "0.0.15",
"postcss": "8.4.5",
"preact": "10.6.4",
"preact-render-to-string": "5.1.19",
"react": "npm:@preact/compat@17.0.2",
"react-dom": "npm:@preact/compat@17.0.2",
"react-ssr-prepass": "npm:preact-ssr-prepass@1.2.0",
"sass": "1.49.0",
"tailwindcss": "3.0.16",
"tslib": "2.3.1",
"typed-query-selector": "2.6.1",
"typescript": "4.5.5",
"webpack": "5.67.0"
},
"devDependencies": {
"@commitlint/cli": "16.1.0",
"@commitlint/config-conventional": "16.0.0",
"@cypress/code-coverage": "3.9.12",
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@next/bundle-analyzer": "12.0.8",
"@next/eslint-plugin-next": "12.0.8",
"@size-limit/preset-app": "7.0.5",
"@size-limit/webpack": "7.0.5",
"@size-limit/webpack-why": "7.0.5",
"@stylelint/postcss-css-in-js": "0.37.2",
"@testing-library/jest-dom": "5.16.1",
"@testing-library/preact": "2.0.1",
"@types/babel__core": "7.1.18",
"@types/core-js": "2.5.5",
"@types/eslint": "8.4.1",
"@types/is-ci": "3.0.0",
"@types/jest": "27.4.0",
"@types/prettier": "2.4.3",
"@types/sass": "1.43.1",
"@types/scheduler": "^0.16.2",
"@types/source-map-support": "0.5.4",
"@types/standard-version": "7.0.1",
"@types/stylelint": "13.13.3",
"@types/testing-library__jest-dom": "5.14.2",
"@typescript-eslint/eslint-plugin": "5.10.1",
"@typescript-eslint/parser": "5.10.1",
"@typescript-eslint/typescript-estree": "5.10.1",
"commitizen": "4.2.4",
"cypress": "9.3.1",
"cypress-watch-and-reload": "1.7.3",
"dependency-version-badge": "1.11.0",
"eslint": "8.7.0",
"eslint-config-next": "12.0.8",
"eslint-config-prettier": "8.3.0",
"eslint-find-rules": "4.1.0",
"eslint-import-resolver-typescript": "2.5.0",
"eslint-plugin-array-func": "3.1.7",
"eslint-plugin-compat": "4.0.1",
"eslint-plugin-cypress": "2.12.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jest": "26.0.0",
"eslint-plugin-jest-dom": "4.0.1",
"eslint-plugin-jest-formatting": "3.1.0",
"eslint-plugin-json-schema-validator": "2.1.38",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.28.0",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-sonarjs": "0.11.0",
"eslint-plugin-sort-keys-fix": "1.1.2",
"eslint-plugin-toml": "0.3.0",
"eslint-plugin-tsdoc": "0.2.14",
"eslint-plugin-unicorn": "40.1.0",
"git-format-staged": "latest",
"html-validate": "6.2.0",
"husky": "7.0.4",
"hyperlink": "5.0.4",
"jest": "27.4.7",
"jest-watch-typeahead": "1.0.0",
"next-unused": "0.0.6",
"npm-scripts-info": "0.3.9",
"nyc": "15.1.0",
"postcss-syntax": "0.36.2",
"prettier": "2.5.1",
"prettier-plugin-sh": "0.8.1",
"prettier-plugin-toml": "latest",
"scheduler": "^0.20.2",
"size-limit": "7.0.5",
"source-map-support": "0.5.21",
"standard-version": "9.3.2",
"start-server-and-test": "1.14.0",
"stylelint": "14.3.0",
"stylelint-config-idiomatic-order": "8.1.0",
"stylelint-config-prettier": "9.0.3",
"stylelint-config-standard-scss": "3.0.0",
"tap-spot": "1.1.1",
"ts-node": "10.4.0",
"typedoc": "0.22.11",
"typescript-eslint-language-service": "5.0.0",
"typesync": "0.8.0"
},
"optionalDependencies": {
"@axe-core/react": "4.3.2",
"fsevents": "2.3.2",
"pnpm": "6.28.0"
},
"engines": {
"pnpm": ">=6"
},
"pnpm": {
"overrides": {
"ansi-regex": "5.0.1",
"browserslist": "latest",
"caniuse-lite": "latest",
"chokidar": "3",
"debug": "latest",
"jsonpointer@<5.0.0": ">=5.0.0",
"json-schema@<0.4.0": ">=0.4.0",
"nanoid": "3.1.31",
"node-fetch": "2.6.7",
"source-map-resolve": "latest",
"stylelint": "14.2.0"
}
},
"next-unused": {
"alias": {
"lib/*": [
"lib/*"
],
"assets/*": [
"assets/*"
],
"config": [
"config/"
],
"components/*": [
"components/*"
],
"layouts/*": [
"layouts/*"
],
"styles/*": [
"styles/*"
],
"utils/*": [
"utils/*"
]
},
"debug": true,
"include": [
"src"
],
"exclude": [],
"entrypoints": [
"src"
]
},
"volta": {
"node": "16.13.2",
"npm": "8.3.2"
}
}