Skip to content

Commit

Permalink
Merge pull request #775 from DFE-Digital/replace-del-with-rimraf
Browse files Browse the repository at this point in the history
Replace del with rimraf
  • Loading branch information
simonwhatley authored Dec 5, 2024
2 parents 9611adc + 14c83a9 commit 18e04f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions gulp/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
- public
*/

const del = require('del')
const { rimrafSync } = require('rimraf')
const gulp = require('gulp')

const config = require('./config.json')

gulp.task('clean', (done) => {
return del([config.paths.public, '.port.tmp'], done)
rimrafSync([config.paths.public, '.port.tmp'])
return done()
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"cookie-parser": "^1.4.5",
"cross-spawn": "^7.0.2",
"csv-string": "^4.0.1",
"del": "^5.1.0",
"dotenv": "^16.4.5",
"express": "^4.17.1",
"express-session": "^1.17.2",
Expand All @@ -50,6 +49,7 @@
"pluralize": "^8.0.0",
"portscanner": "^2.1.1",
"require-dir": "^1.0.0",
"rimraf": "^6.0.1",
"sass": "^1.77.8",
"seedrandom": "^3.0.5",
"string": "^3.3.3",
Expand Down

0 comments on commit 18e04f0

Please sign in to comment.