Начальная структура директорий, каркас проекта

This commit is contained in:
Book Pauk
2022-08-15 18:38:31 +07:00
parent 5739fef2b7
commit c3a0ce183e
19 changed files with 16271 additions and 0 deletions

15
build/linux.js Normal file
View File

@@ -0,0 +1,15 @@
const fs = require('fs-extra');
const path = require('path');
const distDir = path.resolve(__dirname, '../dist');
const publicDir = `${distDir}/tmp/public`;
const outDir = `${distDir}/linux`;
async function main() {
await fs.emptyDir(outDir);
// перемещаем public на место
if (await fs.pathExists(publicDir))
await fs.move(publicDir, `${outDir}/public`);
}
main();