Move docs-dist => docs

This commit is contained in:
Cory LaViska
2020-06-05 07:50:46 -04:00
parent f6ef444beb
commit a5410b5f69
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@@ -3,7 +3,7 @@ src/components/icon/icons
docs/assets/data/custom.json
dist/
docs-dist/
docs/dist/
loader/
www/

View File

@@ -6,8 +6,8 @@ const del = require('del');
try {
// Create the docs distribution
console.log(chalk.cyan('Creating docs distribution 📚\n'));
await del('./docs-dist');
await Promise.all([copy('./docs', './docs-dist'), copy('./dist', './docs-dist/dist')]);
await del('./docs/dist');
await copy('./dist', './docs/dist');
} catch (err) {
console.error(err);
}