fix(cli): 🔥 create script - templates

This commit is contained in:
Leifer Mendez
2022-12-10 21:17:29 +01:00
parent 1036273a28
commit eebc3c9806
29 changed files with 417 additions and 61 deletions

View File

@@ -12,9 +12,13 @@ const copyFiles = async (from, to) => {
}
}
const copyBaseApp = async () => {
const BASEP_APP_PATH_FROM = `${process.cwd()}/starters/apps/base`
const BASEP_APP_PATH_TO = `${process.cwd()}/example-app-base`
/**
* Copiar directorio con archivos
* @param {*} templateName
*/
const copyBaseApp = async (templateName = null) => {
const BASEP_APP_PATH_FROM = `${process.cwd()}/starters/apps/${templateName}`
const BASEP_APP_PATH_TO = `${process.cwd()}/${templateName}`
await copyFiles(BASEP_APP_PATH_FROM, BASEP_APP_PATH_TO)
}