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
75 changes: 75 additions & 0 deletions .github/workflows/dependency-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Dependency Diff

on:
pull_request:
branches: [main]

jobs:
build-base:
name: Pack base branch
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
with:
ref: main
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm run build
- run: pnpm pack --pack-destination ./base-packs
- uses: actions/upload-artifact@v7
with:
name: base-packages
path: ./base-packs/*.tgz

build-pr:
name: Pack PR branch
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm run build
- run: pnpm pack --pack-destination ./source-packs
- uses: actions/upload-artifact@v7
with:
name: source-packages
path: ./source-packs/*.tgz

diff-dependencies:
name: Diff dependencies
runs-on: ubuntu-latest
needs: [build-base, build-pr]
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
with:
fetch-depth: 0
- uses: actions/download-artifact@v8
with:
name: base-packages
path: ./base-packs
- uses: actions/download-artifact@v8
with:
name: source-packages
path: ./source-packs
- uses: e18e/action-dependency-diff@8e9b8c1957ab066d36235a43f4c1ff1522e1bdbc # v1.6.1
with:
base-packages: './base-packs/*.tgz'
source-packages: './source-packs/*.tgz'
pack-size-threshold: -1
size-threshold: -1
duplicate-threshold: 3
21 changes: 0 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
- name: Install Playwright Browsers
run: pnpm exec playwright install chromium --only-shell
- run: pnpm test --forbid-only
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}

check-ts:
name: Check types
Expand Down Expand Up @@ -80,23 +76,6 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm run knip

bundle-analysis:
name: Report bundle analysis (codecov)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
with:
persist-credentials: false
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

audit:
name: Audit packages
runs-on: ubuntu-latest
Expand Down
6 changes: 4 additions & 2 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"extends": ["@projectwallace/preset-oxlint"],
"extends": ["./node_modules/@projectwallace/preset-oxlint/index.json"],
"env": {
"node": true,
"browser": true
},
"rules": {}
"rules": {
"no-console": "off"
}
}
32 changes: 13 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,27 @@
"knip": "knip"
},
"dependencies": {
"@projectwallace/css-parser": "~0.16.0",
"@projectwallace/format-css": "^3.1.2"
"@projectwallace/css-parser": "~0.17.0",
"@projectwallace/format-css": "^3.1.5"
},
"devDependencies": {
"@codecov/vite-plugin": "^2.0.1",
"@playwright/test": "^1.59.1",
"@playwright/test": "^1.61.1",
"@projectwallace/preset-oxlint": "^0.0.11",
"@types/node": "^26.1.0",
"c8": "^11.0.0",
"knip": "^6.3.0",
"oxfmt": "^0.57.0",
"oxlint": "^1.58.0",
"publint": "^0.3.20",
"tsdown": "^0.22.0",
"typescript": "^6.0.2"
"@types/node": "^26.1.1",
"c8": "^12.0.0",
"knip": "^6.27.0",
"oxfmt": "^0.59.0",
"oxlint": "^1.74.0",
"publint": "^0.3.21",
"tsdown": "^0.22.11",
"typescript": "^7.0.2"
},
"overrides": {
"@projectwallace/css-parser": "$@projectwallace/css-parser"
},
"engines": {
"node": ">=20",
"pnpm": ">=10.0.0"
"pnpm": ">=11.0.0"
},
"packageManager": "pnpm@11.1.1",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
"packageManager": "pnpm@11.1.1"
}
Loading