forked from v8/v8.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
71 lines (71 loc) · 2.96 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": "npx eleventy --serve",
"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.8.3",
"@11ty/eleventy-plugin-rss": "^1.0.6",
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.3",
"@browser-logos/chrome": "^1.0.12",
"@browser-logos/firefox": "^3.0.3",
"@browser-logos/safari": "^1.0.4",
"autoprefixer": "^9.6.1",
"cssnano": "^4.1.10",
"dark-mode-toggle": "^0.5.1",
"firebase-tools": "^7.2.4",
"get-video-dimensions": "^1.0.0",
"glob": "^7.1.4",
"he": "^1.2.0",
"html-minifier": "^4.0.0",
"husky": "^3.0.4",
"image-size": "^0.7.4",
"json-minify": "^1.0.0",
"lint-staged": "^9.4.2",
"luxon": "^1.17.2",
"markdown-it": "^9.1.0",
"markdown-it-anchor": "^5.2.4",
"markdown-it-attrs": "^3.0.1",
"markdown-it-container": "^2.0.0",
"markdown-it-footnote": "^3.0.2",
"markdown-it-implicit-figures": "^0.10.0",
"markdown-it-multimd-table": "^4.0.0",
"markdownlint-cli": "^0.22.0",
"minify-xml": "^1.0.3",
"post-npm-install": "^2.0.0",
"postcss-cli": "^6.1.3",
"postcss-custom-properties": "^9.0.2",
"shx": "^0.3.2",
"superstatic": "^6.0.4",
"terser": "^4.3.9",
"workbox-cli": "^4.3.1"
}
}