mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
Merge pull request #126 from leifermendez/feature/monorepo
Feature/monorepo
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,6 +14,7 @@ mediaSend/*
|
||||
.wwebjs_auth
|
||||
packages/cli/config.json
|
||||
config.json
|
||||
.yarnrc.yml
|
||||
coverage/
|
||||
*.lcov
|
||||
log
|
||||
|
||||
0
.husky/commit-msg
Normal file → Executable file
0
.husky/commit-msg
Normal file → Executable file
0
.husky/pre-commit
Normal file → Executable file
0
.husky/pre-commit
Normal file → Executable file
0
.husky/pre-push
Normal file → Executable file
0
.husky/pre-push
Normal file → Executable file
@@ -1 +1,3 @@
|
||||
yarnPath: .yarn/releases/yarn-3.3.0.cjs
|
||||
nodeLinker: node-modules
|
||||
npmPublishRegistry: "https://registry.npmjs.org"
|
||||
yarnPath: .yarn/releases/yarn-3.3.0.cjs
|
||||
55
CONTRIBUTING.md
Normal file
55
CONTRIBUTING.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# CONTRIBUTING
|
||||
|
||||
- Node v16 o superior __[descargar node](https://nodejs.org/es/download/)__
|
||||
- Necesitas __[yarn](https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable)__ como gestor de paquetes. En el link conseguiras las intrucciones para instalar yarn.
|
||||
- Se usara la rama __dev__ *(https://github.com/leifermendez/bot-whatsapp/tree/dev)* como rama principal hasta que se haga oficialmente el lanzamiento de la V2
|
||||
|
||||
>💡 Se usa la version 3.3.0 o superior de Yarn para establecer esta version simplemente ejecuta el siguiente comando: `yarn set version 3.3.0`
|
||||
|
||||
__Clonar repo rama dev__
|
||||
```
|
||||
git clone --branch dev https://github.com/leifermendez/bot-whatsapp
|
||||
```
|
||||
__Instalar dependencias__
|
||||
```
|
||||
cd bot-whatsapp
|
||||
yarn set version 3.3.0
|
||||
yarn install
|
||||
```
|
||||
> __ATENCIÓN__ Si esta estas en ubuntu/linux ejecutar lo siguiente comandos adicionales.
|
||||
|
||||
```sheell
|
||||
npx husky install
|
||||
chmod ug+x .husky/*
|
||||
```
|
||||
|
||||
__Commit y Push__
|
||||
El proyecto tiene implementado __[husky](https://typicode.github.io/husky/#/)__ es una herramienta que dispara unas acciones al momento de hacer commit y hacer push
|
||||
|
||||
__commit:__ Los commit son semanticos esto quiere decir que deben cumplir un standar al momento de escribirlos ejemplo ` feat(adapter): new adapter myqsl ` puede ver más info sobre esto __[aquí](https://github.com/conventional-changelog/commitlint/#what-is-commitlint)__
|
||||
|
||||
|
||||
__Compilar (build)__
|
||||
Para compilar la aplicación es necesario ejecutar, eso te genera dentro de packages del monorepo un directorio `lib`
|
||||
|
||||
```
|
||||
yarn build
|
||||
```
|
||||
Luego de ejecutar el comando conseguiras algo como lo siguiente. Esas carpetas lib NO se suben al repo estan ignoradas.
|
||||
```
|
||||
packages/bot/lib
|
||||
packages/cli/lib
|
||||
packages/database/lib
|
||||
packages/provider/lib
|
||||
```
|
||||
__Example-app__
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
------
|
||||
- [Discord](https://link.codigoencasa.com/DISCORD)
|
||||
- [Twitter](https://twitter.com/leifermendez)
|
||||
- [Youtube](https://www.youtube.com/watch?v=5lEMCeWEJ8o&list=PL_WGMLcL4jzWPhdhcUyhbFU6bC0oJd2BR)
|
||||
- [Telegram](https://t.me/leifermendez)
|
||||
1
TODO.md
1
TODO.md
@@ -29,3 +29,4 @@
|
||||
- [ ] Meta adapter
|
||||
|
||||
### @bot-whatsapp/cli
|
||||
- [ ] Hacer comando para crear `example-app`
|
||||
@@ -81,7 +81,7 @@
|
||||
"engines": {
|
||||
"node": ">=16",
|
||||
"npm": "please-use-yarn",
|
||||
"yarn": ">=1"
|
||||
"yarn": ">=3"
|
||||
},
|
||||
"author": "Leifer Mendez <leifer33@gmail.com>",
|
||||
"config": {
|
||||
|
||||
0
packages/cli/bin/cli.js
Normal file → Executable file
0
packages/cli/bin/cli.js
Normal file → Executable file
8944
yarn-error.log
Normal file
8944
yarn-error.log
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user