mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Add eslint subcommand to bw-dev
This commit is contained in:
parent
0452731d02
commit
08d4b2e063
4 changed files with 10 additions and 0 deletions
6
bw-dev
6
bw-dev
|
@ -174,6 +174,10 @@ case "$CMD" in
|
|||
prod_error
|
||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
||||
;;
|
||||
eslint)
|
||||
prod_error
|
||||
docker-compose run --rm dev-tools npx eslint bookwyrm/static --ext .js
|
||||
;;
|
||||
stylelint)
|
||||
prod_error
|
||||
docker-compose run --rm dev-tools npx stylelint \
|
||||
|
@ -185,6 +189,7 @@ case "$CMD" in
|
|||
runweb pylint bookwyrm/
|
||||
docker-compose run --rm dev-tools black celerywyrm bookwyrm
|
||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
||||
docker-compose run --rm dev-tools npx eslint bookwyrm/static --ext .js
|
||||
docker-compose run --rm dev-tools npx stylelint \
|
||||
bookwyrm/static/css/bookwyrm.scss bookwyrm/static/css/bookwyrm/**/*.scss --fix \
|
||||
--config dev-tools/.stylelintrc.js
|
||||
|
@ -283,6 +288,7 @@ case "$CMD" in
|
|||
echo " clean"
|
||||
echo " black"
|
||||
echo " prettier"
|
||||
echo " eslint"
|
||||
echo " stylelint"
|
||||
echo " formatters"
|
||||
echo " collectstatic_watch"
|
||||
|
|
|
@ -22,6 +22,7 @@ build \
|
|||
clean \
|
||||
black \
|
||||
prettier \
|
||||
eslint \
|
||||
stylelint \
|
||||
formatters \
|
||||
collectstatic_watch \
|
||||
|
@ -59,6 +60,7 @@ __bw_complete "$commands" "build" "build the containers"
|
|||
__bw_complete "$commands" "clean" "bring the cluster down and remove all containers"
|
||||
__bw_complete "$commands" "black" "run Python code formatting tool"
|
||||
__bw_complete "$commands" "prettier" "run JavaScript code formatting tool"
|
||||
__bw_complete "$commands" "eslint" "run JavaScript linting tool"
|
||||
__bw_complete "$commands" "stylelint" "run SCSS linting tool"
|
||||
__bw_complete "$commands" "formatters" "run multiple formatter tools"
|
||||
__bw_complete "$commands" "populate_streams" "populate the main streams"
|
||||
|
|
|
@ -19,6 +19,7 @@ build
|
|||
clean
|
||||
black
|
||||
prettier
|
||||
eslint
|
||||
stylelint
|
||||
formatters
|
||||
collectstatic_watch
|
||||
|
|
|
@ -21,6 +21,7 @@ build
|
|||
clean
|
||||
black
|
||||
prettier
|
||||
eslint
|
||||
stylelint
|
||||
formatters
|
||||
collectstatic_watch
|
||||
|
|
Loading…
Reference in a new issue