make bw-dev consistent

This commit is contained in:
Vivianne Langdon 2022-03-17 00:49:22 -07:00
parent 225957ba8a
commit 51bb4c6f5d

12
bw-dev
View file

@ -139,20 +139,20 @@ case "$CMD" in
docker-compose run --rm dev-tools black celerywyrm bookwyrm docker-compose run --rm dev-tools black celerywyrm bookwyrm
;; ;;
prettier) prettier)
docker-compose run --rm dev-tools npm exec --prefix=dev-tools/ -- prettier \ docker-compose run --rm dev-tools npm exec --prefix dev-tools -- prettier \
--write bookwyrm/static/js/*.js --write bookwyrm/static/js/*.js
;; ;;
stylelint) stylelint)
docker-compose run --rm dev-tools npm exec --prefix=dev-tools/ -- stylelint \ docker-compose run --rm dev-tools npm exec --prefix dev-tools -- stylelint \
--fix --config=dev-tools/.stylelintrc.js --ignore-path=dev-tools/.stylelintignore \ --fix --config dev-tools/.stylelintrc.js --ignore-path dev-tools/.stylelintignore \
bookwyrm/static/css bookwyrm/static/css
;; ;;
formatters) formatters)
docker-compose run --rm dev-tools black celerywyrm bookwyrm docker-compose run --rm dev-tools black celerywyrm bookwyrm
docker-compose run --rm dev-tools npm exec --prefix=dev-tools/ -- prettier \ docker-compose run --rm dev-tools npm exec --prefix dev-tools -- prettier \
--write bookwyrm/static/js/*.js --write bookwyrm/static/js/*.js
docker-compose run --rm dev-tools npm exec --prefix=dev-tools/ -- stylelint \ docker-compose run --rm dev-tools npm exec --prefix dev-tools -- stylelint \
--fix --config=dev-tools/.stylelintrc.js --ignore-path=dev-tools/.stylelintignore \ --fix --config dev-tools/.stylelintrc.js --ignore-path dev-tools/.stylelintignore \
bookwyrm/static/css bookwyrm/static/css
;; ;;
compilescss) compilescss)