Skip to content

Commit

Permalink
chore: Refactor to bun workspaces (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Aug 13, 2024
1 parent 262abf7 commit f174a54
Show file tree
Hide file tree
Showing 101 changed files with 953 additions and 8,216 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ jobs:
if: ${{ steps.changelog.outputs.skipped == 'false' }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
pnpm build:dependencies
pnpm build
pnpm publish
working-directory: packages/${{ matrix.package }}
65 changes: 36 additions & 29 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,42 @@ on:
workflow_call:

jobs:
root:
name: root
checks:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install PNPM
uses: pnpm/[email protected]
with:
version: 8

- name: Install Node 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Check Formatting
run: pnpm format:check

- name: Build
run: pnpm build

- name: Type Check
run: pnpm -r compile
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: |
bun format:check
bun run --cwd packages/fake-browser check
bun run --cwd packages/isolated-element check
bun run --cwd packages/isolated-element-demo check
bun run --cwd packages/job-scheduler check
bun run --cwd packages/match-patterns check
bun run --cwd packages/messaging check
bun run --cwd packages/proxy-service check
bun run --cwd packages/storage check
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run build

- name: Run Tests
run: pnpm -r test:coverage
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: |
bun run --cwd packages/fake-browser test:coverage
bun run --cwd packages/isolated-element test:coverage
bun run --cwd packages/job-scheduler test:coverage
bun run --cwd packages/match-patterns test:coverage
bun run --cwd packages/messaging test:coverage
bun run --cwd packages/proxy-service test:coverage
bun run --cwd packages/storage test:coverage
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ coverage
/docs/.vitepress/cache
.DS_Store
tsconfig.vitest-temp.json
/.cache
.output
.wxt
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ lib/
pnpm-lock.yaml
/docs/.vitepress/cache
/docs/api/*
.nuxt
.wxt.output
docs/content/index.md
docs/content/*/api.md
Binary file added bun.lockb
Binary file not shown.
24 changes: 24 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
181 changes: 0 additions & 181 deletions docs/.vitepress/config.ts

This file was deleted.

64 changes: 0 additions & 64 deletions docs/.vitepress/theme/components/Chip.vue

This file was deleted.

14 changes: 0 additions & 14 deletions docs/.vitepress/theme/components/ChipGroup.vue

This file was deleted.

Loading

0 comments on commit f174a54

Please sign in to comment.