graylog logs with @odg/logs




!Repository size



- ๐ Benefits
- ๐ Libraries
- ๐ Dependencies
- โฉ Get Started
- ๐ Use Template
- ๐ Configure Github Secrets
- ๐ Create Github Token
- ๐ Code Coverage
- ๐ฆ Create NPM Token
- ๐ Create project Environment
- ๐ป Prepare to develop
- ๐ Start Project
- ๐จ Build and Run
- ๐งช Teste Code
---
- ๐ Speed start new project or package using typescript
- ๐จ Over 800 rules for pattern, possible errors and errors in Linter
- ๐ Code quality guaranteed
- ๐ข AutoReview when opening a pull-request/merge
!AutoReview Comment example
- ๐งช Automatic Test when opening pull-request/merge
- ๐ Automatic Code Coverage when opening pull-request/merge
!Code Coverage example
- ๐ฆ Automatic Package and release generate on merge
- ๐ช Run Lint/Test command pre-commit execute
- Node.js 18
- Typescript
- Eslint
- ODG-Linter-JS
- EditorConfig
- ReviewDog
- Node.js 18 or later
- Yarn Optional/Recommended
- ODG TsConfig Last Version
---
Click in use this template button and clone your template project
#### ๐ Create Github Token
Before create new GITHUB_TOKEN in
-
#### ๐ Code Coverage
Add Code Coverage support in your project
1. Install CodeCov in your account
2. Enter In
3. Click setup repo
4. Copy CODECOV_TOKEN and create a secret called CODECOV_TOKEN
#### ๐ฆ Create NPM Token
if you want to generate packages create a secret called IS_PACKAGE = true AND create new NPM_TOKEN in
-
#### ๐ Create project Environment
- On GitHub.com, navigate to the main page of the repository.
- Under your repository name, click โ๏ธ Settings.
!Github Setting images example
- In the "Security" section of the sidebar, select โณ๏ธ Secrets, then click Actions.
- Click New repository secret.
- Type a name with: GH_TOKEN
- Enter with your access secret token ghp_Dsfde....
- Click Add secret.
- If you are going to publish package:
- secrets:
- create NPM_TOKEN = npm_szxw......
- create CODECOV_TOKEN = 00000000-0000-0000-0000-000000000000
- variables:
- create IS_PACKAGE = true
Copy .env.example to .env and add the values according to your needs.
First install dependencies with the following command
``bash`
yarn installor
npm install
To build the project, you can use the following command
> if you change files, you need to run yarn build and yarn start again
`bash`
yarn build && yarn startor
yarn dev
To Test execute this command
`bash``
yarn testor
yarn test:watch