cleanup build and start commands
This commit is contained in:
parent
0d6a0143c0
commit
43c3c334f2
3 changed files with 1928 additions and 36 deletions
15
README.md
15
README.md
|
@ -6,28 +6,17 @@ Uses [mise](https://mise.jdx.dev/), install necessary runtimes with `mise instal
|
|||
|
||||
## Developing
|
||||
|
||||
In two terminals
|
||||
```sh
|
||||
# first terminal
|
||||
npm start
|
||||
|
||||
# second terminal
|
||||
npm run start:site
|
||||
```
|
||||
|
||||
## 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
|
||||
# or...
|
||||
docker compose up --build -d
|
||||
```
|
||||
|
||||
|
|
1942
package-lock.json
generated
1942
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,10 +5,12 @@
|
|||
"author": "Ava Gaiety W. <ava@wroten.me> (https://www.gaiety.me/)",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "npx postcss styles.css -o _site/styles.css --watch",
|
||||
"prestart": "npm run build",
|
||||
"start": "run-p start:*",
|
||||
"start:styles": "npx postcss styles.css -o _site/styles.css --watch",
|
||||
"start:site": "npx @11ty/eleventy --serve",
|
||||
"build": "npx @11ty/eleventy",
|
||||
"postbuild": "npm run postbuild:styles && npm run postbuild:highlighttheme",
|
||||
"postbuild": "run-s postbuild:*",
|
||||
"postbuild:highlighttheme": "cp ./node_modules/@catppuccin/highlightjs/css/catppuccin.variables.css ./_site",
|
||||
"postbuild:styles": "npx tailwindcss -i styles.css -o _site/styles.css --env production",
|
||||
"optimize": "rm -rf _site/_jampack && jampack _site",
|
||||
|
@ -40,6 +42,7 @@
|
|||
"highlightjs-glimmer": "^2.2.1",
|
||||
"install": "^0.13.0",
|
||||
"npm": "^10.5.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^8.3.11",
|
||||
"postcss-cli": "^9.0.1",
|
||||
"tailwindcss": "^3.4.1",
|
||||
|
|
Loading…
Add table
Reference in a new issue