Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/build.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Build
about: Got a build system problem? Let’s fix it!
title: ''
title: ""
labels: build
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/chore.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Chore
about: General upkeep time!
title: ''
title: ""
labels: chore
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ci.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: CI
about: Continuous Integration to the rescue!
title: ''
title: ""
labels: ci
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Documentation
about: Help us improve our docs!
title: ''
title: ""
labels: documentation
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Feature
about: Suggest something awesome for this project!
title: ''
title: ""
labels: feature
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/fix.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Fix
about: Found something broken? Let's fix it!
title: ''
title: ""
labels: fix
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/performance.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Performance
about: Speed it up!
title: ''
title: ""
labels: performance
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/refactor.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Refactor
about: Time to clean up the code!
title: ''
title: ""
labels: refactor
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/style.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Style
about: Let's make it look prettier!
title: ''
title: ""
labels: style
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Tests
about: Let’s add or fix some tests!
title: ''
title: ""
labels: tests
---

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ Please fill out the details below to submit your pull request.
## Solution:

- **Describe the solution:**
- Briefly explain what you've done and how it addresses the issue.
- Briefly explain what you've done and how it addresses the issue.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build

on:
workflow_call:

jobs:
cli:
name: CLI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
name: Checkout Code

- uses: pnpm/action-setup@v6
name: Install pnpm

with:
version: 10

- uses: actions/setup-node@v6
name: Setup Node.js

with:
node-version: 24
cache: pnpm

- run: pnpm install
name: Install Dependencies

- run: pnpm build
name: Build Package

- run: node dist/index.js --help
name: Test CLI Help

- run: node dist/index.js --version
name: Test CLI Version
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy

on:
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
npm:
name: npm
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
name: Checkout Code

- uses: pnpm/action-setup@v6
name: Install pnpm

with:
version: 10

- uses: actions/setup-node@v6
name: Setup Node.js

with:
node-version: 24
cache: pnpm
registry-url: https://registry.npmjs.org

- run: pnpm install
name: Install Dependencies

- run: pnpm build
name: Build Package

- run: npm publish --access public
name: Publish to npm

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Main

on:
workflow_dispatch:

push:
branches: [main]

pull_request:
branches: [main]

jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml

build:
name: Build
needs: verify
uses: ./.github/workflows/build.yml

test:
name: Test
needs: build
uses: ./.github/workflows/test.yml
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
workflow_dispatch:

push:
tags: ["*"]

jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml

build:
name: Build
needs: verify
uses: ./.github/workflows/build.yml

test:
name: Test
needs: build
uses: ./.github/workflows/test.yml

deploy:
name: Deploy
needs: test
secrets: inherit
uses: ./.github/workflows/deploy.yml
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on:
workflow_call:

jobs:
cli:
name: CLI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
name: Checkout Code

- uses: pnpm/action-setup@v6
name: Install pnpm

with:
version: 10

- uses: actions/setup-node@v6
name: Setup Node.js

with:
node-version: 24
cache: pnpm

- run: pnpm install
name: Install Dependencies

- run: pnpm test -- --run
name: Run Tests
36 changes: 0 additions & 36 deletions .github/workflows/tests.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Verify

on:
workflow_call:

jobs:
cli:
name: CLI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
name: Checkout Code

- uses: pnpm/action-setup@v6
name: Install pnpm

with:
version: 10

- uses: actions/setup-node@v6
name: Setup Node.js

with:
node-version: 24
cache: pnpm

- run: pnpm install
name: Install Dependencies

- run: pnpm typecheck
name: Check Type Hints

- run: pnpm lint
name: Lint Code

- run: pnpm format:check
name: Check Formatting
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.env
coverage/
dist/
metadata/
node_modules/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
"trailingComma": "all",
"arrowParens": "always"
}
Loading