Skip to content

Commit

Permalink
Revert del version: sindresorhus/del#152
Browse files Browse the repository at this point in the history
  • Loading branch information
beatonma committed Oct 9, 2023
1 parent bfb63f2 commit 90a96c2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 139 deletions.
4 changes: 2 additions & 2 deletions beatonma-gulp/gulpfile.ts/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import del from "del";
import { sync as deleteSync } from "del";
import { ANY_FILE, distPath } from "./paths";
import { Env } from "./env";

Expand Down Expand Up @@ -34,7 +34,7 @@ const init = async (_buildType: BuildMode) => {
checkConfiguration();
};

const clean = () => del.sync([distPath(ANY_FILE)]);
const clean = () => deleteSync([distPath(ANY_FILE)]);
const checkConfiguration = () => {
Object.entries(environment).forEach(([, value]) => {
if (!value) {
Expand Down
8 changes: 4 additions & 4 deletions beatonma-gulp/gulpfile.ts/watch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create as browserSyncCreate } from "browser-sync";
import { exec as shellExec } from "child_process";
import del from "del";
import { sync as deleteSync } from "del";
import gulp, { dest, parallel, series, src } from "gulp";
import { ANY_FILE, distPath, djangoPath, localPath, srcPath } from "./paths";
import { build } from "./build";
Expand All @@ -17,13 +17,13 @@ const refreshBrowser = async () => {
};

const localDist = () => src(distPath(ANY_FILE)).pipe(dest(localPath()));
const localClean = async () => del.sync(localPath(), { force: true });
const localClean = async () => deleteSync(localPath(), { force: true });
const localBuild = series(
parallel(build, localClean),
localDist,
refreshBrowser
refreshBrowser,
);

export const watch = series(localBuild, initBrowserSync, () =>
gulp.watch(srcPath(ANY_FILE), localBuild)
gulp.watch(srcPath(ANY_FILE), localBuild),
);
148 changes: 16 additions & 132 deletions beatonma-gulp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion beatonma-gulp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"css-loader": "^6.8.1",
"cssnano": "^6.0.1",
"cypress": "13.3.0",
"del": "^7.1.0",
"del": "^6.1.1",
"gulp": "^4.0.2",
"gulp-if": "^3.0.0",
"gulp-postcss": "^9.0.1",
Expand Down

0 comments on commit 90a96c2

Please sign in to comment.