diff --git a/.dev/templates/readme.mjs b/.dev/templates/readme.mjs index 6559ab8..1ba012e 100644 --- a/.dev/templates/readme.mjs +++ b/.dev/templates/readme.mjs @@ -82,7 +82,7 @@ const index = pkg => { return ` - [Documentation](${pkg.data.homepage}) - πŸ“™ [Library](${joinUrl( pkg.data.homepage, pkg.data.extra.docsPath.core )}) - - 🏁 [Create]( ${joinUrl( pkg.data.homepage, pkg.data.extra.docsPath.create )} ) + - 🏁 [Create (setup)]( ${joinUrl( pkg.data.homepage, pkg.data.extra.docsPath.create )} ) - πŸ–₯️ [Server]( ${joinUrl( pkg.data.homepage, pkg.data.extra.docsPath.server )} ) - πŸ“¦ [Builder]( ${joinUrl( pkg.data.homepage, pkg.data.extra.docsPath.builder )} ) - [Installation](${joinUrl( pkg.data.homepage, pkg.data.extra.docsPath.core, '#installation' )})` diff --git a/README.md b/README.md index fcd4f5b..6229790 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/docs/guide/create/index.md b/docs/guide/create/index.md index c3b46b7..3d610a6 100644 --- a/docs/guide/create/index.md +++ b/docs/guide/create/index.md @@ -49,7 +49,6 @@ export type CreateParams = { name?: string /** * The template to use for the project. - * Can be either 'demo' for a demonstration project or 'skeleton' for a basic setup. * * @default demo */ diff --git a/packages/_config/README.md b/packages/_config/README.md index 3e9ae3d..70f25df 100644 --- a/packages/_config/README.md +++ b/packages/_config/README.md @@ -26,7 +26,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/packages/_config/src/core/process.mjs b/packages/_config/src/core/process.mjs index 3740a8a..f80f582 100644 --- a/packages/_config/src/core/process.mjs +++ b/packages/_config/src/core/process.mjs @@ -7,8 +7,6 @@ export const isDev = () => process.env.NODE_ENV !== 'production' export const prompt = inquirer.prompt export const exec = async cmd => { - - // console.log( `🐒 CMD: ${cmd}` ) await new Promise( ( resolve, reject ) => { @@ -17,17 +15,11 @@ export const exec = async cmd => { stdio : 'inherit', } ) - // Manejar eventos del proceso hijo childProcess.on( 'close', code => { - if ( code === 0 ) { - - // El proceso hijo terminΓ³ con Γ©xito - resolve() - - } else { + if ( code === 0 ) resolve() + else { - // El proceso hijo fallΓ³ const error = new Error( `Command failed with code ${code}` ) console.error( error ) reject( error ) diff --git a/packages/backan/README.md b/packages/backan/README.md index 675614a..fea6f7d 100644 --- a/packages/backan/README.md +++ b/packages/backan/README.md @@ -27,7 +27,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/packages/builder/README.md b/packages/builder/README.md index c6378f4..080be24 100644 --- a/packages/builder/README.md +++ b/packages/builder/README.md @@ -1,5 +1,7 @@ # Backan - Builder +Compile your `backan` server into multiple __binaries__, available for each _platform_ and _architecture_. + [![HEADER](https://raw.githubusercontent.com/pigeonposse/backan/main/docs/public/banner.png)](https://backan.pigeonposse.com/) @@ -26,7 +28,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/packages/core/README.md b/packages/core/README.md index 864d123..6b97251 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -29,7 +29,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/packages/create/README.md b/packages/create/README.md index 895eaf1..a8ebe65 100644 --- a/packages/create/README.md +++ b/packages/create/README.md @@ -26,7 +26,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/packages/create/src/types.ts b/packages/create/src/types.ts index b136646..077a695 100644 --- a/packages/create/src/types.ts +++ b/packages/create/src/types.ts @@ -18,7 +18,6 @@ export type CreateParams = { name?: string /** * The template to use for the project. - * Can be either 'demo' for a demonstration project or 'skeleton' for a basic setup. * * @default demo */ diff --git a/packages/docs/README.md b/packages/docs/README.md index e207ce7..d0d21e8 100644 --- a/packages/docs/README.md +++ b/packages/docs/README.md @@ -26,7 +26,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation) diff --git a/packages/server/README.md b/packages/server/README.md index c325a52..3f5f74b 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -1,5 +1,7 @@ # BACKAN - Server +Build the `backan` server with zero config. + [![HEADER](https://raw.githubusercontent.com/pigeonposse/backan/main/docs/public/banner.png)](https://backan.pigeonposse.com/) @@ -26,7 +28,7 @@ Create endpoints with type validations and OpenApi documentation, safely and qui - [Documentation](https://backan.pigeonposse.com/) - πŸ“™ [Library](https://backan.pigeonposse.com/guide/core) - - 🏁 [Create]( https://backan.pigeonposse.com/guide/create ) + - 🏁 [Create (setup)]( https://backan.pigeonposse.com/guide/create ) - πŸ–₯️ [Server]( https://backan.pigeonposse.com/guide/server ) - πŸ“¦ [Builder]( https://backan.pigeonposse.com/guide/builder ) - [Installation](https://backan.pigeonposse.com/guide/core/#installation)