Skip to content

V7 #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

V7 #446

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
17 changes: 0 additions & 17 deletions .github/workflows/labels.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm install --ignore-scripts --no-audit
- run: npm install --ignore-scripts --no-audit --no-fund
- run: npm test

publish-npm:
Expand All @@ -27,9 +26,8 @@ jobs:
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install --ignore-scripts --no-audit
- run: npm install --ignore-scripts --no-audit --no-fund
- run: npm run build
- run: npm publish
env:
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,32 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: "npm"
- run: npm install --ignore-scripts --no-audit --no-fund
- name: Lint JS
run: npx oxlint@latest -D perf
run: npm run lint

test:
name: Unit tests
lint-package:
name: Lint package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: "npm"
- run: npm install --ignore-scripts --no-audit --no-fund
- run: npm test
- name: Build package
run: npm run build
- name: Lint package
run: npx publint

lint-package:
name: Lint package
code-coverage:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -46,8 +55,6 @@ jobs:
run: npm run build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Lint package
run: npx publint
- run: npx c8 --reporter=lcov npm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
9 changes: 9 additions & 0 deletions app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare module 'css-tree/parser' {
import { parse } from "css-tree"
export default parse
}

declare module "css-tree/walker" {
import { walk } from "css-tree"
export default walk
}
20 changes: 20 additions & 0 deletions oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"import",
"typescript",
"oxc"
],
"env": {
"node": true,
"browser": true,
"es2024": true
},
"categories": {
"perf": "error",
"correctness": "error",
"pedantic": "error"
},
"rules": {},
"overrides": []
}
Loading