Updates workflows
This commit is contained in:
15
dev-tools/Dockerfile
Normal file
15
dev-tools/Dockerfile
Normal 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
15
dev-tools/package.json
Normal 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"
|
||||
}
|
||||
}
|
1
dev-tools/requirements.txt
Normal file
1
dev-tools/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
black==21.4b2
|
Reference in New Issue
Block a user