Skip to content

Commit

Permalink
feat: add workflow to check for unused/missing NPM modules (#1085)
Browse files Browse the repository at this point in the history
* chore: remove unused dependencies
* chore: add npm-check module
* chore: add check-modules task
* fix: improve workflow action names
  • Loading branch information
paulschreiber authored Jul 24, 2023
1 parent 63cb26d commit a0d2f77
Show file tree
Hide file tree
Showing 4 changed files with 1,677 additions and 87 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,21 @@ jobs:
node-version-file: '.tool-versions'
cache: 'npm'

- name: Install dependencies
- name: Install Node dependencies
run: npm ci

- name: Typecheck ts code
- name: Typecheck TypeScript
run: npm run check-ts

- name: Run lint js checks
- name: Lint JavaScript
run: npm run lint-js

- name: Run lint css checks
- name: Lint CSS
run: npm run lint-css

- name: Check NPM module usage
run: npm run check-modules

tests:
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions .npmcheckrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"depcheck": {
"ignoreMatches": [
"@ianvs/prettier-plugin-sort-imports",
"stylelint-prettier",
"@graphql-codegen/client-preset",
"@ianvs/prettier-plugin-sort-imports",
"@mui/system",
"@mui/utils",
"account",
Expand Down Expand Up @@ -33,6 +32,7 @@
"slate",
"storyMap",
"stringUtils",
"stylelint-prettier",
"taxonomies",
"terrasoApi",
"tests",
Expand Down
Loading

0 comments on commit a0d2f77

Please sign in to comment.