-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
71 lines (71 loc) · 2.95 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
{
"private": true,
"scripts": {
"lint": "markdownlint \"src/**/*.md\"",
"eleventy": "eleventy",
"html": "html-minifier --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.mjs -cm --module -o dist/_js/main.mjs && terser src/_js/legacy.js -cm -o dist/_js/legacy.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": "workbox injectManifest workbox-config.js && terser dist/sw.js -cm -o dist/sw.js",
"copy-img": "shx cp ./node_modules/@browser-logos/{chrome,firefox}/*.svg src/_css/img/ && shx cp ./node_modules/@browser-logos/safari/safari_256x256.png src/_css/img/safari.png",
"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"
},
"devDependencies": {
"@11ty/eleventy": "^0.11.1",
"@11ty/eleventy-plugin-rss": "^1.0.7",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
"@browser-logos/chrome": "^1.0.17",
"@browser-logos/firefox": "^3.0.8",
"@browser-logos/safari": "^1.0.7",
"autoprefixer": "^9.8.2",
"cssnano": "^4.1.10",
"dark-mode-toggle": "^0.7.2",
"firebase-tools": "^8.5.0",
"get-video-dimensions": "^1.0.0",
"glob": "^7.1.6",
"he": "^1.2.0",
"html-minifier": "^4.0.0",
"husky": "^4.2.5",
"image-size": "^0.8.3",
"json-minify": "^1.0.0",
"lint-staged": "^10.2.11",
"luxon": "^1.24.1",
"markdown-it": "^11.0.0",
"markdown-it-anchor": "^5.3.0",
"markdown-it-attrs": "^3.0.3",
"markdown-it-container": "^3.0.0",
"markdown-it-footnote": "^3.0.2",
"markdown-it-implicit-figures": "^0.10.0",
"markdown-it-multimd-table": "^4.0.2",
"markdownlint-cli": "^0.23.1",
"minify-xml": "^1.0.3",
"post-npm-install": "^2.0.0",
"postcss-cli": "^7.1.1",
"postcss-custom-properties": "^9.1.1",
"shx": "^0.3.2",
"superstatic": "^7.0.0",
"terser": "^4.8.0",
"workbox-cli": "^4.3.1"
}
}