Skip to content

Commit

Permalink
SONARAZDO-400 Bump gulp deps & Drop obsolete gulp dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
7PH committed Aug 14, 2024
1 parent ea77cde commit eefa5ae
Show file tree
Hide file tree
Showing 4 changed files with 504 additions and 407 deletions.
1 change: 0 additions & 1 deletion config/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const gulpDownload = require("gulp-download");
const map = require("map-stream");
const { globSync: glob } = require("glob");
const sonarqubeScanner = require("sonarqube-scanner").default;
const collect = require("gulp-collect");
const Vinyl = require("vinyl");
const { resolveRelativePath, SOURCE_DIR, DIST_DIR, BUILD_DIR } = require("./paths");

Expand Down
28 changes: 14 additions & 14 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const path = require("path");
const gulp = require("gulp");
const gulpFile = require("gulp-file");
const fs = require("fs-extra");
const log = require("fancy-log");
const yargs = require("yargs");
const gulpJsonEditor = require("gulp-json-editor");
const gulpRename = require("gulp-rename");
const gulpArtifactoryUpload = require("gulp-artifactory-upload");
const ts = require("gulp-typescript");
const gulpUtil = require("gulp-util");
const mergeStream = require("merge-stream");
const { globSync: glob } = require("glob");
const typescript = require("typescript");
Expand Down Expand Up @@ -506,12 +506,12 @@ gulp.task("upload:cyclonedx", () => {

gulp.task("upload:vsix:sonarqube", () => {
if (process.env.CIRRUS_BRANCH !== "master" && !process.env.CIRRUS_PR) {
gulpUtil.log("Not on master nor PR, skip upload:vsix");
return gulpUtil.noop;
log("Not on master nor PR, skip upload:vsix");
return Promise.resolve();
}
if (process.env.CIRRUS_PR && process.env.DEPLOY_PULL_REQUEST === "false") {
gulpUtil.log("On PR, but artifacts should not be deployed, skip upload:vsix");
return gulpUtil.noop;
log("On PR, but artifacts should not be deployed, skip upload:vsix");
return Promise.resolve();
}
const name = `${packageJSON.name}-sq`;

Expand Down Expand Up @@ -556,19 +556,19 @@ gulp.task("upload:vsix:sonarqube", () => {
},
}),
)
.on("error", gulpUtil.log);
.on("error", log);
}),
);
});

gulp.task("upload:vsix:sonarcloud", () => {
if (process.env.CIRRUS_BRANCH !== "master" && !process.env.CIRRUS_PR) {
gulpUtil.log("Not on master nor PR, skip upload:vsix");
return gulpUtil.noop;
log("Not on master nor PR, skip upload:vsix");
return Promise.resolve();
}
if (process.env.CIRRUS_PR && process.env.DEPLOY_PULL_REQUEST === "false") {
gulpUtil.log("On PR, but artifacts should not be deployed, skip upload:vsix");
return gulpUtil.noop;
log("On PR, but artifacts should not be deployed, skip upload:vsix");
return Promise.resolve();
}
const name = `${packageJSON.name}-sc`;

Expand Down Expand Up @@ -613,18 +613,18 @@ gulp.task("upload:vsix:sonarcloud", () => {
},
}),
)
.on("error", gulpUtil.log);
.on("error", log);
}),
);
});

gulp.task("upload:buildinfo", async () => {
if (process.env.CIRRUS_BRANCH !== "master" && !process.env.CIRRUS_PR) {
gulpUtil.log("Not on master nor PR, skip upload:buildinfo");
log("Not on master nor PR, skip upload:buildinfo");
return;
}
if (process.env.CIRRUS_PR && process.env.DEPLOY_PULL_REQUEST === "false") {
gulpUtil.log("On PR, but artifacts should not be deployed, skip upload:buildinfo");
log("On PR, but artifacts should not be deployed, skip upload:buildinfo");
return;
}

Expand Down Expand Up @@ -662,7 +662,7 @@ gulp.task(

gulp.task("promote", async () => {
if (process.env.CIRRUS_BRANCH !== "master" && !process.env.CIRRUS_PR) {
gulpUtil.log("Not on master nor PR, skip promote");
log("Not on master nor PR, skip promote");
return;
}

Expand Down
Loading

0 comments on commit eefa5ae

Please sign in to comment.