Add static assets and update build scripts
This commit is contained in:
parent
150ca36734
commit
80dd19b0f6
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
${{ runner.os }}-node-
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm run prod
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
|
|
|
|||
|
|
@ -5,8 +5,10 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"clean": "rm -rf docs && mkdir -p docs/styles",
|
||||
"dev": "npm run clean && postcss src/styles/global.css > docs/styles/global.css && eleventy --serve",
|
||||
"build": "npm run clean && NODE_ENV=production postcss src/styles/global.css > docs/styles/global.css && eleventy",
|
||||
"static": "cp -r static docs",
|
||||
"build": "npm run clean && npm run static && postcss src/styles/global.css > docs/styles/global.css",
|
||||
"dev": "npm run build && eleventy --serve",
|
||||
"prod": "NODE_ENV=production npm run build && eleventy",
|
||||
"format": "prettier --write src ./*.js ./.*.js"
|
||||
},
|
||||
"keywords": [],
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue