forked from freeCodeCamp/freeCodeCamp
-
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.
chore: update knip & config (freeCodeCamp#48963)
* Re-add knip to manifest devDependencies * Move updated config to root folder * Move knip back to `npx y` in npm script Also see freeCodeCamp#48963 (review) * Bump knip to fix dependency issue
- Loading branch information
Showing
4 changed files
with
44 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@next/schema.json", | ||
|
||
"ignore": "**/*.d.ts", | ||
"ignoreBinaries": ["cd", "echo", "sh"], | ||
|
||
// Only workspaces with a configuration below are analyzed by Knip | ||
"workspaces": { | ||
".": { | ||
"entry": [], | ||
// Configuration options can be overridden individually (necessary here as the default is `cypress/e2e/**/*.cy.{js,jsx,ts,tsx}`). | ||
"cypress": ["cypress.config.js", "cypress/e2e/**/*.{js,ts}"] | ||
}, | ||
"client": { | ||
// Files used by Gatsby are handled by Knip's Gatsby plugin (https://github.com/webpro/knip/blob/next/src/plugins/gatsby/README.md) | ||
// The rest are `webpack.entry` files. | ||
"entry": [], | ||
"project": ["**/*.{js,ts,tsx}"], | ||
"webpack": { | ||
"config": "webpack-workers.js", | ||
"entry": [ | ||
"src/client/frame-runner.ts", | ||
"src/client/workers/sass-compile.ts", | ||
"src/client/workers/test-evaluator.ts" | ||
] | ||
}, | ||
"ignore": ["i18n/schema-validation.*", "**/__mocks__", "**/__fixtures__"] | ||
}, | ||
"client/plugins/*": { | ||
"entry": "gatsby-node.js" | ||
}, | ||
// This monospace gives a few unused files, so as not to make the node.js-find-unused workflow fail this is still commented out | ||
// Also try --production to find more unused files. | ||
// "tools/ui-components": { | ||
// "entry": ["src/index.ts!", "utils/gen-component-script.ts"], | ||
// "project": ["src/**/*.{ts,tsx}!", "utils/*.ts"] | ||
// }, | ||
"tools/scripts/build": { | ||
"entry": ["*.ts"] | ||
} | ||
} | ||
} |
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