Skip to content

Commit

Permalink
🎉 Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NatoBoram committed Sep 17, 2024
1 parent 255db38 commit d5821cf
Show file tree
Hide file tree
Showing 19 changed files with 717 additions and 638 deletions.
23 changes: 0 additions & 23 deletions .dockerignore

This file was deleted.

Empty file removed .env
Empty file.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @NatoBoram
*.ts @coderabbitai/typescript-reviewers
5 changes: 0 additions & 5 deletions .github/FUNDING.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/authorized_keys
Original file line number Diff line number Diff line change
@@ -1 +1 @@
41898282+github-actions[bot]@users.noreply.github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE0nNJJzdXWCLFEqZd4BMgzbTfabG3Z2kamWwXOpRqBI 41898282+github-actions[bot]@users.noreply.github.com
41898282+github-actions[bot]@users.noreply.github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwlBXpWbU695PCyqzVdh+pmps81LzlZak63ODGmlo8P @coderabbitai/bitbucket
54 changes: 0 additions & 54 deletions .github/workflows/docker.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/pnpm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
- uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com
scope: "@natoboram"
scope: "@coderabbitai"
- run: pnpm publish --access public --no-git-checks --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org
scope: "@natoboram"
scope: "@coderabbitai"
- run: pnpm publish --access public --no-git-checks --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
Expand All @@ -50,8 +50,8 @@ jobs:
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.DEPLOY_KEY_PRIVATE }}'
echo '${{ vars.DEPLOY_KEY_PUBLIC }}' > '${{ runner.temp }}/DEPLOY_KEY_PUBLIC.pub'
ssh-keygen -Y sign -f '${{ runner.temp }}/DEPLOY_KEY_PUBLIC.pub' -n file natoboram-gigachad.ts-*.tgz
ssh-keygen -Y verify -f ./.github/authorized_keys -I '41898282+github-actions[bot]@users.noreply.github.com' -n file -s natoboram-gigachad.ts-*.tgz.sig < natoboram-gigachad.ts-*.tgz
- run: gh release upload ${{ github.ref_name }} natoboram-gigachad.ts-*.tgz natoboram-gigachad.ts-*.tgz.sig
ssh-keygen -Y sign -f '${{ runner.temp }}/DEPLOY_KEY_PUBLIC.pub' -n file coderabbitai-bitbucket-*.tgz
ssh-keygen -Y verify -f ./.github/authorized_keys -I '41898282+github-actions[bot]@users.noreply.github.com' -n file -s coderabbitai-bitbucket-*.tgz.sig < coderabbitai-bitbucket-*.tgz
- run: gh release upload ${{ github.ref_name }} coderabbitai-bitbucket-*.tgz coderabbitai-bitbucket-*.tgz.sig
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.copilot-chat",
"github.copilot",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"ms-azuretools.vscode-docker",
"ms-vscode.vscode-typescript-next",
"seatonjiang.gitmoji-vscode",
"vitest.explorer"
]
}
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
<https://github.com/NatoBoram/gigachad.ts>.
<https://github.com/coderabbitai/bitbucket>.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile

This file was deleted.

23 changes: 1 addition & 22 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2024 CodeRabbit
51 changes: 3 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,5 @@
# `gigachad.ts`
# `@coderabbitai/bitbucket`

[![Docker CI](https://github.com/NatoBoram/gigachad.ts/actions/workflows/docker.yaml/badge.svg)](https://github.com/NatoBoram/gigachad.ts/actions/workflows/docker.yaml) [![GitHub Pages](https://github.com/NatoBoram/gigachad.ts/actions/workflows/github-pages.yaml/badge.svg)](https://github.com/NatoBoram/gigachad.ts/actions/workflows/github-pages.yaml) [![Node.js CI](https://github.com/NatoBoram/gigachad.ts/actions/workflows/node.js.yaml/badge.svg)](https://github.com/NatoBoram/gigachad.ts/actions/workflows/node.js.yaml) [![Dependabot Updates](https://github.com/NatoBoram/gigachad.ts/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/NatoBoram/gigachad.ts/actions/workflows/dependabot/dependabot-updates)
[![Node.js CI](https://github.com/coderabbitai/bitbucket/actions/workflows/node.js.yaml/badge.svg)](https://github.com/coderabbitai/bitbucket/actions/workflows/node.js.yaml) [![Dependabot Updates](https://github.com/coderabbitai/bitbucket/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/coderabbitai/bitbucket/actions/workflows/dependabot/dependabot-updates) [![GitHub Pages](https://github.com/coderabbitai/bitbucket/actions/workflows/github-pages.yaml/badge.svg)](https://github.com/coderabbitai/bitbucket/actions/workflows/github-pages.yaml)

The most gigachad project setup for TypeScript.

<img
align="right"
alt="The most gigachad TypeScript programmer, writing high-quality well-tested code, big muscles, enjoyer, handsome face, digital painting, high resolution, ultra realistic, hands on keyboard"
src="https://github.com/NatoBoram/gigachad.ts/assets/10495562/b113f3ee-38cf-4014-9a2e-737a48bad2e0"
width="256"
/>

- Dependency updates with [Dependabot](https://github.com/dependabot/dependabot-core)
- Documentation with [TypeDoc](https://github.com/TypeStrong/typedoc)
- Enforce format-on-save in [VSCode](https://github.com/microsoft/vscode)
- Formatting with [Prettier](https://github.com/prettier/prettier)
- Lint code with [ESLint](https://github.com/eslint/eslint)
- Lint markdown with [markdownlint](https://github.com/DavidAnson/markdownlint)
- Package management with [pnpm](https://github.com/pnpm/pnpm)
- Publish it with a GitHub Workflow
- Run it with [tsx](https://github.com/privatenumber/tsx)
- Run your GitHub Actions locally with [`act`](https://github.com/nektos/act)
- Unit tests with [Vitest](https://github.com/vitest-dev/vitest)

## Publishing

This template offers a GitHub Workflow to help you automatically bump the version number, tag it, push it, and publish it to both NPM, the GitHub Package Registry and in GitHub Releases on the click of a button.

To make the `git push` work, you'll need to use a [Deploy Key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys#deploy-keys).

1. Genereate a SSH key with <https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key>

```sh
ssh-keygen -t ed25519 -C "@natoboram/gigachad.ts" -f new_ssh_key -N ""
```

2. Add the private key to your project's secrets at `/settings/secrets/actions/new` with the name `DEPLOY_KEY_PRIVATE`
3. Add the public key to your project's variables at `/settings/variables/actions/new` with the name `DEPLOY_KEY_PUBLIC`
4. Add the public key to your project's deploy keys at `/settings/keys`
5. Add the public key to `.github/authorized_keys` in the format of `41898282+github-actions[bot]@users.noreply.github.com <DEPLOY_KEY_PUBLIC>` while replacing `<DEPLOY_KEY_PUBLIC>` with your public key
6. Delete the key pair from your computer, never to be seen again

The `.github/authorized_keys` is used to sign and verify the signature of the build artefact that is sent to GitHub Releases. If you want to skip this step, you can remove it from `.github/workflows/pnpm-publish.yaml`.

To publish on NPM, you'll need to provide your NPM token.

1. Sign in to <https://www.npmjs.com>
2. Access Tokens / Generate New Token / Classic Token / Automation / Generate Token
3. Copy that token and save it in your project's secrets at `/settings/secrets/actions/new` with the name `NODE_AUTH_TOKEN`
CodeRabbit's TypeScript API client for connecting to Bitbucket Cloud and Bitbucker Data Center.
59 changes: 22 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,23 @@
{
"name": "@natoboram/gigachad.ts",
"name": "@coderabbitai/bitbucket",
"version": "0.0.0",
"description": "The most gigachad project setup for TypeScript.",
"description": "CodeRabbit's TypeScript API client for connecting to Bitbucket Cloud and Bitbucker Data Center",
"keywords": [
"dependabot",
"eslint",
"gigachad",
"markdownlint",
"prettier",
"project-template",
"typescript",
"vitest"
"bitbucker-cloud",
"bitbucket-data-center",
"bitbucket-server",
"bitbucket"
],
"homepage": "https://github.com/NatoBoram/gigachad.ts",
"homepage": "https://github.com/coderabbitai/bitbucket",
"bugs": {
"url": "https://github.com/NatoBoram/gigachad.ts/issues"
"url": "https://github.com/coderabbitai/bitbucket/issues"
},
"license": "Unlicense",
"license": "UNLICENSED",
"author": {
"name": "Nato Boram",
"url": "https://github.com/NatoBoram"
"name": "CodeRabbit",
"url": "https://coderabbit.ai",
"email": "support@coderabbit.ai"
},
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/NatoBoram"
},
{
"type": "individual",
"url": "https://paypal.me/NatoBoram/5"
}
],
"files": [
"dist",
"!dist/**/*.test.*"
Expand All @@ -39,15 +26,11 @@
"bin": {
"gigachad": "dist/main.js"
},
"repository": "github:NatoBoram/gigachad.ts",
"repository": "github:coderabbitai/bitbucket",
"scripts": {
"build": "tsc",
"clean": "rm -rf dist docs node_modules tsconfig.tsbuildinfo",
"dev": "tsx ./src/main.ts",
"docker": "pnpm run docker:build && pnpm run docker:run",
"docker:build": "docker build -t gigachad.ts .",
"docker:kill": "docker ps --format '{{.Image}} {{.ID}}' | grep gigachad.ts | awk '{print $2}' | xargs docker kill",
"docker:run": "docker run gigachad.ts",
"docs": "typedoc",
"format": "prettier --write .",
"lint": "eslint . && markdownlint-cli2 \"**/*.md\" && prettier --check .",
Expand All @@ -56,17 +39,19 @@
"test": "vitest"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"eslint": "^9.9.1",
"@eslint/js": "^9.10.0",
"@types/node": "^22.5.5",
"dotenv": "^16.4.5",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.9.0",
"markdownlint-cli2": "^0.13.0",
"markdownlint-cli2": "^0.14.0",
"prettier": "^3.3.3",
"tsx": "^4.19.0",
"typedoc": "^0.26.6",
"tsx": "^4.19.1",
"typedoc": "^0.26.7",
"typescript": "^5.5.4",
"typescript-eslint": "^8.3.0",
"vitest": "^2.0.5"
"typescript-eslint": "^8.6.0",
"vitest": "^2.1.1"
},
"type": "module",
"exports": {
Expand Down
Loading

0 comments on commit d5821cf

Please sign in to comment.