Skip to content
Open
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
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ updates:
directory: '/'
schedule:
interval: 'monthly'
ignore:
- dependency-name: 'bootstrap'
- dependency-name: 'tailwindcss'
groups:
projectwallace:
patterns:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dependency-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm run build
- run: pnpm pack --pack-destination ./base-packs
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: base-packages
path: ./base-packs/*.tgz
Expand All @@ -42,7 +42,7 @@ jobs:
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm run build
- run: pnpm pack --pack-destination ./source-packs
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: source-packages
path: ./source-packs/*.tgz
Expand All @@ -58,11 +58,11 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: base-packages
path: ./base-packs
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: source-packages
path: ./source-packs
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: pnpm
- run: pnpm audit --audit-level=high

knip:
Expand Down
35 changes: 35 additions & 0 deletions benchmark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,41 @@ import * as path from 'node:path'
import * as csstree from 'css-tree'
import * as postcss from 'postcss'

const TAILWIND_VERSION = '2.2.19'
const TAILWIND_DIST = path.resolve('node_modules/tailwindcss/dist')
const TAILWIND_FILES = ['tailwind.css', 'tailwind.min.css']

const BOOTSTRAP_VERSION = '5.3.8'
const BOOTSTRAP_DIST = path.resolve('node_modules/bootstrap/dist/css')
const BOOTSTRAP_FILES = ['bootstrap.css']

async function ensureFixture(dir: string, file: string, url: string): Promise<void> {
const dest = path.resolve(dir, file)
if (fs.existsSync(dest)) return
const res = await fetch(url)
if (!res.ok) throw new Error(`Failed to download ${file}: ${res.status}`)
fs.writeFileSync(dest, await res.text(), 'utf-8')
}

fs.mkdirSync(TAILWIND_DIST, { recursive: true })
fs.mkdirSync(BOOTSTRAP_DIST, { recursive: true })
await Promise.all([
...TAILWIND_FILES.map((file) =>
ensureFixture(
TAILWIND_DIST,
file,
`https://unpkg.com/tailwindcss@${TAILWIND_VERSION}/dist/${file}`,
),
),
...BOOTSTRAP_FILES.map((file) =>
ensureFixture(
BOOTSTRAP_DIST,
file,
`https://unpkg.com/bootstrap@${BOOTSTRAP_VERSION}/dist/css/${file}`,
),
),
])

const largeCSS = fs.readFileSync(path.resolve('benchmark/medium.css'), 'utf-8')
const bootstrapCSS = fs.readFileSync(
path.resolve('node_modules/bootstrap/dist/css/bootstrap.css'),
Expand Down
9 changes: 1 addition & 8 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
{
"ignore": ["/benchmark/**"],
"ignoreDependencies": [
"@projectwallace/preset-oxlint",
"bootstrap",
"css-tree",
"postcss",
"tailwindcss",
"tinybench"
]
"ignoreDependencies": ["@projectwallace/preset-oxlint", "css-tree", "postcss", "tinybench"]
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,18 @@
"devDependencies": {
"@projectwallace/preset-oxlint": "^0.0.10",
"@types/node": "^24.10.1",
"@vitest/coverage-v8": "^4.1.5",
"bootstrap": "^5.3.8",
"@vitest/coverage-v8": "^4.1.9",
"css-tree": "^3.1.0",
"knip": "^6.11.0",
"oxfmt": "^0.49.0",
"oxlint": "^1.62.0",
"postcss": "^8.5.6",
"publint": "^0.3.18",
"tailwindcss": "^2.2.8",
"tinybench": "^6.0.1",
"tsdown": "^0.22.0",
"typescript": "^6.0.3",
"vitest": "^4.1.5"
"vite": "^8.0.16",
"vitest": "^4.1.9"
},
"engines": {
"pnpm": ">=11.0.0"
Expand Down
Loading
Loading