added tasks for pr check that only run certain tasks

part of #2527
This commit is contained in:
Miodec 2022-02-18 18:14:39 +01:00
parent 5d0c5998d2
commit c9b9e2705a
2 changed files with 10 additions and 1 deletions

View file

@ -147,4 +147,11 @@ task("watch", function () {
});
task("build", series("clean", "compile"));
task("build-production", series("clean", "compile-production"));
task("pr-check-json", series("lint-json", "validate-json-schema"));
task("pr-check-scss", series("lint", "sass"));
task("pr-check-ts", series("lint", "webpack-production"));

View file

@ -12,7 +12,9 @@
"lint": "./node_modules/.bin/eslint './backend/**/*.js' './frontend/src/scripts/**/*.js'",
"build:live": "cd ./frontend && npm run build:live",
"pretty": "prettier --check './backend/**/*.js' './frontend/src/**/*.{js,scss}' './frontend/static/**/*.{json,html}'",
"validate-json-schema": "cd frontend && npx gulp validate-json-schema"
"pr-check-json": "cd frontend && npx gulp pr-check-json",
"pr-check-scss": "cd frontend && npx gulp pr-check-scss",
"pr-check-ts": "cd frontend && npx gulp pr-check-ts"
},
"engines": {
"npm": "8.1.2"