@cleeviox/knip 0.0.0-next-20260223192127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/monorepo-root.d.ts +12 -0
- package/dist/monorepo-root.js +13 -0
- package/dist/monorepo-root.js.map +1 -0
- package/dist/nextjs.d.ts +9 -0
- package/dist/nextjs.js +10 -0
- package/dist/nextjs.js.map +1 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<a href="https://github.com/cleevio/cleeviox-toolkit">
|
|
4
|
+
<img alt="CleevioX Logo" src="https://media.licdn.com/dms/image/v2/D4E0BAQGEw-d0KstvqA/company-logo_200_200/company-logo_200_200/0/1739267861557/cleeviox_logo?e=1773273600&v=beta&t=YwuQOrr6dFoTzwBmBrgIoDBcVcnlxWPpsJQpxLseCAg" width="120" style="background-color: #151a1d; padding: 15px" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
# KNIP
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/@cleeviox/knip)
|
|
10
|
+
|
|
11
|
+
### Knip configuration used on CleevioX projects
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
bun add --dev @cleeviox/knip knip
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
### Monorepo Root
|
|
24
|
+
|
|
25
|
+
For a monorepo, create a `knip.ts` file in the repository root:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { monorepoRootConfig } from '@cleeviox/knip';
|
|
29
|
+
import type { KnipConfig } from 'knip';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @filename: knip.ts
|
|
33
|
+
*/
|
|
34
|
+
export default {
|
|
35
|
+
...monorepoRootConfig,
|
|
36
|
+
} satisfies KnipConfig;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Next.js Projects
|
|
40
|
+
|
|
41
|
+
For a Next.js project, create a `knip.ts` file in your project root:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { nextjsConfig } from '@cleeviox/knip';
|
|
45
|
+
import type { KnipConfig } from 'knip';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @filename: knip.ts
|
|
49
|
+
*/
|
|
50
|
+
export default {
|
|
51
|
+
...nextjsConfig,
|
|
52
|
+
} satisfies KnipConfig;
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Available Configurations
|
|
56
|
+
|
|
57
|
+
| Export | Description |
|
|
58
|
+
|--------|-------------|
|
|
59
|
+
| `monorepoRootConfig` | Configuration for monorepo roots with workspace support |
|
|
60
|
+
| `nextjsConfig` | Configuration for Next.js projects |
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monorepo-root.js","sourceRoot":"","sources":["../src/monorepo-root.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE;QACV,GAAG,EAAE;YACH,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,iBAAiB;SAC3B;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,SAAS;SACnB;KACF;CACmB,CAAC"}
|
package/dist/nextjs.d.ts
ADDED
package/dist/nextjs.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const nextjsConfig = {
|
|
2
|
+
ignore: ['src/assets/components/icons/**'],
|
|
3
|
+
ignoreDependencies: ['@changesets/cli', 'orval', 'postcss', 'tailwindcss', '@cleeviox/knip'],
|
|
4
|
+
ignoreExportsUsedInFile: true,
|
|
5
|
+
next: {
|
|
6
|
+
entry: ['next.config.{js,ts}', 'src/app/**/*.{ts,tsx}', 'src/middleware.{ts,js}', 'src/module/i18n/*.ts'],
|
|
7
|
+
},
|
|
8
|
+
project: ['src/**/*.{ts,tsx}', 'tests/**/*.{ts,tsx}'],
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nextjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextjs.js","sourceRoot":"","sources":["../src/nextjs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,CAAC,gCAAgC,CAAC;IAC1C,kBAAkB,EAAE,CAAC,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,CAAC;IAC5F,uBAAuB,EAAE,IAAI;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE,CAAC,qBAAqB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,sBAAsB,CAAC;KAC1G;IACD,OAAO,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;CACjC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bugs": {
|
|
3
|
+
"url": "https://github.com/cleevio/cleeviox-toolkit/issues"
|
|
4
|
+
},
|
|
5
|
+
"description": "Knip configuration used on CleevioX projects",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"knip": "^5.85.0"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"knip",
|
|
20
|
+
"config",
|
|
21
|
+
"cleevio",
|
|
22
|
+
"cleeviox"
|
|
23
|
+
],
|
|
24
|
+
"name": "@cleeviox/knip",
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"knip": "^5.85.0"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"directory": "packages/knip",
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/cleevio/cleeviox-toolkit"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc --build tsconfig.build.json",
|
|
35
|
+
"check": "biome check --write .",
|
|
36
|
+
"clean": "del .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo dist node_modules",
|
|
37
|
+
"fix": "run-s biome:check:fix ts",
|
|
38
|
+
"format": "biome format .",
|
|
39
|
+
"format:fix": "biome format --write .",
|
|
40
|
+
"lint": "biome lint .",
|
|
41
|
+
"lint:fix": "biome lint --write .",
|
|
42
|
+
"prebuild": "del dist tsconfig.build.tsbuildinfo",
|
|
43
|
+
"ts": "tsc --build tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
"sideEffects": false,
|
|
46
|
+
"type": "module",
|
|
47
|
+
"version": "0.0.0-next-20260223192127"
|
|
48
|
+
}
|