1
0
Fork 0

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:
Mouse Reeve 2022-02-19 15:29:47 -08:00 committed by GitHub
parent c5f8715c59
commit 6daaffeaa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 5634 additions and 46 deletions

View file

@ -16,6 +16,7 @@ module.exports = {
"property-no-vendor-prefix": null,
"color-function-notation": null,
"declaration-block-no-redundant-longhand-properties": null,
"no-descending-specificity": null
"no-descending-specificity": null,
"alpha-value-notation": null
}
};

View file

@ -9,6 +9,6 @@ COPY package.json requirements.txt .stylelintrc.js .stylelintignore /app/
RUN pip install -r requirements.txt
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_17.x | bash -
RUN apt-get install -y nodejs && apt-get clean
RUN npm install .

View file

@ -1,18 +1,18 @@
{
"scripts": {
"watch:static": "yarn watch \"./bw-dev collectstatic\" bookwyrm/static/**"
"watch:static": "watch \"cd .. && ./bw-dev collectstatic\" ../bookwyrm/static/**"
},
"devDependencies": {
"bulma": "^0.9.3",
"eslint": "^8.9.0",
"merge": "2.1.1",
"prettier": "2.5.1",
"stylelint": "^14.5.0",
"stylelint-config-recommended": "^7.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-order": "^5.0.0",
"watch": "^0.13.0"
},
"dependencies": {
"merge": "2.1.1",
"postcss": "^8.4.6",
"stylelint-config-recommended": "^7.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-order": "^5.0.0"
}
}