diff options
author | silverwind <me@silverwind.io> | 2024-11-24 00:02:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-23 23:02:37 +0000 |
commit | fa175c16949f09757ae85db6697cec327c44cba9 (patch) | |
tree | d1d2826963e6c05f983e02e3e33c78ad69f83480 /Makefile | |
parent | 713364fc718d1d53840bd83ba6f6c307bd213fa8 (diff) | |
download | gitea-fa175c16949f09757ae85db6697cec327c44cba9.tar.gz gitea-fa175c16949f09757ae85db6697cec327c44cba9.zip |
Add vue-tsc (#32601)
As per https://vuejs.org/guide/typescript/overview#overview,
typescript's `tsc` does not support importing `.vue` files from `.ts`
files, so we need to use `vue-tsc` which patches in that support. Added
a convenience alias `make tsc` to run it.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -377,12 +377,12 @@ lint-backend-fix: lint-go-fix lint-go-vet lint-editorconfig .PHONY: lint-js lint-js: node_modules npx eslint --color --max-warnings=0 --ext js,ts,vue $(ESLINT_FILES) -# npx tsc +# npx vue-tsc .PHONY: lint-js-fix lint-js-fix: node_modules npx eslint --color --max-warnings=0 --ext js,ts,vue $(ESLINT_FILES) --fix -# npx tsc +# npx vue-tsc .PHONY: lint-css lint-css: node_modules @@ -451,6 +451,10 @@ lint-templates: .venv node_modules lint-yaml: .venv @poetry run yamllint . +.PHONY: tsc +tsc: + npx vue-tsc + .PHONY: watch watch: @bash tools/watch.sh |