-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
24 lines (24 loc) · 1.02 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
{
"name": "aleccuster.com",
"version": "1.0.0",
"description": "My lightweight, no-JS portfolio site.",
"author": "Alec Custer",
"repository": "github:alechemy/aleccuster.com",
"scripts": {
"build": "npm run clean && mkdir -p dist/static && npm run copy && npm run critical",
"clean": "rm -rf dist",
"copy": "npm run copy:static && npm run copy:html && npm run copy:css",
"copy:css": "find src -name '*.css' -type f -exec cp {} dist \\;",
"copy:html": "find src -name '*.html' -type f -exec cp {} dist \\;",
"copy:static": "cp -r src/static/* dist/static",
"critical": "find dist -type f -name '*.html' -exec sh -c '$(npm bin)/critical {} --base dist --inline > dist/tmp.html && mv dist/tmp.html {}' \\;",
"mkdirs": "mkdir dist",
"serve": "browser-sync start -s --files 'src/**/*.(js|css|html)' --ss 'src' --port 3000 --reload-debounce 500 --no-open --no-notify"
},
"license": "MIT",
"dependencies": {},
"devDependencies": {
"browser-sync": "^2.26.14",
"critical": "^2.0.6"
}
}