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
113 changes: 0 additions & 113 deletions .github/copilot-instructions.md

This file was deleted.

4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ updates:
- 'prettier'
- 'vitest*'
- '@vitest/*'
- 'jest*'
- 'ts-jest'
- '@playwright/*'
- 'playwright*'
- '@testing-library/*'
- 'postcss'
- 'autoprefixer'
Expand Down
57 changes: 1 addition & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: read

env:
NODE_VERSION: '20'
NODE_VERSION: '22'

jobs:
test:
Expand All @@ -29,63 +29,8 @@ jobs:
- name: 📦 Install dependencies
run: npm ci

- name: 🏗️ Build packages
run: npm run build

- name: ✅ Verify all packages
run: npm run verify

- name: ✅ All checks passed
run: echo "🎉 All CI checks passed successfully!"

verify-examples:
name: 🔍 Verify Examples
runs-on: ubuntu-latest

steps:
- name: 📥 Checkout code
uses: actions/checkout@v5

- name: 🔧 Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: 📦 Install dependencies
run: npm ci

- name: 🏗️ Build packages
run: npm run build

- name: 🔍 Verify examples
run: |
echo "🔍 Verifying examples..."

for example_dir in examples/*; do
if [ ! -d "$example_dir" ]; then
continue
fi

example_name=$(basename "$example_dir")
echo ""
echo "📦 Verifying example: $example_name"

cd "$example_dir"

# Install dependencies
npm install

# Type check
if [ -f "tsconfig.json" ]; then
echo " 🔍 Type checking..."
npx tsc --noEmit
fi

cd ../..

echo " ✅ $example_name verified"
done

echo ""
echo "✅ All examples verified successfully!"
47 changes: 9 additions & 38 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
actions: read

env:
NODE_VERSION: '20'
NODE_VERSION: '22'

jobs:
validate:
Expand All @@ -36,10 +36,6 @@ jobs:
- name: 📦 Install dependencies
run: npm ci

- name: 🏗️ Build
id: build
run: npm run build

- name: 🔍 Type check
id: type-check
run: npm run type-check
Expand All @@ -48,6 +44,10 @@ jobs:
id: lint
run: npm run lint

- name: 🎨 Format check
id: format-check
run: npm run format:check

- name: 🧪 Test
id: test
run: npm run test
Expand All @@ -56,38 +56,9 @@ jobs:
id: coverage
run: npm run test:coverage

- name: 🔍 Verify Examples
id: examples
run: |
echo "🔍 Verifying examples..."

for example_dir in examples/*; do
if [ ! -d "$example_dir" ]; then
continue
fi

example_name=$(basename "$example_dir")
echo ""
echo "📦 Verifying example: $example_name"

cd "$example_dir"

# Install dependencies
npm install

# Type check
if [ -f "tsconfig.json" ]; then
echo " 🔍 Type checking..."
npx tsc --noEmit
fi

cd ../..

echo " ✅ $example_name verified"
done

echo ""
echo "✅ All examples verified successfully!"
- name: 🏗️ Build
id: build
run: npm run build

- name: 📊 Validation Summary
id: validation-summary
Expand All @@ -103,10 +74,10 @@ jobs:
|------|--------|
| 🔍 Type Check | ${{ steps.type-check.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |
| 🎨 Lint | ${{ steps.lint.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |
| 🎨 Format | ${{ steps.format-check.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |
| 🏗️ Build | ${{ steps.build.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |
| 🧪 Tests | ${{ steps.test.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |
| 📊 Coverage | ${{ steps.coverage.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |
| 📦 Examples | ${{ steps.examples.outcome == 'success' && '✅ Passed' || '❌ Failed' }} |

**Overall:** ${{ job.status == 'success' && '✅ All checks passed!' || '❌ Some checks failed' }}
COMMENT_EOF
Expand Down
27 changes: 14 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
id-token: write

env:
NODE_VERSION: "20"
NODE_VERSION: "22"

jobs:
detect-changes:
Expand Down Expand Up @@ -42,28 +42,28 @@ jobs:
get_package_info() {
local pkg_dir=$1
local pkg_json="${pkg_dir}/package.json"

if [ ! -f "$pkg_json" ]; then
return
fi

local name=$(node -p "require('./${pkg_json}').name")
local version=$(node -p "require('./${pkg_json}').version")
local private=$(node -p "require('./${pkg_json}').private || false")

# Skip private packages
if [ "$private" = "true" ]; then
return
fi

echo "${pkg_dir}|${name}|${version}"
}

# Function to check if version exists on npm
version_exists_on_npm() {
local name=$1
local version=$2

# Try to get the specific version from npm
if npm view "${name}@${version}" version 2>/dev/null; then
return 0 # Version exists
Expand All @@ -74,21 +74,21 @@ jobs:

changed_packages=()

# Check all packages
for pkg_dir in packages/*; do
# Check packages in dependency order (core first, then platform)
for pkg_dir in packages/core packages/platform; do
if [ ! -d "$pkg_dir" ]; then
continue
fi

pkg_info=$(get_package_info "$pkg_dir")
if [ -z "$pkg_info" ]; then
continue
fi

IFS='|' read -r dir name version <<< "$pkg_info"

echo "📦 Checking ${name}@${version}..."

# Check if this version exists on npm
if version_exists_on_npm "$name" "$version"; then
echo "⏭️ Version ${version} already published for ${name}"
Expand Down Expand Up @@ -155,7 +155,8 @@ jobs:
strategy:
matrix:
package: ${{ fromJson(needs.detect-changes.outputs.packages) }}
fail-fast: false
max-parallel: 1
fail-fast: true

steps:
- name: 📥 Checkout code
Expand Down
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ pnpm-lock.yaml
dist/
build/
*.tsbuildinfo
packages/*/src/**/*.d.ts
packages/*/src/**/*.d.ts.map
packages/*/src/**/*.js
packages/*/src/**/*.js.map
vitest.config.d.ts
vitest.config.d.ts.map
vitest.config.js
vitest.config.js.map
eslint.config.d.ts
eslint.config.d.ts.map

# Testing
coverage/
Expand Down Expand Up @@ -40,7 +50,3 @@ yarn-error.log*
tmp/
temp/
*.tmp

# Examples (reference only)
example1/
example2/
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
save-exact=true
legacy-peer-deps=false
legacy-peer-deps=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
Loading
Loading