Updates workflows

This commit is contained in:
Mouse Reeve
2022-02-15 12:25:35 -08:00
parent b601ac6f91
commit 714bb081ea
9 changed files with 10 additions and 1551 deletions

15
dev-tools/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM python:3.9
ENV PYTHONUNBUFFERED 1
RUN mkdir /app /app/static /app/images
WORKDIR /app
COPY package.json requirements.txt .stylelintrc.js .stylelintignore /app/
RUN pip install black
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN npm install .

15
dev-tools/package.json Normal file
View File

@ -0,0 +1,15 @@
{
"scripts": {
"watch:static": "yarn watch \"./bw-dev collectstatic\" bookwyrm/static/**"
},
"devDependencies": {
"eslint": "^8.9.0",
"prettier": "2.5.1",
"stylelint": "^14.5.0",
"watch": "^0.13.0"
},
"dependencies": {
"merge": "2.1.1",
"postcss": "^8.4.6"
}
}

View File

@ -0,0 +1 @@
black==21.4b2