Skip to content

Commit

Permalink
align clean script with current build
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenegriffin committed Jun 1, 2022
1 parent 3a26d07 commit 5ba0603
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tasks/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,4 @@ const rmdir = function (filepath) {

// Remove build output directories
rmdir(path.join(__dirname, "..", "Pages"));
rmdir(path.join(__dirname, "..", "Content"));
rmdir(path.join(__dirname, "..", "src", "transpiled"));

// We don't remove Scripts, but instead remove child directories of Scripts
const scriptsFolder = path.join(__dirname, "..", "Scripts");
if (fs.existsSync(scriptsFolder)) {
fs.readdirSync(scriptsFolder).forEach((file, index) => {
const subpath = path.join(scriptsFolder, file);
if (fs.lstatSync(subpath).isDirectory()) {
rmdir(subpath);
}
});
}
rmdir(path.join(__dirname, "..", "Resources"));

0 comments on commit 5ba0603

Please sign in to comment.