-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
30 lines (29 loc) · 2.14 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
{
"name": "tryfinally",
"author": "apkd <[email protected]>",
"private": true,
"devDependencies": {
"bootstrap": "5.1.3",
"shx": "0.3.4",
"darkreader": "4.9.58",
"purgecss": "5.0.0",
"terser": "5.17.1",
"typescript": "5.0.4",
"imagemin-cli": "7.0.0",
"imagemin-webp": "8.0.0",
"clean-css-cli": "5.6.2",
"pagefind": "0.12.0"
},
"scripts": {
"serve": "yarn build && bundle exec jekyll serve --watch --drafts",
"build": "yarn build-js && yarn build-css && yarn build-img && yarn build-search",
"build-js": "yarn tsc && terser --config-file terserconfig.json --output assets/bundle.min.js -- assets/bundle.js && terser --output assets/iframe-resizer.min.js -- assets/iframe-resizer.js",
"build-css": "set JEKYLL_ENV=production && yarn shx cp node_modules/bootstrap/dist/css/bootstrap.css _sass/bootstrap.scss && bundle exec jekyll build && purgecss --safelist my-0 my-1 my-2 my-3 my-4 my-5 --css _site/assets/bundle.css --content _site/**/*.html --output assets/bundle.min.css",
"build-img": "yarn build-img-1 && yarn build-img-2 && yarn build-img-3 && yarn build-img-4",
"build-img-1": "yarn imagemin assets/img/cover --out-dir=assets/img-min/cover --plugin.webp.method=6 --plugin.webp.quality=90 --plugin.webp.autofilter=true --plugin.webp.crop.x=0 --plugin.webp.crop.y=512 --plugin.webp.crop.width=2048 --plugin.webp.crop.height=400",
"build-img-2": "yarn imagemin assets/img/cover --out-dir=assets/img-min/thumb --plugin.webp.method=6 --plugin.webp.quality=80 --plugin.webp.autofilter=true --plugin.webp.resize.width=800 --plugin.webp.resize.height=0",
"build-img-3": "yarn imagemin assets/img/cover --out-dir=assets/img-min/social --plugin.webp.method=6 --plugin.webp.quality=80 --plugin.webp.autofilter=true --plugin.webp.resize.width=1440 --plugin.webp.resize.height=0",
"build-img-4": "yarn imagemin assets/img/site --out-dir=assets/img-min/site --plugin.webp.method=6 --plugin.webp.quality=90 --plugin.webp.autofilter=true",
"build-search": "yarn shx mkdir -p assets/pagefind/ && yarn shx rm -r assets/pagefind/ && yarn pagefind --source _site --bundle-dir ../assets/pagefind/"
}
}