Skip to content

Commit

Permalink
feat: setup knip
Browse files Browse the repository at this point in the history
  • Loading branch information
vscaiceanu-1a committed Jun 5, 2024
1 parent 01d3592 commit 7fe5e63
Show file tree
Hide file tree
Showing 6 changed files with 909 additions and 604 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Markdown links
name: Code checks

on:
pull_request:
Expand All @@ -10,9 +10,18 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: '.github/workflows/markdown.links.config.json'
check-modified-files-only: 'yes'
use-verbose-mode: 'yes'
knip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Yarn install
run: yarn --immutable
- name: Run knip
run: yarn knip
27 changes: 9 additions & 18 deletions examples/my-ngsw-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions knip.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { KnipConfig } from 'knip';

const config: KnipConfig = {
ignore: ['examples/**'],
entry: ['src/schematics/ng-add/index.ts', 'src/index.ts'],
ignoreDependencies: ['@types/jest'],
ignoreBinaries: ['playwright']
}

export default config;
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
},
"devDependencies": {
"@angular-devkit/schematics": "~17.0.0",
"@angular/cli": "~17.0.0",
"@schematics/angular": "~17.0.0",
"@types/jest": "^29.5.11",
"@types/mustache": "^4.2.5",
"@types/node": "^20.10.6",
Expand All @@ -52,8 +50,8 @@
"copyfiles": "^2.4.1",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"knip": "^5.0.1",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1",
"ts-jest": "^29.1.1",
"type-fest": "^4.10.2"
}
Expand Down
1 change: 1 addition & 0 deletions testing/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "../tsconfig",
"types": ["node", "jest"],
"include": [
"./**/*.spec.ts"
]
Expand Down
Loading

0 comments on commit 7fe5e63

Please sign in to comment.