diff --git a/.github/ISSUE_TEMPLATE/1-bug-report.md b/.github/ISSUE_TEMPLATE/1-bug-report.md new file mode 100644 index 0000000..2018cb7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1-bug-report.md @@ -0,0 +1,28 @@ +--- +name: '🐞 Bug report' +about: Something is not working as it should +--- + +#### Bug description + +... + +#### What is actually happening? + +... + +#### What do you expect to happen? + +... + +#### Code to reproduce + +```js + +``` + +#### Checklist + +- [ ] I'm willing to submit a pull request +- [ ] I have read the documentation. +- [ ] I have tried my code with the latest version of npm and [reacti18n](https://github.com/fzn0x/reacti18n). diff --git a/.github/ISSUE_TEMPLATE/2-feature-request.md b/.github/ISSUE_TEMPLATE/2-feature-request.md new file mode 100644 index 0000000..a3fa294 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2-feature-request.md @@ -0,0 +1,21 @@ +--- +name: '⭐ Feature request' +about: Suggest a feature for reacti18n +--- + +#### What feature are you want to add? + +... + +#### Why this feature is important? + +... + +#### Describe the feature + +... + +#### Checklist + +- [ ] I'm willing to submit a pull request +- [ ] I have read the documentation and made sure this feature doesn't already exist. diff --git a/.github/ISSUE_TEMPLATE/3-question.md b/.github/ISSUE_TEMPLATE/3-question.md new file mode 100644 index 0000000..60fcd8d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/3-question.md @@ -0,0 +1,12 @@ +--- +name: '❓ Question' +about: Something is unclear or needs to be discussed +--- + +#### What would you like to ask? + +... + +#### Checklist + +- [ ] I have read the documentation. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..0b08584 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,5 @@ +Before making a pull request, I already + +- [ ] Communicate the issue by making an issue in this repository. +- [ ] Include tests. +- [ ] Add a new documentation for my new feature. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..27ac87a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: ci +on: + push: + branches: [main] + pull_request: + branches: ['*'] + paths-ignore: + - 'docs/**' + - '.vscode/**' + - 'README.md' + - '.gitignore' + - 'LICENSE' +jobs: + main: + name: 'Main' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + - uses: oven-sh/setup-bun@v1 + with: + bun-version: '1.0.25' + - run: bun install + - run: bun run format + - run: bun run lint + - run: bun run build + - run: bun run test + + jsr-dry-run: + name: "Checking if it's valid for JSR" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + - run: deno publish --dry-run diff --git a/package.json b/package.json index e0c0d9b..2033e2a 100644 --- a/package.json +++ b/package.json @@ -71,5 +71,16 @@ "license": "MIT", "publishConfig": { "registry": "https://registry.npmjs.org" - } + }, + "keywords": [ + "react", + "i18n", + "internationalization", + "localization", + "react-i18n", + "translations", + "multi-language", + "react-library", + "typescript" + ] }