MCPcopy Index your code
hub / github.com/tyroprogrammer/learn-react-app / cleanBuildFolder

Function cleanBuildFolder

scripts/processMarkdown.js:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16function cleanBuildFolder(){
17 console.log(chalk.yellow(`Cleaning up build directory`));
18 fs.readdir(TUTORIAL_BUILD_PATH, function (err, items) {
19 items.forEach(function(file) {
20 var filePath = path.join(TUTORIAL_BUILD_PATH, file);
21 fs.unlink(filePath, function(err) {
22 if (err) {
23 console.log(chalk.red(`Error when deleting file %s`), filePath);
24 throw new Error(err);
25 }
26 })
27 })
28 });
29}
30
31
32function createJSFilesFromMarkdown(){

Callers 1

processMarkdown.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected