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
10
bw-dev
10
bw-dev
|
@ -137,6 +137,14 @@ case "$CMD" in
|
|||
prettier)
|
||||
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)
|
||||
git pull
|
||||
docker-compose build
|
||||
|
@ -212,6 +220,8 @@ case "$CMD" in
|
|||
echo " clean"
|
||||
echo " black"
|
||||
echo " prettier"
|
||||
echo " stylelint"
|
||||
echo " formatters"
|
||||
echo " populate_streams [--stream=<stream name>]"
|
||||
echo " populate_suggestions"
|
||||
echo " generate_thumbnails"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue