forked from mirrors/bookwyrm
Suggest stylelint --fix in CI and add to bw-dev
This commit is contained in:
parent
542957364c
commit
30ad3bba0b
3 changed files with 13 additions and 1 deletions
2
.github/workflows/lint-frontend.yaml
vendored
2
.github/workflows/lint-frontend.yaml
vendored
|
@ -1,5 +1,5 @@
|
||||||
# @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
# @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
||||||
name: Lint Frontend
|
name: Lint Frontend (run `./bw-dev stylelint` to fix css errors)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
10
bw-dev
10
bw-dev
|
@ -137,6 +137,14 @@ case "$CMD" in
|
||||||
prettier)
|
prettier)
|
||||||
npx prettier --write bookwyrm/static/js/*.js
|
npx prettier --write bookwyrm/static/js/*.js
|
||||||
;;
|
;;
|
||||||
|
stylelint)
|
||||||
|
npx stylelint bookwyrm/static/**/*.css --fix
|
||||||
|
;;
|
||||||
|
formatters)
|
||||||
|
makeitblack
|
||||||
|
npx prettier --write bookwyrm/static/js/*.js
|
||||||
|
npx stylelint bookwyrm/static/**/*.css --fix
|
||||||
|
;;
|
||||||
update)
|
update)
|
||||||
git pull
|
git pull
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
@ -212,6 +220,8 @@ case "$CMD" in
|
||||||
echo " clean"
|
echo " clean"
|
||||||
echo " black"
|
echo " black"
|
||||||
echo " prettier"
|
echo " prettier"
|
||||||
|
echo " stylelint"
|
||||||
|
echo " formatters"
|
||||||
echo " populate_streams [--stream=<stream name>]"
|
echo " populate_streams [--stream=<stream name>]"
|
||||||
echo " populate_suggestions"
|
echo " populate_suggestions"
|
||||||
echo " generate_thumbnails"
|
echo " generate_thumbnails"
|
||||||
|
|
|
@ -21,6 +21,8 @@ build
|
||||||
clean
|
clean
|
||||||
black
|
black
|
||||||
prettier
|
prettier
|
||||||
|
stylelint
|
||||||
|
formatters
|
||||||
populate_streams
|
populate_streams
|
||||||
populate_lists_streams
|
populate_lists_streams
|
||||||
populate_suggestions
|
populate_suggestions
|
||||||
|
|
Loading…
Reference in a new issue