Rename source folders
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good
This commit is contained in:
parent
2398a7c8c9
commit
da23b80647
23 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ const contextDir = `${argv._[0]}/` ?? defaultContextDir;
|
|||
// create app folder
|
||||
const appsDir = `${contextDir}/apps`;
|
||||
const uiDir = `${contextDir}/apps/${appName}-ui`;
|
||||
const apiDir = `${contextDir}/apps/${appName}-api`;
|
||||
const apiDir = `${contextDir}/apps/${appName}-rest`;
|
||||
|
||||
// prepare structure folders
|
||||
if (!fs.existsSync(uiDir)) {
|
||||
|
@ -30,7 +30,7 @@ if (!fs.existsSync(uiDir)) {
|
|||
|
||||
// copy folder content
|
||||
try {
|
||||
fs.cpSync(`${rootDir}/source/__/`, contextDir, {
|
||||
fs.cpSync(`${rootDir}/source/common/`, contextDir, {
|
||||
force: true,
|
||||
recursive: true,
|
||||
});
|
||||
|
@ -38,7 +38,7 @@ try {
|
|||
force: true,
|
||||
recursive: true,
|
||||
});
|
||||
fs.cpSync(`${rootDir}/source/api/`, apiDir, {
|
||||
fs.cpSync(`${rootDir}/source/rest/`, apiDir, {
|
||||
force: true,
|
||||
recursive: true,
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "$(appName)-api",
|
||||
"name": "$(appName)-rest",
|
||||
"version": "0.1.0",
|
||||
"description": "",
|
||||
"author": "Roman Jaroš <hello@romanjaros.dev>",
|
Loading…
Add table
Reference in a new issue