mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Easier way to run Prettier locally (#1203)
Thanks, Ben Pickles - refs #1167
This commit is contained in:
parent
b6a7b58fa0
commit
ffff3a4c53
2 changed files with 5 additions and 1 deletions
2
.github/workflows/prettier.yml
vendored
2
.github/workflows/prettier.yml
vendored
|
|
@ -19,4 +19,4 @@ jobs:
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run prettier
|
- name: Run prettier
|
||||||
run: |-
|
run: |-
|
||||||
npx --no-install prettier --check 'datasette/static/*[!.min].js'
|
npm run prettier -- --check
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,9 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "^2.2.1"
|
"prettier": "^2.2.1"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"fix": "npm run prettier -- --write",
|
||||||
|
"prettier": "prettier 'datasette/static/*[!.min].js'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue