Commit graph

23 commits

Author SHA1 Message Date
Bart Schuurmans
12b469a0d6 CI: use actions/checkout@v4 2024-03-13 23:33:40 +01:00
Joachim
3f6cdff363 Update github actions versions 2023-01-01 21:06:35 +01:00
Mouse Reeve
6fb21b9e4b Disable wayward stylelint error 2022-10-20 20:44:27 -07:00
Mouse Reeve
c77e5a1a90
Split css (#1959)
Divides the css into sub-files and normalizes how colors are defined.

Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 16:34:17 -08:00
Mouse Reeve
6daaffeaa7
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>
2022-02-19 15:29:47 -08:00
Mouse Reeve
cfc1302b23 Fixes spacing 2022-02-16 17:53:03 -08:00
Mouse Reeve
954e914638 Linebreaks? who knows. 2022-02-16 17:50:30 -08:00
Mouse Reeve
7afb5bc493 Stylelint needs libraries 2022-02-16 17:47:58 -08:00
Mouse Reeve
862b6f49bd Correct npm package names 2022-02-16 17:45:04 -08:00
Mouse Reeve
c054ccc84b Try ci with yarn instead of npx 2022-02-16 17:36:44 -08:00
Mouse Reeve
9038afd7f1 Changes npm install 2022-02-16 13:16:05 -08:00
Mouse Reeve
c1853e03ab Updates stylelint command 2022-02-16 13:14:48 -08:00
Mouse Reeve
c19b9d7575 Updates stylelintrc filename and removes yarn 2022-02-15 12:46:28 -08:00
Mouse Reeve
450d4cdace Try using npx instead of yarn for stylelint 2022-02-15 12:39:14 -08:00
Mouse Reeve
7ff1ad7c83 Try again with yarn added as separate step 2022-02-15 12:37:28 -08:00
Mouse Reeve
4428c0f14d Remoes yarn line 2022-02-15 12:34:28 -08:00
Mouse Reeve
09978fc195 Tries npm install with yarn 2022-02-15 12:29:59 -08:00
Mouse Reeve
714bb081ea Updates workflows 2022-02-15 12:25:35 -08:00
Mouse Reeve
30ad3bba0b Suggest stylelint --fix in CI and add to bw-dev 2022-02-12 09:00:38 -08:00
Fabien Basmaison
b2b5ee5a22 [lint] Tweak editorconfig and frontend lint:
- Ignore computer generated files when linting.
- Include .mo files for consistency.
- Use multiline yaml syntax for `run` commands.
2021-04-17 12:39:57 +02:00
Fabien Basmaison
27e47b0a35 [lint] Update context for linting frontend files:
- Lint files when pushing on the _frontend_ branch.
- Lint files when eslint or stylelint config files are updated.
- Use _strict_ parsing of JS files by default. This should make the JS linting test to fail.
2021-04-05 16:35:09 +02:00
Fabien Basmaison
cbed5e331b [assets] Move some frontend assets to _vendor_ directories:
This simplifies linting of files we have no grasp on, and clarifies responsibilities.

- Add .eslintignore.
- Restrict linting to bookwyrm/static.
2021-04-05 16:17:11 +02:00
Fabien Basmaison
54ae4d9e44 Rename some Github Actions files for consistency. 2021-03-31 18:02:11 +02:00
Renamed from .github/workflows/linters-frontend.yaml (Browse further)