Compiles css framework from sass (#1956)
* Compiles css framework from sass * Adds watch commands * Copies existing css to sass file * Moves sass out of static path * Removes global linter I wasn't sure how to customize this, and it's not providing a lot of additional value on top of the domain-specific linters * Reverts invalid change to dockerfile * Changes stylelint path * Remove unused bulma files * Properly minifies generated css * Fixes regression in thread display * rgba function only works with percents for whatever reason * Hush stylelint * Removes trailing zeros * Compile sass in Django Co-authored-by: Joachim <joachim.robert@protonmail.com> * Python formatting * Updates linter * Updates commands * Adds css-config file Co-authored-by: Joachim <joachim.robert@protonmail.com> * Stylelint fix * Removes unused compiled bulma files Co-authored-by: Joachim <joachim.robert@protonmail.com>
This commit is contained in:
13
bw-dev
13
bw-dev
@ -143,13 +143,20 @@ case "$CMD" in
|
||||
;;
|
||||
stylelint)
|
||||
docker-compose run --rm dev-tools npx stylelint \
|
||||
bookwyrm/static/css/*.css --fix \
|
||||
bookwyrm/static/css/*.scss --fix \
|
||||
--config dev-tools/.stylelintrc.js
|
||||
;;
|
||||
formatters)
|
||||
docker-compose run --rm dev-tools black celerywyrm bookwyrm && \
|
||||
npx prettier --write bookwyrm/static/js/*.js && \
|
||||
npx stylelint bookwyrm/static/css/*.css --fix --config dev-tools/.stylelintrc.js
|
||||
npx stylelint bookwyrm/static/css/*.scss --fix --config dev-tools/.stylelintrc.js
|
||||
;;
|
||||
compilescss)
|
||||
runweb python manage.py compilescss
|
||||
runweb python manage.py collectstatic --no-input
|
||||
;;
|
||||
collectstatic_watch)
|
||||
npm run --prefix dev-tools watch:static
|
||||
;;
|
||||
update)
|
||||
git pull
|
||||
@ -237,6 +244,8 @@ case "$CMD" in
|
||||
echo " prettier"
|
||||
echo " stylelint"
|
||||
echo " formatters"
|
||||
echo " compilescss"
|
||||
echo " collectstatic_watch"
|
||||
echo " populate_streams [--stream=<stream name>]"
|
||||
echo " populate_lists_streams"
|
||||
echo " populate_suggestions"
|
||||
|
Reference in New Issue
Block a user