prettier node scripts and fix CI workflow

main
CrimsonTome 2022-09-17 03:25:51 +01:00 committed by Rowan Clark
parent 08eb33ed28
commit bed09aa46d
No known key found for this signature in database
GPG Key ID: F620D51904044094
2 changed files with 3 additions and 5 deletions

View File

@ -28,12 +28,8 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
<<<<<<< HEAD
node-version: '18.x'
- name: run Prettier
run: npx prettier --check .
=======
node-version: "18.x"
>>>>>>> 229a8cf (format all with prettier)
- name: Run npm
run: npm install && npm run build

View File

@ -7,7 +7,9 @@
"watch": "eleventy --watch",
"serve": "eleventy --serve",
"start": "eleventy --serve",
"debug": "DEBUG=* eleventy"
"debug": "DEBUG=* eleventy",
"prettier-write": "npx prettier --write --ignore-unknown .",
"prettier-check": "npx prettier --check ."
},
"repository": {
"type": "git",