mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 02:51:13 +00:00
Updates workflows
This commit is contained in:
parent
b601ac6f91
commit
714bb081ea
9 changed files with 10 additions and 1551 deletions
2
.github/workflows/lint-frontend.yaml
vendored
2
.github/workflows/lint-frontend.yaml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install modules
|
- name: Install modules
|
||||||
run: yarn
|
run: yarn dev-tools
|
||||||
|
|
||||||
# See .stylelintignore for files that are not linted.
|
# See .stylelintignore for files that are not linted.
|
||||||
- name: Run stylelint
|
- name: Run stylelint
|
||||||
|
|
3
.github/workflows/prettier.yaml
vendored
3
.github/workflows/prettier.yaml
vendored
|
@ -17,8 +17,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install modules
|
- name: Install modules
|
||||||
run: npm install .
|
run: npm install dev-tools
|
||||||
|
|
||||||
# See .stylelintignore for files that are not linted.
|
|
||||||
- name: Run Prettier
|
- name: Run Prettier
|
||||||
run: npx prettier --check bookwyrm/static/js/*.js
|
run: npx prettier --check bookwyrm/static/js/*.js
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -24,7 +24,7 @@
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
#Node tools
|
#Node tools
|
||||||
/node_modules/
|
node_modules/
|
||||||
|
|
||||||
#nginx
|
#nginx
|
||||||
nginx/default.conf
|
nginx/default.conf
|
||||||
|
|
8
bw-dev
8
bw-dev
|
@ -97,7 +97,7 @@ case "$CMD" in
|
||||||
docker-compose restart celery_worker
|
docker-compose restart celery_worker
|
||||||
;;
|
;;
|
||||||
pytest)
|
pytest)
|
||||||
execweb pytest --no-cov-on-fail "$@"
|
runweb pytest --no-cov-on-fail "$@"
|
||||||
;;
|
;;
|
||||||
collectstatic)
|
collectstatic)
|
||||||
runweb python manage.py collectstatic --no-input
|
runweb python manage.py collectstatic --no-input
|
||||||
|
@ -141,9 +141,9 @@ case "$CMD" in
|
||||||
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
|
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
|
||||||
;;
|
;;
|
||||||
formatters)
|
formatters)
|
||||||
makeitblack
|
docker-compose run --rm dev-tools black celerywyrm bookwyrm && \
|
||||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
npx prettier --write bookwyrm/static/js/*.js && \
|
||||||
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
|
npx stylelint bookwyrm/static/**/*.css --fix
|
||||||
;;
|
;;
|
||||||
update)
|
update)
|
||||||
git pull
|
git pull
|
||||||
|
|
|
@ -6,7 +6,7 @@ RUN mkdir /app /app/static /app/images
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json requirements.txt /app/
|
COPY package.json requirements.txt .stylelintrc.js .stylelintignore /app/
|
||||||
RUN pip install black
|
RUN pip install black
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl
|
RUN apt-get update && apt-get install -y curl
|
|
@ -5,9 +5,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.9.0",
|
"eslint": "^8.9.0",
|
||||||
"prettier": "2.5.1",
|
"prettier": "2.5.1",
|
||||||
"stylelint": "^14.2.0",
|
"stylelint": "^14.5.0",
|
||||||
"stylelint-config-standard": "^25.0.0",
|
|
||||||
"stylelint-order": "^5.0.0",
|
|
||||||
"watch": "^0.13.0"
|
"watch": "^0.13.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
|
@ -85,7 +85,7 @@ services:
|
||||||
- redis_broker
|
- redis_broker
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
dev-tools:
|
dev-tools:
|
||||||
build: dev-tools-docker
|
build: dev-tools
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
|
|
Loading…
Reference in a new issue