-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
package.json
114 lines (114 loc) · 4.06 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
{
"name": "simple-website-with-blog",
"version": "0.1.0",
"description": "A simple website that includes a blog",
"private": true,
"main": "app.js",
"author": "David Anson (https://dlaa.me/)",
"license": "MIT",
"homepage": "https://github.com/DavidAnson/simple-website-with-blog",
"repository": {
"type": "git",
"url": "https://github.com/DavidAnson/simple-website-with-blog.git"
},
"bugs": "https://github.com/DavidAnson/simple-website-with-blog/issues",
"scripts": {
"ci": "npm run compile && git diff --exit-code && npm run lint",
"compile": "tsc --incremental",
"future": "cross-env SWWB_SHOW_FUTURE_POSTS=true node app.js",
"lint": "eslint *.js **/*.jsx eslint.config.mjs sites/test/static/tests.js test/*.mjs --max-warnings 0 && stylelint sites/**/*.css",
"photo": "cross-env SWWB_SITE_ROOT=./sites/sample-photo node app.js",
"playwright-install-bare": "npm run playwright-install-npm && playwright install",
"playwright-install-deps": "npm run playwright-install-npm && playwright install --with-deps",
"playwright-install-npm": "npm install --no-save [email protected] @playwright/[email protected]",
"playwright-test": "playwright test --config ./test/playwright.config.mjs",
"playwright-test-docker": "docker run --rm --volume $PWD:/home/workdir --workdir /home/workdir --ipc=host mcr.microsoft.com/playwright:v1.48.1 npm run playwright-test",
"playwright-update-snapshots": "playwright test --config ./test/playwright.config.mjs --update-snapshots",
"playwright-update-snapshots-docker": "docker run --rm --volume $PWD:/home/workdir --workdir /home/workdir --ipc=host mcr.microsoft.com/playwright:v1.48.1 npm run playwright-update-snapshots",
"server": "npm run compile && node app.js",
"start": "node app.js",
"test": "cross-env SWWB_SITE_ROOT=./sites/test SWWB_ACME_CHALLENGE=abc.123,abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG.HIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmn node app.js",
"text": "cross-env SWWB_SITE_ROOT=./sites/sample-text node app.js",
"watch": "nodemon --exec npm run server",
"webhint-install": "npm install --no-save hint @hint/configuration-web-recommended puppeteer start-server-and-test serve && puppeteer browsers install chrome",
"webhint-invoke": "xvfb-run hint http://localhost:3000/ && xvfb-run hint http://localhost:3000/blog",
"webhint-run-photo": "start-server-and-test 'npm run photo' 3000 'npm run webhint-invoke'",
"webhint-run-text": "start-server-and-test 'npm run text' 3000 'npm run webhint-invoke'",
"webhint-view": "serve /workspaces/simple-website-with-blog/hint-report"
},
"engines": {
"node": ">=16"
},
"dependencies": {
"ajv": "8.17.1",
"compression": "1.7.5",
"express": "4.21.2",
"feature-policy": "0.6.0",
"helmet": "8.0.0",
"highlight.js": "11.10.0",
"lunr": "2.3.9",
"markdown-it": "14.1.0",
"react": "19.0.0",
"react-dom": "19.0.0",
"rss": "1.2.2"
},
"devDependencies": {
"@eslint/js": "9.16.0",
"cross-env": "7.0.3",
"eslint": "9.16.0",
"eslint-plugin-unicorn": "56.0.1",
"nodemon": "3.1.7",
"stylelint": "16.11.0",
"stylelint-config-standard": "36.0.1",
"typescript": "5.7.2"
},
"hintConfig": {
"extends": [
"web-recommended"
],
"hints": {
"axe/color": [
"warning",
{
"color-contrast-enhanced": "off"
}
],
"compat-api/css": [
"warning",
{
"ignore": [
"text-size-adjust"
]
}
],
"http-compression": [
"warning",
{
"html": {
"brotli": false,
"zopfli": false
},
"resource": {
"brotli": false,
"zopfli": false
}
}
],
"no-html-only-headers": [
"warning",
{
"ignore": [
"Content-Security-Policy",
"Feature-Policy"
]
}
],
"strict-transport-security": [
"warning",
{
"minMaxAgeValue": 604800
}
]
}
}
}