Skip to content
Draft
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
9 changes: 8 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ runs:
with:
bun-version-file: '.tool-versions'

- uses: voidzero-dev/setup-vp@v1
with:
node-version-file: .node-version
cache: true

- name: 📦 Install Dependencies
if: ${{ inputs.install == 'true' }}
shell: bash
run: bun ci ${{ inputs.installArgs }}
env:
INSTALL_ARGS: ${{ inputs.installArgs }}
run: vp install --frozen-lockfile $INSTALL_ARGS
2 changes: 1 addition & 1 deletion .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: ./.github/actions/setup

- name: Build All Packages
run: bun run buildc all
run: vpr -r build

- name: Publish
run: bun pkg-pr-new publish --compact --bun './packages/*'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ jobs:

- name: Build docs
run: |
bun run docs:build
vpr docs:build
docker build docs/.vitepress -t ${{ secrets.DOCKER_REGISTRY_HOSTNAME }}/wxt/docs:${{ github.event.inputs.tag || 'latest' }}

- name: Push Image
run: docker push ${{ secrets.DOCKER_REGISTRY_HOSTNAME }}/wxt/docs:${{ github.event.inputs.tag || 'latest' }}
run: docker push ${{ secrets.DOCKER_REGISTRY_HOSTNAME }}/wxt/docs:${{
github.event.inputs.tag || 'latest' }}

- name: Deploy
run: curl -X POST -i ${{ secrets.UPDATE_DOCS_WEBHOOK }}
6 changes: 3 additions & 3 deletions .github/workflows/update-browser-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:

- name: Generate Latest Code
working-directory: packages/browser
run: bun run gen
run: vpr gen

- name: Run Checks
working-directory: packages/browser
run: bun run check
run: vp check

- name: Commit Changes
id: commit
Expand All @@ -46,6 +46,6 @@ jobs:
if: steps.commit.outputs.changes_detected == 'true'
working-directory: packages/browser
run: |
bun pm pack
vp pm pack
sudo npm i -g npm@latest
npm publish *.tgz
17 changes: 10 additions & 7 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Generate Docs
run: vpr docs:gen

- name: Basic Checks
run: bun run check
run: vp check

builds:
name: Builds
Expand All @@ -34,7 +37,7 @@ jobs:
uses: ./.github/actions/setup

- name: Build All Packages
run: bun run buildc all
run: vpr -r build

build-demo:
name: Build Demo
Expand All @@ -47,11 +50,11 @@ jobs:
uses: ./.github/actions/setup

- name: Build
run: bun run build:all
run: vpr build:all
working-directory: packages/wxt-demo

- name: ZIP
run: bun run wxt zip
run: vp exec wxt zip
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the did between this and vpr?

working-directory: packages/wxt-demo

tests:
Expand Down Expand Up @@ -80,11 +83,11 @@ jobs:

- name: Run Tests
if: ${{ ! matrix.coverage }}
run: bun run test
run: vpr -r test run

- name: Run Tests (Coverage)
if: matrix.coverage
run: bun run test:coverage --reporter=default --reporter=hanging-process
run: vpr -r test:coverage --reporter=default

- name: Upload Coverage
if: matrix.coverage
Expand Down Expand Up @@ -112,7 +115,7 @@ jobs:
uses: ./.github/actions/setup

- name: Pack WXT package
run: bun pm pack
run: vp pm pack
working-directory: packages/wxt

- name: Install Dependencies
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ docs/api/reference
stats.html
.cache
*-stats.txt
.vite-hooks/_
CLAUDE.md
**/CLAUDE.md
Comment on lines +28 to +29
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not opposed to having context files in the repo. I'd prefer for them to be agent-agnostic, but I don't think there are any community standards around these yet.

1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.15.0
8 changes: 0 additions & 8 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"github.vscode-github-actions"
"github.vscode-github-actions",
"VoidZero.vite-plus-extension-pack"
]
}
22 changes: 11 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
// Set default formatter
"editor.defaultFormatter": "esbenp.prettier-vscode",

"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },

// Additional guidelines for Copilot
"editor.defaultFormatter": "oxc.oxc-vscode",
"github.copilot.chat.codeGeneration.instructions": [
{ "file": "CONTRIBUTING.md" }
{
"file": "CONTRIBUTING.md"
}
],
"oxc.enable": true
"oxc.enable": true,
"oxc.fmt.configPath": "./vite.config.ts",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit"
}
}
Loading