Add static assets and update build scripts

This commit is contained in:
Scott 2021-01-05 17:06:13 -05:00
parent 150ca36734
commit 80dd19b0f6
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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": [],

1
static/logo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB