From c9b9e2705a3d6f849c57b7ab4a402467cc7903e8 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 18 Feb 2022 18:14:39 +0100 Subject: [PATCH] added tasks for pr check that only run certain tasks part of #2527 --- frontend/gulpfile.js | 7 +++++++ package.json | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/gulpfile.js b/frontend/gulpfile.js index 4deac4542..dcf23499f 100644 --- a/frontend/gulpfile.js +++ b/frontend/gulpfile.js @@ -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")); diff --git a/package.json b/package.json index 1cd945fe9..9ef679494 100644 --- a/package.json +++ b/package.json @@ -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"