shoelace/make-dist.js

16 wiersze
415 B
JavaScript
Czysty Zwykły widok Historia

2020-07-15 21:30:37 +00:00
const chalk = require('chalk');
const copy = require('recursive-copy');
const del = require('del');
(async () => {
try {
// Create the docs distribution
console.log(chalk.cyan('Creating docs distribution 📚\n'));
await del('./docs/dist');
await copy('./dist', './docs/dist');
2020-08-18 21:39:01 +00:00
await copy('./themes', './docs/themes', { overwrite: true });
2020-07-15 21:30:37 +00:00
} catch (err) {
console.error(err);
}
})();