From f0656b8d72eb0d4423aa6af6eff3c452adaf6756 Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Tue, 5 Mar 2024 20:33:06 +0000 Subject: [PATCH] readme, updated package script steps --- README.md | 32 ++++++++++++++++++++++++++++++++ package.json | 8 ++++---- 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..48e9706 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# portfolio + +For repos, work, and more + +## Developing + +In two terminals + +```sh +# first terminal +npm run start + +# second terminal +npm run start:styles +``` + +## Building for production, static site + +```sh +npm run build +``` + +## Deploy steps + +Requires Docker, NodeJS + +_Docker container automatically performs dependency install and build_ + +```sh +npm run deploy +``` + diff --git a/package.json b/package.json index 8e2f320..bbe23a7 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "author": "Ava Gaiety W. (https://www.gaiety.me/)", "main": "index.js", "scripts": { - "serve:styles": "npx postcss styles.css -o _site/styles.css --watch", - "serve:site": "npx @11ty/eleventy --serve", - "build:site": "npx @11ty/eleventy", - "build:styles": "npx postcss styles.css -o _site/styles.css --env production", + "start": "npx postcss styles.css -o _site/styles.css --watch", + "start:site": "npx @11ty/eleventy --serve", + "build": "npx @11ty/eleventy", + "postbuild": "npx postcss styles.css -o _site/styles.css --env production", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {