From 80dd19b0f630bc6367fc47bd70ba0982b96ec622 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 5 Jan 2021 17:06:13 -0500 Subject: [PATCH] Add static assets and update build scripts --- .github/workflows/gh-pages.yml | 2 +- package.json | 6 ++++-- static/logo.svg | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 static/logo.svg diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0bb976d..ee7bbc5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/package.json b/package.json index a13469a..f0e3a8f 100644 --- a/package.json +++ b/package.json @@ -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": [], diff --git a/static/logo.svg b/static/logo.svg new file mode 100644 index 0000000..732c00f --- /dev/null +++ b/static/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file