-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
executable file
·124 lines (124 loc) · 4.52 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "vincent-orback",
"version": "6.0.0",
"description": "My personal portfolio",
"homepage": "https://www.vincentorback.se",
"author": {
"name": "Vincent Orback",
"email": "[email protected]",
"url": "https://www.vincentorback.se"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/vincentorback/vincent-orback.git"
},
"scripts": {
"start": "if [ ! -d dist ]; then npm run build; fi && npm-run-all --parallel serve watch",
"build:js": "esbuild src/assets/javascript/main.js --outfile=dist/assets/javascript/main.js --bundle --minify --sourcemap",
"build:css": "postcss src/assets/css/style.css -o dist/assets/css/style.css",
"build:html": "html-minifier --remove-comments --case-sensitive --sort-attributes --sort-class-name --collapse-whitespace --process-scripts 'application/ld+json' --minify-js true --output-dir dist --input-dir src --file-ext html",
"build:light": "npm-run-all test:js test:css build:html build:js build:css compress",
"build": "rm -rf dist && npm-run-all build:light move:images move:video move:fonts move:icons move:fonts",
"move:images": "copyfiles -u 2 -f src/assets/images/* src/assets/images/**/* dist/assets/images",
"move:video": "copyfiles -u 2 -f src/assets/video/* dist/assets/video",
"move:icons": "copyfiles -u 2 -f src/assets/icons/* dist",
"move:fonts": "copyfiles -u 2 src/assets/fonts/* dist/assets",
"test:js": "standard src/assets/javascript --verbose --fix",
"test:css": "stylelint src/assets/css/**/*.css",
"watch": "npm-run-all --parallel watch:js watch:css watch:html",
"watch:js": "chokidar 'src/assets/javascript/**/*.js' -c 'npm run test:js && npm run build:js && npm run compress'",
"watch:css": "chokidar 'src/assets/css/**/*.css' -c 'npm run test:css && npm run build:css && npm run compress'",
"watch:html": "chokidar 'src/**/*.html' -c 'npm run build:html && npm run compress'",
"serve": "serve dist -l 3000",
"compress": "gzip dist/**/*.{css,js,html} --extension=gz --extension=br",
"compress:images": "imageoptim dist/* && imagemin ./dist/assets/images/*.{jpg,png} --plugin.webp.quality=70 -o=./dist/assets/images",
"compress:images:avif": "npx avif --input=dist/assets/images/*.{jpg,jpeg} --output=dist/assets/images --overwrite --effort=9 --quality=70",
"deploy:light": "npm run build:light && copyfiles -u 1 src/sitemap.xml dist && copyfiles -u 1 src/.htaccess dist && copyfiles -u 1 src/robots.txt dist",
"deploy": "npm run build && copyfiles -u 1 src/sitemap.xml dist && copyfiles -u 1 src/.htaccess dist && copyfiles -u 1 src/robots.txt dist"
},
"dependencies": {
"colcade": "^0.2.0",
"paper": "^0.12.17"
},
"devDependencies": {
"autoprefixer": "^10.4.19",
"avif": "^0.5.2",
"chokidar": "^3.6.0",
"chokidar-cli": "^3.0.0",
"copyfiles": "^2.4.1",
"esbuild": "^0.21.5",
"gzip-cli": "^1.2.0",
"html-minifier": "^4.0.0",
"imagemin-cli": "^8.0.0",
"imagemin-webp": "^8.0.0",
"imageoptim-cli": "^3.1.9",
"inline-source-cli": "^2.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.38",
"postcss-calc": "^10.0.0",
"postcss-cli": "^11.0.0",
"postcss-csso": "^6.0.1",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-import": "^16.1.0",
"postcss-preset-env": "^9.5.14",
"serve": "^14.2.3",
"standard": "^17.1.0",
"stylelint": "^16.6.1",
"stylelint-config-standard": "^36.0.0",
"uglify-es": "^3.3.10"
},
"browserslist": [
"> 0.5% in SE",
"last 3 major versions",
"not dead"
],
"postcss": {
"plugins": {
"postcss-import": {},
"postcss-preset-env": {
"enableClientSidePolyfills": false,
"autoprefixer": {
"grid": true
},
"features": {
"clamp": true,
"text-decoration-shorthand": true
}
},
"postcss-calc": {
"preserve": true
},
"postcss-flexbugs-fixes": {},
"postcss-csso": {
"comments": false
}
}
},
"stylelint": {
"extends": "stylelint-config-standard",
"rules": {
"unit-no-unknown": [
true,
{
"ignoreUnits": [
"x"
]
}
],
"selector-class-pattern": null,
"color-function-notation": null,
"alpha-value-notation": "number",
"custom-property-pattern": null,
"keyframes-name-pattern": null
}
},
"standard": {
"ignore": [
"src/assets/javascript/vendor/"
],
"rules": {
"no-unused-vars": null
}
}
}