Skip to content

Commit

Permalink
ignore some files in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Sep 9, 2023
1 parent d63ed0a commit de85e70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/build.js
Expand Up @@ -35,10 +35,19 @@ async function init() {
console.log('Build complete!');
}

const ignoredFiles = [
join(cwd, 'docs', 'build.js'),
join(cwd, 'docs', '.eslintrc.json'),
join(cwd, 'docs', '_document.html')
];

async function build(currentDir, tmpl) {
const files = await readdir(currentDir);
for (const file of files) {
const filename = join(currentDir, file);
if (ignoredFiles.includes(filename)) {
continue;
}
const stats = await stat(filename);
const { mode } = stats;
if (stats.isDirectory()) {
Expand Down

0 comments on commit de85e70

Please sign in to comment.