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
10 changes: 10 additions & 0 deletions .changeset/auto-changeset-swarm-wasp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@ingenyus/swarm-wasp": major
---

- feat!: initialise Wasp 0.24 compatibility ([b3e8bb9](https://github.com/Genyus/swarm/commit/b3e8bb9b3bd9cd34f2ff3629246953524632735f))
- feat!: implement core Wasp 0.24 updates ([2f3b5f2](https://github.com/Genyus/swarm/commit/2f3b5f2132805488629b9a1eb225e224920bbbad))
- feat!: update templates and generators ([53daa42](https://github.com/Genyus/swarm/commit/53daa420ac894b6911e14144ff8b9dd8fa83f3d5))
- feat!: update project scaffolding ([dfbf304](https://github.com/Genyus/swarm/commit/dfbf304f803d227eec2e13795c62bfc8992e9427))

<!-- Authors: Genyus<genyus@gmail.com> -->
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@ jobs:

strategy:
matrix:
node-version: [20, 22, 24]
node-version: [22, 24, 26]

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
Expand Down Expand Up @@ -84,18 +84,18 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

10 changes: 5 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Swarm is a set of code generation tools for rapid Typescript application develop
### Key Scripts
- `pnpm build` - Build all packages
- `pnpm dev` - Watch mode for development
- `pnpm lint` - Run ESLint
- `pnpm lint:fix` - Fix linting issues automatically
- `pnpm lint` - Run Biome lint + format checks
- `pnpm lint:fix` - Fix linting/formatting issues automatically
- `pnpm typecheck` - Run TypeScript type checking
- `pnpm format` - Apply Prettier formatting
- `pnpm format:check` - Check Prettier formatting
- `pnpm format` - Apply Biome formatting
- `pnpm format:check` - Check Biome formatting

## Testing

Expand Down Expand Up @@ -81,7 +81,7 @@ Swarm is a set of code generation tools for rapid Typescript application develop

### Key Dependencies
- **Vite** - Build tool and dev server
- **ESLint** - Linting
- **Biome** - Linting and formatting
- **TypeScript** - Type checking

### Development Tools
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Thank you for your interest in contributing to Swarm! This document outlines bes
---

## Code Style
- Use [Prettier](https://prettier.io/) and [ESLint](https://eslint.org/) for formatting and linting.
- Use [Biome](https://biomejs.dev/) for formatting and linting.
- Prefer single responsibility per file/module.
- Use descriptive variable and function names.
- Write JSDoc comments for all exported functions and types.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To integrate Swarm components into your own projects or to extend the framework,
## Scripts & Tooling

- **Monorepo management:** [pnpm](https://pnpm.io/) (`pnpm-workspace.yaml`)
- **Code style and linting:** [ESLint](https://eslint.org), [Prettier](https://prettier.io), [EditorConfig](https://editorconfig.org)
- **Code style and linting:** [Biome](https://biomejs.dev), [EditorConfig](https://editorconfig.org)
- **Schema management:** [Zod](https://zod.dev)
- **Testing:** [Vitest](https://vitest.dev)
- **CI/CD:** [GitHub Actions](https://docs.github.com/en/actions)
Expand Down
77 changes: 77 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": [
"packages/**",
"!**/dist",
"!**/coverage",
"!**/src/templates",
"!**/tests/output",
"!**/tests/mcp/output",
"!**/*.d.ts"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80,
"lineEnding": "lf"
},
"linter": {
"enabled": true,
"rules": {
"preset": "recommended",
"correctness": {
"noUnusedVariables": "error"
},
"style": {
"useConst": "error",
"noNonNullAssertion": "warn"
},
"suspicious": {
"noExplicitAny": "warn"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "es5",
"arrowParentheses": "always"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"overrides": [
{
"includes": ["**/*.test.ts", "**/tests/**"],
"linter": {
"rules": {
"complexity": {
"useLiteralKeys": "off"
},
"style": {
"noNonNullAssertion": "off"
},
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
]
}
70 changes: 0 additions & 70 deletions eslint.config.js

This file was deleted.

7 changes: 4 additions & 3 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"ignore": [
".changeset/**/*",
".github/changeset-version.js",
"apps/swarm-wasp-starter/**/*",
"packages/swarm/src/mcp/cli/**/index.ts"
"packages/swarm/src/mcp/cli/**/index.ts",
"packages/swarm-wasp/src/wasp-config/stubs/**/index.ts"
],
"ignoreDependencies": ["@commander-js/extra-typings", "wasp-config"]
"ignoreBinaries": ["wasp"],
"ignoreDependencies": ["@commander-js/extra-typings", "@wasp.sh/spec"]
}
23 changes: 9 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"scripts": {
"build": "pnpm -r run build",
"test": "pnpm -r run test",
"lint": "pnpm -r run lint",
"lint:fix": "pnpm -r run lint:fix",
"format": "pnpm -r run format",
"format:check": "pnpm -r run format:check",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write .",
"format:check": "biome format .",
"typecheck": "pnpm -r run typecheck",
"changeset": "changeset",
"changeset:auto": "node .changeset/autogenerate.js",
Expand Down Expand Up @@ -38,16 +38,11 @@
"pnpm": ">=10.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.29.7",
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.1",
"@typescript-eslint/eslint-plugin": "^8.46.4",
"@typescript-eslint/parser": "^8.46.4",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"knip": "^5.69.1",
"prettier": "^3.6.2",
"typescript": "^5.9.3"
"@biomejs/biome": "2.5.3",
"@changesets/cli": "^2.31.0",
"@types/node": "^26.1.1",
"knip": "^6.26.0",
"typescript": "^7.0.2"
},
"packageManager": "pnpm@10.20.0"
}
10 changes: 0 additions & 10 deletions packages/swarm-wasp/.prettierrc.json

This file was deleted.

Loading