Skip to content
  • This project
    • Loading...
  • Sign in

Jeff Balicki / st_joseph

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • st_joseph
  • wp-content
  • themes
  • crlg
  • src
  • build
  • dist-clean.js
  • Jeff Balicki's avatar
    header and footer · c4ad423b ...
    c4ad423b
    Signed-off-by: Jeff <jeff@gotenzing.com>
    Jeff Balicki committed 2023-01-25 17:34:26 -0500
dist-clean.js 282 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const del = require('del');

// directory path
const dir = './dist';

// delete directory recursively
(async () => {
    try {
        await del(dir);

        console.log(`${dir} is deleted!`);
    } catch (err) {
        console.error(`Error while deleting ${dir}.`);
    }
})();