Rename source folders
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good

This commit is contained in:
Roman Jaroš 2023-10-24 20:43:21 +02:00
parent 2398a7c8c9
commit da23b80647
23 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ const contextDir = `${argv._[0]}/` ?? defaultContextDir;
// create app folder // create app folder
const appsDir = `${contextDir}/apps`; const appsDir = `${contextDir}/apps`;
const uiDir = `${contextDir}/apps/${appName}-ui`; const uiDir = `${contextDir}/apps/${appName}-ui`;
const apiDir = `${contextDir}/apps/${appName}-api`; const apiDir = `${contextDir}/apps/${appName}-rest`;
// prepare structure folders // prepare structure folders
if (!fs.existsSync(uiDir)) { if (!fs.existsSync(uiDir)) {
@ -30,7 +30,7 @@ if (!fs.existsSync(uiDir)) {
// copy folder content // copy folder content
try { try {
fs.cpSync(`${rootDir}/source/__/`, contextDir, { fs.cpSync(`${rootDir}/source/common/`, contextDir, {
force: true, force: true,
recursive: true, recursive: true,
}); });
@ -38,7 +38,7 @@ try {
force: true, force: true,
recursive: true, recursive: true,
}); });
fs.cpSync(`${rootDir}/source/api/`, apiDir, { fs.cpSync(`${rootDir}/source/rest/`, apiDir, {
force: true, force: true,
recursive: true, recursive: true,
}); });

View file

@ -1,5 +1,5 @@
{ {
"name": "$(appName)-api", "name": "$(appName)-rest",
"version": "0.1.0", "version": "0.1.0",
"description": "", "description": "",
"author": "Roman Jaroš <hello@romanjaros.dev>", "author": "Roman Jaroš <hello@romanjaros.dev>",