Skip to content

Commit

Permalink
✨ feat(all): add feats and fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ángel Albiñana Espejo authored and Ángel Albiñana Espejo committed Aug 22, 2024
1 parent 929afcb commit df6dd8b
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .dev/templates/readme.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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' )})`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion docs/guide/create/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 2 additions & 10 deletions packages/_config/src/core/process.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) => {

Expand All @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion packages/backan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion packages/builder/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Backan - Builder

Compile your `backan` server into multiple __binaries__, available for each _platform_ and _architecture_.

<!-- PIGEONPOSSE START HEADER -->

[![HEADER](https://raw.githubusercontent.com/pigeonposse/backan/main/docs/public/banner.png)](https://backan.pigeonposse.com/)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion packages/create/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion packages/server/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# BACKAN - Server

Build the `backan` server with zero config.

<!-- PIGEONPOSSE START HEADER -->

[![HEADER](https://raw.githubusercontent.com/pigeonposse/backan/main/docs/public/banner.png)](https://backan.pigeonposse.com/)
Expand All @@ -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)
Expand Down

0 comments on commit df6dd8b

Please sign in to comment.