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/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: npm
- package-ecosystem: bun
directory: /
schedule:
interval: monthly
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm test
package-manager-cache: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.3
- run: bun install --frozen-lockfile
- run: bun run lint
- run: bun run test
- name: Extension host (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm run test:integration
run: xvfb-run -a bun run test:integration
- name: Extension host (Windows)
if: runner.os == 'Windows'
run: npm run test:integration
- run: npm audit --audit-level=low
- run: npm run package
run: bun run test:integration
- run: bun audit --audit-level=low
- run: bun run package
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: vsix-${{ matrix.os }}
Expand All @@ -58,8 +62,11 @@ jobs:
with:
node-version: 24
package-manager-cache: false
- run: npm ci
- run: npm run package
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.3
- run: bun install --frozen-lockfile
- run: bun run package
- name: Create draft, attach assets, and publish
env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ integration-test.log
.github/**
scripts/**
*.sha256
biome.json
bun.lock
15 changes: 8 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,25 @@ git checkout -b feature/my-new-feature

### 5. Compile and Test Your Changes

Use Node.js 22.12+ (Node 24 recommended) and Git. Install dependencies and compile the TypeScript sources:
Use [Bun](https://bun.sh) 1.4+, Node.js 22.12+ (Node 24 recommended) and Git. Bun installs dependencies and runs scripts; Node is still needed for packaging and the extension-host tests. Install dependencies and compile the TypeScript sources:

```
npm ci
npm run compile
bun install --frozen-lockfile
bun run compile
```

If you made significant changes, also run tests to ensure everything works correctly:
If you made significant changes, also run the linter and tests to ensure everything works correctly:

```
npm test
bun run lint
bun run test
```

Unit tests exercise production modules and use temporary Git repositories (Git must be installed). Run `npm run test:integration` for VS Code extension-host tests and `npm run package` to build a VSIX. Compiled output lives in `out/`; do not add generated JavaScript under `src/`.
Unit tests exercise production modules and use temporary Git repositories (Git must be installed). Run `bun run test:integration` for VS Code extension-host tests and `bun run package` to build a VSIX. Formatting and linting use Biome (`bun run lint:fix` applies fixes). Compiled output lives in `out/`; do not add generated JavaScript under `src/`.

### Release maintainers

Update `package.json`, the lockfile, changelog, README and `releases/RELEASE-NOTES-<version>.md`. A commit on `main` whose message starts with `release:` triggers publication **only after both Windows and Linux CI jobs pass**. The release job packages the verified commit, creates a draft with the VSIX and SHA-256 checksum, and publishes it as the latest GitHub release. Ordinary commits and pull requests cannot publish. Existing release tags are not overwritten. Marketplace publication remains a separate explicit action.
Update `package.json`, `bun.lock`, changelog, README and `releases/RELEASE-NOTES-<version>.md`. A commit on `main` whose message starts with `release:` triggers publication **only after both Windows and Linux CI jobs pass**. The release job packages the verified commit, creates a draft with the VSIX and SHA-256 checksum, and publishes it as the latest GitHub release. Ordinary commits and pull requests cannot publish. Existing release tags are not overwritten. Marketplace publication remains a separate explicit action.

### 6. Commit Your Changes

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CodebaseMD runs locally. It does not upload your source code or call an AI provi
3. Open a local workspace and run **CodebaseMD: Export Wizard** from the Command Palette.
4. Choose your scope, content mode, output format, and destination.

The Marketplace has its own publication schedule; use the GitHub VSIX for this release. VS Code 1.70 or later is required. Git is needed only for Git exports.
The Marketplace has its own publication schedule; use the GitHub VSIX for this release. VS Code 1.146 or later is required. Git is needed only for Git exports.

## What's new in version 3.0.0

Expand Down Expand Up @@ -94,16 +94,17 @@ These rules also apply to explicit selections. See [configuration examples](docs

## Development

Use Node.js 22.12+ (Node 24 recommended) and Git:
Use [Bun](https://bun.sh) 1.4+, Node.js 22.12+ (Node 24 recommended) and Git:

```sh
npm ci
npm test
npm run test:integration
npm run package
bun install --frozen-lockfile
bun run lint
bun run test
bun run test:integration
bun run package
```

Unit tests import production modules and create temporary Git repositories. Integration tests launch a VS Code host and verify commands, clipboard output, and unsaved content. Linux integration tests require a display (`xvfb-run -a npm run test:integration` in CI). The CI workflow tests Windows and Linux and retains the built VSIX as an artifact.
Unit tests import production modules and create temporary Git repositories. Integration tests launch a VS Code host and verify commands, clipboard output, and unsaved content. Linux integration tests require a display (`xvfb-run -a bun run test:integration` in CI). The CI workflow tests Windows and Linux and retains the built VSIX as an artifact.

See [contributing](CONTRIBUTING.md), the [developer module reference](docs/api-reference.md), and the [research and implementation plan](docs/v3-plan.md). The separate [web prototype](CodebaseMD-Web/README.md) is not part of this extension release.

Expand Down
38 changes: 38 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://biomejs.dev/schemas/2.6.6/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": true,
"includes": ["src/**", "scripts/**", "*.json"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "auto"
},
"linter": {
"enabled": true,
"rules": {
"preset": "recommended"
}
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
Loading
Loading