This commit is contained in:
Leifer Mendez
2022-11-18 18:35:49 +01:00
parent 76968ded02
commit 0f5efa9852
10 changed files with 73 additions and 54 deletions

View File

@@ -1,16 +1,14 @@
module.exports = { module.exports = {
"env": { env: {
"browser": true, browser: true,
"commonjs": true, commonjs: true,
"es2021": true, es2021: true,
"node": true node: true,
}, },
"extends": "eslint:recommended", extends: 'eslint:recommended',
"overrides": [ overrides: [],
], parserOptions: {
"parserOptions": { ecmaVersion: 'latest',
"ecmaVersion": "latest"
}, },
"rules": { rules: {},
}
} }

4
.husky/pre-commit Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn run format:check && yarn run format:write

4
.husky/pre-push Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn run lint:check && yarn run lint:fix

8
.prettierignore Normal file
View File

@@ -0,0 +1,8 @@
packages/**/lib
**/.git
**/.svn
**/.hg
**/node_modules
*.mjs
*.cjs
*.md

4
.vscode/launch.json vendored
View File

@@ -8,9 +8,7 @@
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Iniciar el programa", "name": "Iniciar el programa",
"skipFiles": [ "skipFiles": ["<node_internals>/**"],
"<node_internals>/**"
],
"program": "${workspaceFolder}\\example-app\\app.js" "program": "${workspaceFolder}\\example-app\\app.js"
} }
] ]

View File

@@ -1,4 +1,5 @@
#### Actualización 14 Ene 2022 #### Actualización 14 Ene 2022
- npm update - npm update
- remove ora and chalk - remove ora and chalk
- add env - add env

View File

@@ -6,7 +6,7 @@ services:
container_name: app_enviroment container_name: app_enviroment
restart: always restart: always
ports: ports:
- "27019:27017" - '27019:27017'
environment: environment:
MONGO_INITDB_DATABASE: bot MONGO_INITDB_DATABASE: bot
expose: expose:
@@ -20,6 +20,6 @@ services:
MYSQL_DATABASE: bot MYSQL_DATABASE: bot
container_name: app_mysql container_name: app_mysql
ports: ports:
- "3306:3306" - '3306:3306'
expose: expose:
- 3306 - 3306

View File

@@ -21,7 +21,8 @@
"test": "npm run test.unit && npm run test.e2e", "test": "npm run test.unit && npm run test.e2e",
"cli": "node ./packages/cli/bin/cli.js", "cli": "node ./packages/cli/bin/cli.js",
"dev:debug": "node --inspect ./example-app/app.js", "dev:debug": "node --inspect ./example-app/app.js",
"dev": "node ./example-app/app.js" "dev": "node ./example-app/app.js",
"prepare": "husky install"
}, },
"workspaces": [ "workspaces": [
"packages/*", "packages/*",
@@ -46,7 +47,6 @@
], ],
"repository": "https://github.com/leifermendez/bot-whatsapp", "repository": "https://github.com/leifermendez/bot-whatsapp",
"license": "ISC", "license": "ISC",
"dependencies": {},
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^23.0.2", "@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-json": "^5.0.1", "@rollup/plugin-json": "^5.0.1",
@@ -62,7 +62,8 @@
"rollup": "^3.2.3", "rollup": "^3.2.3",
"rollup-plugin-cleanup": "^3.2.1", "rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-copy": "^3.4.0", "rollup-plugin-copy": "^3.4.0",
"uvu": "^0.5.6" "uvu": "^0.5.6",
"husky": "^8.0.2"
}, },
"packageManager": "yarn@3.2.0", "packageManager": "yarn@3.2.0",
"engines": { "engines": {

View File

@@ -1516,6 +1516,11 @@ human-signals@^2.1.0:
resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
husky@^8.0.2:
version "8.0.2"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.2.tgz#5816a60db02650f1f22c8b69b928fd6bcd77a236"
integrity sha512-Tkv80jtvbnkK3mYWxPZePGFpQ/tT3HNSs/sasF9P2YfkMezDl3ON37YN6jUUI4eTg5LcyVynlb6r4eyvOmspvg==
ieee754@^1.1.13: ieee754@^1.1.13:
version "1.2.1" version "1.2.1"
resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"