From 5098519d46eb799dbb9392edc8d538f5171b178e Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 21 Jan 2025 13:03:07 +0800 Subject: [PATCH] WebUI: enable cache for lint checks Also, WebUI gets its own .gitignore file. --- .gitignore | 4 ---- src/webui/www/.gitignore | 5 +++++ src/webui/www/package.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/webui/www/.gitignore diff --git a/.gitignore b/.gitignore index c928583ee..17b925842 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,3 @@ src/icons/skin/build-icons/icons/*.png # CMake build directory build/ - -# Web UI tools -node_modules -package-lock.json diff --git a/src/webui/www/.gitignore b/src/webui/www/.gitignore new file mode 100644 index 000000000..2f85f13cb --- /dev/null +++ b/src/webui/www/.gitignore @@ -0,0 +1,5 @@ +# Web UI tools +.eslintcache +.stylelintcache +node_modules +package-lock.json diff --git a/src/webui/www/package.json b/src/webui/www/package.json index 818d48738..7149a8628 100644 --- a/src/webui/www/package.json +++ b/src/webui/www/package.json @@ -7,7 +7,7 @@ }, "scripts": { "format": "js-beautify -r *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && prettier --write **.css", - "lint": "eslint *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint **/*.css && html-validate private public" + "lint": "eslint --cache *.mjs private/*.html private/scripts/*.js private/views/*.html public/*.html public/scripts/*.js && stylelint --cache **/*.css && html-validate private public" }, "devDependencies": { "@stylistic/eslint-plugin": "*",