Skip to content

Commit

Permalink
Add linting and CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 6, 2025
1 parent 0ba1310 commit 7872836
Show file tree
Hide file tree
Showing 13 changed files with 1,401 additions and 986 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v1
- run: make build

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: oven-sh/setup-bun@v1
- run: make lint
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,19 @@ prepack: clean test
.PHONY: deploy
deploy: clean build-site
bunx @cubing/deploy

.PHONY: test
test:
lint

.PHONY: lint
lint:
bun x @biomejs/biome check

.PHONY: format
format:
bun x @biomejs/biome check --write

.PHONY: publish
publish:
npm publish
10 changes: 10 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": ["./dist", "./package.json"]
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2
}
}
Loading

0 comments on commit 7872836

Please sign in to comment.