forked from webpro-nl/knip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
795 changed files
with
8,862 additions
and
22,535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
github: webpro | ||
open_collective: webpro | ||
polar: webpro-nl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tests (Bun) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '!**' | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
# - windows-latest # temp disabled because https://github.com/oven-sh/bun/issues/9932 | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: oven-sh/setup-bun@v1 | ||
- name: Install dependencies | ||
run: bun install --ignore-scripts --frozen-lockfile | ||
- name: Run formatter, linter, import sorter | ||
run: bun ci | ||
- name: Build knip | ||
run: bun run build | ||
working-directory: packages/knip | ||
- name: Run knip | ||
run: bunx --bun knip | ||
- name: Run knip (production/strict) | ||
run: bunx --bun knip --production --strict | ||
- name: Test knip | ||
run: bun run test | ||
working-directory: packages/knip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Tests (against typescript@beta in Node.js v22) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '!**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Ubuntu/Node v22 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
- name: Install dependencies | ||
run: npm install --ignore-scripts | ||
- name: Install latest peer dependencies | ||
run: | | ||
npm install -w packages/knip typescript@rc @types/node@latest | ||
- name: Build knip | ||
run: npm run build | ||
working-directory: packages/knip | ||
- name: Test knip | ||
run: npm run test:node | ||
working-directory: packages/knip | ||
- name: Run knip | ||
run: npx knip | ||
- name: Run knip --production --strict | ||
run: npx knip --production --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Tests (against typescript@latest in Node.js v20) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '!**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Ubuntu/Node v20 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
run: npm install --ignore-scripts | ||
- name: Install latest peer dependencies | ||
run: | | ||
npm install -w packages/knip typescript@latest @types/node@20 --ignore-scripts | ||
- name: Build knip | ||
run: npm run build | ||
working-directory: packages/knip | ||
- name: Test knip | ||
run: npm run test:node | ||
working-directory: packages/knip | ||
- name: Run knip | ||
run: npx knip | ||
- name: Run knip --production --strict | ||
run: npx knip --production --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Tests (against [email protected]) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '!**' | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
node: | ||
- 18 | ||
- 20 | ||
|
||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} (Node v${{ matrix.node }}) | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install dependencies | ||
run: npm install [email protected] @types/node@18 --ignore-scripts | ||
- name: Build knip | ||
run: npm run build | ||
working-directory: packages/knip | ||
- name: Run knip | ||
run: npx knip | ||
- name: Run knip (production/strict) | ||
run: npx knip --production --strict | ||
- name: Test knip | ||
run: npm run test:node | ||
working-directory: packages/knip |
Oops, something went wrong.