Skip to content

Commit

Permalink
chore: use node:fs, node:path for clean gulp task instead of del pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
doamatto committed Jan 15, 2025
1 parent 7fd6110 commit 71e9ccc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 125 deletions.
13 changes: 8 additions & 5 deletions gulpfile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("dotenv").config();
//require("dotenv").config();

import { Product, RubricQuestion, Contributor } from "./src/parsing/types";

Expand All @@ -18,15 +18,18 @@ import {
const gulp = require("gulp");
const postcss = require("gulp-postcss");
const rename = require("gulp-rename");
const del = require("del");
const fs = require("fs");
const fs = require("node:fs");
const path = require("node:path");

const rubric: RubricQuestion[] = loadRubric();
const contributors: Contributor[] = loadContributors();
const products: Product[] = loadProducts(rubric, contributors);

gulp.task("clean", () => {
return del("./dist/**/*");
gulp.task("clean", async () => {
return await fs.rm(path.join(__dirname, "dist"), {
recursive: true,
force: true,
});
});

gulp.task("build api", async () => {
Expand Down
119 changes: 0 additions & 119 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@types/node": "^22.5.0",
"a17t": "^0.10.1",
"autoprefixer": "^10.2.6",
"del": "^5.1.0",
"dotenv": "^8.2.0",
"gulp": "^5.0.0",
"gulp-hb": "^8.0.0",
Expand Down

0 comments on commit 71e9ccc

Please sign in to comment.