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: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# style: format codebase with oxfmt
82bd1fd952c92a2076eafa9a6d12cbef4768421f
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:
- package-ecosystem: 'bun'
directories:
- '/'
- '/packages/tron-lib'
schedule:
interval: 'monthly'
open-pull-requests-limit: 5
groups:
bun-minor-patch:
update-types: ['minor', 'patch']

- package-ecosystem: 'github-actions'
directories:
- '/'
- '/.github/actions/bun-install'
schedule:
interval: 'monthly'
open-pull-requests-limit: 5
groups:
github-actions-minor-patch:
update-types: ['minor', 'patch']
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# CI
# - Runs lint, format check and build on pull requests
# - Triggers: pull_request

name: CI

on:
pull_request:

permissions:
contents: read # required to checkout the repository

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: Lint, format & build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install dependencies
uses: ./.github/actions/bun-install
- name: Lint
run: bun run lint
- name: Check formatting
run: bun run format:check
- name: Build
run: bun run build
8 changes: 8 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 80,
"ignorePatterns": ["**/dist/**", "bun.lock"]
}
8 changes: 8 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import"],
"categories": {
"correctness": "error"
},
"ignorePatterns": ["**/dist/**"]
}
84 changes: 84 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
"build": "bun run --filter @lifi/tron-devkit build",
"release": "bumpp packages/tron-lib/package.json --tag 'v%s' --commit 'chore: release v%s' --no-push",
"release:beta": "bumpp packages/tron-lib/package.json --preid beta --tag 'v%s' --commit 'chore: release v%s' --no-push",
"release:alpha": "bumpp packages/tron-lib/package.json --preid alpha --tag 'v%s' --commit 'chore: release v%s' --no-push"
"release:alpha": "bumpp packages/tron-lib/package.json --preid alpha --tag 'v%s' --commit 'chore: release v%s' --no-push",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"format": "oxfmt",
"format:check": "oxfmt --check"
},
"devDependencies": {
"@lifi/tron-devkit": "workspace:*",
"bumpp": "^12.3.0"
"bumpp": "^12.3.0",
"oxfmt": "0.75.0",
"oxlint": "1.90.0"
}
}
Loading
Loading