@piro0919/next-unused
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

next-unused

next-unused is an easy way to find unused files in your Next.js project.

Installation

npm install @piro0919/next-unused --save-dev

Usage

"scripts": {
  "find:unused": "next-unused",
  "check:unused": "next-unused --error-on-unused-files",
}

Configuration

next-unused.config.js

module.exports = {
  excludeExtensions: [],
  excludeFiles: ["middleware.ts"],
  includeExtensions: [".ts", ".tsx"],
  router: "app",
  srcDir: true,
};
property description type default
excludeExtensions File extensions not checked string[] []
excludeFiles Files not checked string[] ["middleware.ts"]
includeExtensions File extension to check string[] [".ts", ".tsx"]
router Router used "app", "pages", "both" "app"
srcDir Use src folder boolean true

Credits

Readme

Keywords

Package Sidebar

Install

npm i @piro0919/next-unused

Homepage

kk-web.link

Weekly Downloads

90

Version

0.2.2

License

MIT

Unpacked Size

14.8 kB

Total Files

6

Last publish

Collaborators

  • piro0919