Skip to content

Commit

Permalink
Tweak building workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rngnrs committed Dec 24, 2023
1 parent 49624bc commit 0ea5db4
Show file tree
Hide file tree
Showing 4 changed files with 469 additions and 418 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
- name: Build
run: |
pnpm i
pnpm update-browserslist-db
pnpm build
cp ./src/index.html ./public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"version": "1.0.0",
"scripts": {
"start": "parcel ./src/**/index*.html",
"build": "parcel build --no-content-hash --no-cache --public-url ./src/"
"build": "parcel build",
"update-browserslist-db": "update-browserslist-db"
},
"targets": {
"default": {
"distDir": "./public",
"publicUrl": "./"
},
"ansi": {
"source": [
"./src/ansi/index.html",
Expand All @@ -23,13 +28,14 @@
},
"browserslist": "> 0.5%, last 2 versions, not dead",
"dependencies": {
"parcel": "^2.9.3",
"parcel": "^2.10.3",
"tinygradient": "^1.1.5"
},
"devDependencies": {
"@parcel/compressor-brotli": "^2.9.3",
"@parcel/compressor-gzip": "^2.9.3",
"@parcel/config-default": "^2.9.3",
"@parcel/core": "^2.9.3"
"@parcel/compressor-brotli": "^2.10.3",
"@parcel/compressor-gzip": "^2.10.3",
"@parcel/config-default": "^2.10.3",
"@parcel/core": "^2.10.3",
"update-browserslist-db": "^1.0.13"
}
}
Loading

0 comments on commit 0ea5db4

Please sign in to comment.