This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brandon Pittman
committed
Oct 17, 2019
1 parent
227582a
commit 2268b35
Showing
4 changed files
with
234 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const del = require('del'); | ||
const chalk = require('chalk'); | ||
|
||
module.exports = async () => { | ||
const deletedPaths = await del(['src/{pages,components,layouts,templates}/README.md', '!./README.md']); | ||
|
||
if (deletedPaths.length > 0) { | ||
console.log(chalk.green('Deleted files:\n', deletedPaths.join('\n'))); | ||
} else { | ||
console.log(chalk.yellow('No files to delete.')); | ||
} | ||
}; |
Oops, something went wrong.