-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
47 lines (47 loc) · 2.03 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
{
"name": "dndhelp",
"version": "1.1.2",
"description": "",
"main": "index.js",
"scripts": {
"build": "npm run buildinit && npm run buildcss && npm run buildhtml && npm run buildimages && npm run resizeimages && npm run buildjs",
"buildcss": "sass --style=compressed src/scss/main.scss src/_includes/styles.css && sass --style=compressed src/scss/article.scss src/_includes/article.css && sass --style=compressed src/scss/toc.scss src/_includes/toc.css",
"buildhtml": "npx @11ty/eleventy",
"buildimages": "imagemin src/images/**/*.{jpg,jpeg,png,gif,svg,webp} --out-dir=webroot/images",
"buildinit": "make-dir webroot/js",
"buildjs": "make-dir webroot/js && terser src/js/custom.js -o webroot/js/custom.min.js",
"cleandir": "del-cli webroot",
"resizeimages": "sharp resize 640 --input 'src/images/posters/*.webp' --output 'webroot/images/{name}-640.webp' && sharp resize 426 --input 'src/images/posters/*.webp' --output 'webroot/images/{name}-426.webp'",
"start": "npm run build && concurrently --kill-others \"npm run start-server\" \"npm run watch\"",
"start-server": "http-server ./webroot -p 5309 -o -c-1",
"watch": "npm run watchcss & npm run watchhtml & npm run watchjs",
"watchcss": "nodemon --watch src/scss -e scss -x \"npm run buildcss\"",
"watchhtml": "nodemon --watch src -e njk,md -x \"npm run buildhtml\"",
"watchjs": "nodemon --watch src/js -e js -x \"npm run buildjs\""
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-rss": "^1.2.0",
"concurrently": "^8.0.1",
"cpy-cli": "^4.2.0",
"del-cli": "^5.0.0",
"html-minifier": "^4.0.0",
"http-server": "^14.1.1",
"imagemin-cli": "^8.0.0",
"make-dir-cli": "^3.0.0",
"markdown-it": "^14.1.0",
"move-file-cli": "^3.0.0",
"nodemon": "^2.0.22",
"normalize.css": "^8.0.1",
"sass": "^1.77.8",
"sharp-cli": "^5.0.0",
"terser": "^5.17.2"
},
"dependencies": {
"markdown-it": "^14.1.0",
"npm": "^10.8.2"
}
}