-
Notifications
You must be signed in to change notification settings - Fork 323
/
package.json
75 lines (75 loc) · 2.92 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
{
"private": true,
"scripts": {
"lint": "markdownlint \"src/**/*.md\"",
"eleventy": "eleventy",
"html": "html-minifier-terser --config-file=.html-minifier.json --input-dir=dist --output-dir=dist --file-ext=html",
"css": "postcss src/_css/main.css --output dist/_css/main.css && postcss src/_css/feature-support.css --output dist/_css/feature-support.css",
"js": "shx mkdir -p dist/_js && terser src/_js/main.js -cm -o dist/_js/main.js",
"json": "json-minify src/.webmanifest > dist/.webmanifest",
"xml": "minify-xml --in-place dist/sitemap.xml && minify-xml --in-place dist/blog.atom && minify-xml --in-place dist/features.atom",
"sw": "terser src/sw.js -cm -o dist/sw.js",
"copy-img": "shx cp ./node_modules/@browser-logos/{chrome,firefox,node.js,safari}/*.svg src/_css/img/",
"copy-js": "shx cp ./node_modules/dark-mode-toggle/dist/dark-mode-toggle.min.mjs dist/_js/dark-mode-toggle.mjs",
"img-video-dimensions": "node add-image-and-video-dimensions.js",
"clean": "shx rm -rf -- dist",
"build": "npm run clean && npm run css && npm run js && npm run json && npm run copy-img && npm run copy-js && npm run eleventy && npm run sw && npm run xml && npm run html",
"watch": "npm run build && npx eleventy --watch",
"serve": "npm start",
"debug": "DEBUG=* npx eleventy",
"start": "superstatic --port=9001 .",
"deploy": "firebase deploy",
"ci": "npm run lint && npm run build"
},
"husky": {
"hooks": {
"post-merge": "post-npm-install",
"post-rebase": "post-npm-install",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.md": [
"markdownlint",
"markdown-link-check --config markdown-link-check.json"
]
},
"devDependencies": {
"@11ty/eleventy": "^1.0.2",
"@11ty/eleventy-plugin-rss": "^1.2.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^4.2.0",
"@browser-logos/chrome": "^2.0.0",
"@browser-logos/firefox": "^3.0.9",
"@browser-logos/node.js": "^1.0.1",
"@browser-logos/safari": "^2.1.0",
"autoprefixer": "^10.4.13",
"cssnano": "^5.1.14",
"dark-mode-toggle": "^0.14.3",
"firebase-tools": "^11.16.1",
"get-video-dimensions": "^1.0.0",
"glob": "^8.0.3",
"he": "^1.2.0",
"html-minifier-terser": "^7.1.0",
"husky": "^8.0.2",
"image-size": "^1.0.2",
"json-minify": "^1.0.0",
"lint-staged": "^13.0.4",
"luxon": "^3.1.0",
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.5",
"markdown-it-attrs": "^4.1.4",
"markdown-it-container": "^3.0.0",
"markdown-it-footnote": "^3.0.3",
"markdown-it-implicit-figures": "^0.10.0",
"markdown-it-multimd-table": "^4.2.0",
"markdown-link-check": "^3.10.3",
"markdownlint-cli": "^0.32.2",
"minify-xml": "^3.4.0",
"post-npm-install": "^2.0.0",
"postcss-cli": "^10.0.0",
"postcss-custom-properties": "^13.0.0",
"shx": "^0.3.4",
"superstatic": "^9.0.0",
"terser": "^5.16.0"
}
}