bm-codemod
v1.1.29
Published
yarn build && git add . && git commit -m "fix: recomendações bm-components 2.5.0" && npm version patch && git push --follow-tags
Readme
fazer push:
yarn build && git add . && git commit -m "fix: recomendações bm-components 2.5.0" && npm version patch && git push --follow-tags
bm-codemod
- com lib: ts-morph
- chalk = Pure ESM
- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
possibilidade de chechar o código, mandar erro de build se tiver console.log
--- detalhes até no telegram? --- o projeto tal, no arquivo tal, possui console.log... --- enviar num endpoint a informação, depois tratar ela de enviar no telegram
Testar em ambiente Dev:
- yarn build && yarn dryrunLocal
- yarn build && node ./dist/cli.js --dry-run
- yarn build && node ./dist/cli.js check-api-routes C:/_react/rendall/rendall-main
- yarn build && node ./dist/cli.js check-api-routes-withAuth c:/_react/ROCHA/geopi
- yarn build && node ./dist/cli.js check-api-routes-withAuth C:/_react/BRADO/brado-planejamento
- node ./dist/cli.js C:/_react/rendall/rendall-main/src/pages/api --dry-run
- node ./dist/cli.js http-handler C:/_react/rendall/rendall-main/src/pages/api/controle-acesso-usuarios/index.api.ts --dry-run --verbose
- dry-run: node bin/cli.js ./src --dry-run
- start: node bin/cli.js ./src
- node ./dist/cli.js C:/_react/rendall/rendall-main/
depois de publicado:
npx bm-codemod --help
npx bm-codemod --dry-run
npx bm-codemod C:/_react/rendall/rendall-main/src --dry-run
npx bm-codemod ./src --dry-run
npx bm-codemod console-log
npx bm-codemod http-handler
npx bm-codemod http-handler C:/_react/rendall/rendall-main/src/pages/api/users/groups.api.ts --dry-run
npx bm-codemod http-handler C:/_react/rendall/rendall-main/src/pages/api/controle-acesso-usuarios/index.api.ts --dry-run --verbose
npx bm-codemod http-handler --dry-run
npx bm-codemod parseIntToNumber
npx bm-codemod parseIntToNumber --dry-run
npx bm-codemod parseIntToNumber C:/_react/rendall/rendall-main/src --dry-run
npx bm-codemod check-api-routes
npx bm-codemod check-api-routes-withAuth
git tag v1.1.6 git push origin v1.1.6
yarn build && git add . && git commit -m"fix: verifica package.json 2" && git tag v1.1.7 && git push origin v1.1.7
npm version patch npm version minor npm version major
