Skip to content

Commit b943318

Browse files
authored
Update JS dependencies and misc tweaks (#25540)
- Update all JS dependencies - Enable `declaration-property-unit-disallowed-list` to forbid `em` on `line-height` - Rename dependency update targets to `update-js` and `update-py` and document them - Remove margin on Asciicast viewer - Tested Swagger, Katex, Asciicast <img width="1243" alt="Screenshot 2023-06-27 at 19 51 05" src="https://github.com/go-gitea/gitea/assets/115237/2d2722a0-2aa7-4f4c-b8bd-17e1f3637b78">
1 parent 426a49d commit b943318

File tree

7 files changed

+106
-104
lines changed

7 files changed

+106
-104
lines changed

.stylelintrc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ rules:
5050
declaration-no-important: null
5151
declaration-property-max-values: null
5252
declaration-property-unit-allowed-list: null
53-
declaration-property-unit-disallowed-list: null
53+
declaration-property-unit-disallowed-list: {line-height: [em]}
5454
declaration-property-value-allowed-list: null
5555
declaration-property-value-disallowed-list: null
5656
declaration-property-value-no-unknown: true

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ help:
226226
@echo " - test-frontend test frontend files"
227227
@echo " - test-backend test backend files"
228228
@echo " - test-e2e[\#TestSpecificName] test end to end using playwright"
229+
@echo " - update-js update js dependencies"
230+
@echo " - update-py update py dependencies"
229231
@echo " - webpack build webpack files"
230232
@echo " - svg build svg files"
231233
@echo " - fomantic build fomantic files"
@@ -924,15 +926,15 @@ node_modules: package-lock.json
924926
poetry install
925927
@touch .venv
926928

927-
.PHONY: npm-update
928-
npm-update: node-check | node_modules
929+
.PHONY: update-js
930+
update-js: node-check | node_modules
929931
npx updates -u -f package.json
930932
rm -rf node_modules package-lock.json
931933
npm install --package-lock
932934
@touch node_modules
933935

934-
.PHONY: poetry-update
935-
poetry-update: node-check | node_modules
936+
.PHONY: update-py
937+
update-py: node-check | node_modules
936938
npx updates -u -f pyproject.toml
937939
rm -rf .venv poetry.lock
938940
poetry install

0 commit comments

Comments
 (0)