Adds dev tools docker image
This commit is contained in:
parent
1a2c85a327
commit
b601ac6f91
6 changed files with 26 additions and 6 deletions
10
bw-dev
10
bw-dev
|
@ -35,7 +35,7 @@ function initdb {
|
|||
}
|
||||
|
||||
function makeitblack {
|
||||
runweb black celerywyrm bookwyrm
|
||||
docker-compose run --rm dev-tools black celerywyrm bookwyrm
|
||||
}
|
||||
|
||||
function awscommand {
|
||||
|
@ -135,15 +135,15 @@ case "$CMD" in
|
|||
makeitblack
|
||||
;;
|
||||
prettier)
|
||||
npx prettier --write bookwyrm/static/js/*.js
|
||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
||||
;;
|
||||
stylelint)
|
||||
npx stylelint bookwyrm/static/**/*.css --fix
|
||||
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
|
||||
;;
|
||||
formatters)
|
||||
makeitblack
|
||||
npx prettier --write bookwyrm/static/js/*.js
|
||||
npx stylelint bookwyrm/static/**/*.css --fix
|
||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
||||
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
|
||||
;;
|
||||
update)
|
||||
git pull
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue