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

Function checkBuildFolderExist

scripts/processMarkdown.js:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const MARKDOWN_FILE_EXTENSION = 'md';
8
9function checkBuildFolderExist(){
10 if (!fs.existsSync(TUTORIAL_BUILD_PATH)) {
11 console.log(chalk.magenta(`Creating build directory`));
12 fs.mkdirSync(TUTORIAL_BUILD_PATH);
13 }
14}
15
16function cleanBuildFolder(){
17 console.log(chalk.yellow(`Cleaning up build directory`));

Callers 1

processMarkdown.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected