diff --git a/create.js b/create.js index b8b5cd2..b8b6b03 100644 --- a/create.js +++ b/create.js @@ -14,6 +14,8 @@ const contextDir = `${argv._[0]}/` ?? './'; // create app folder const appsDir = `${contextDir}/apps`; const appDir = isMonorepo ? `${contextDir}/apps/${appName}-fe` : `${contextDir}/`; + +// prepare structure folders if (!fs.existsSync(appDir)) { if (!fs.existsSync(contextDir)) { fs.mkdirSync(contextDir); @@ -25,6 +27,11 @@ if (!fs.existsSync(appDir)) { fs.mkdirSync(`${appDir}/src`); } +// rename internal files +fs.renameSync(`${rootDir}/source/shared/npmrc`, `${rootDir}/source/shared/.npmrc`); +fs.renameSync(`${rootDir}/source/shared/gitignore`, `${rootDir}/source/shared/.gitignore`); +fs.renameSync(`${rootDir}/source/shared/prettierrc`, `${rootDir}/source/shared/.prettierrc`); + // copy folder content try { fs.cpSync(`${rootDir}/source/shared/`, contextDir, { diff --git a/source/shared/.gitignore b/source/shared/gitignore similarity index 100% rename from source/shared/.gitignore rename to source/shared/gitignore diff --git a/source/shared/.npmrc b/source/shared/npmrc similarity index 100% rename from source/shared/.npmrc rename to source/shared/npmrc diff --git a/source/shared/package.json b/source/shared/package.json index 9d80cee..04388fd 100644 --- a/source/shared/package.json +++ b/source/shared/package.json @@ -7,8 +7,6 @@ "dev": "pnpm -r dev" }, "dependencies": {}, - "devDependencies": { - "@types/node": "18.11.9" - }, + "devDependencies": {}, "peerDependencies": {} } \ No newline at end of file diff --git a/source/shared/.prettierrc b/source/shared/prettierrc similarity index 100% rename from source/shared/.prettierrc rename to source/shared/prettierrc