Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

build: keep the knip, size-limit and jscpd settings in package.json

Luis Ortiz621e7b5f809f
diff --git a/.jscpd.json b/.jscpd.json
deleted file mode 100644
index e52ea72..0000000
--- a/.jscpd.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "path": ["src", "apps/desktop/src", "packages/core/src", "packages/ui/src"],
- "format": ["typescript", "tsx"],
- "minLines": 12,
- "minTokens": 80,
- "threshold": 0.5,
- "ignore": ["**/__tests__/**", "**/*.test.ts", "**/*.test.tsx", "**/components/ui/**"],
- "reporters": ["console"],
- "silent": true
-}
diff --git a/.size-limit.json b/.size-limit.json
deleted file mode 100644
index 7029940..0000000
--- a/.size-limit.json
+++ /dev/null
@@ -1,5 +0,0 @@
-[
- { "name": "background", "path": ".output/chrome-mv3/background.js", "limit": "170 kB" },
- { "name": "content script", "path": ".output/chrome-mv3/content-scripts/*.js", "limit": "40 kB" },
- { "name": "pages", "path": ".output/chrome-mv3/chunks/*.js", "limit": "600 kB" }
-]
diff --git a/knip.json b/knip.json
deleted file mode 100644
index ed2e739..0000000
--- a/knip.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "$schema": "https://unpkg.com/knip@5/schema.json",
- "ignoreUnresolved": ["#imports"],
- "ignoreDependencies": ["@mimik/locales"],
- "workspaces": {
- ".": {
- "entry": ["src/entrypoints/*.ts", "src/entrypoints/*/index.{ts,tsx}", "scripts/*.mjs"],
- "project": ["src/**/*.{ts,tsx}", "scripts/**"]
- },
- "apps/desktop": {
- "entry": ["src/preload/*.ts", "src/renderer/*.html", "scripts/*.{ts,mjs,cjs}"],
- "project": ["src/**/*.{ts,tsx}", "scripts/**"],
- "ignoreDependencies": ["tailwindcss"]
- },
- "packages/core": {
- "includeEntryExports": true,
- "project": ["src/**/*.ts"],
- "ignore": ["src/export/empty.ts"]
- },
- "packages/ui": {
- "includeEntryExports": true,
- "project": ["src/**/*.{ts,tsx}"],
- "ignore": ["src/components/ui/**"]
- },
- "packages/capture-native": {
- "ignore": ["index.js"]
- }
- }
-}
diff --git a/package.json b/package.json
index a067cb5..70b73f0 100644
--- a/package.json
+++ b/package.json
@@ -79,5 +79,105 @@
"typescript": "^5.9.3",
"vitest": "^4.1.0",
"wxt": "^0.20.20"
+ },
+ "knip": {
+ "ignoreUnresolved": [
+ "#imports"
+ ],
+ "ignoreDependencies": [
+ "@mimik/locales"
+ ],
+ "workspaces": {
+ ".": {
+ "entry": [
+ "src/entrypoints/*.ts",
+ "src/entrypoints/*/index.{ts,tsx}",
+ "scripts/*.mjs"
+ ],
+ "project": [
+ "src/**/*.{ts,tsx}",
+ "scripts/**"
+ ]
+ },
+ "apps/desktop": {
+ "entry": [
+ "src/preload/*.ts",
+ "src/renderer/*.html",
+ "scripts/*.{ts,mjs,cjs}"
+ ],
+ "project": [
+ "src/**/*.{ts,tsx}",
+ "scripts/**"
+ ],
+ "ignoreDependencies": [
+ "tailwindcss"
+ ]
+ },
+ "packages/core": {
+ "includeEntryExports": true,
+ "project": [
+ "src/**/*.ts"
+ ],
+ "ignore": [
+ "src/export/empty.ts"
+ ]
+ },
+ "packages/ui": {
+ "includeEntryExports": true,
+ "project": [
+ "src/**/*.{ts,tsx}"
+ ],
+ "ignore": [
+ "src/components/ui/**"
+ ]
+ },
+ "packages/capture-native": {
+ "ignore": [
+ "index.js"
+ ]
+ }
+ }
+ },
+ "size-limit": [
+ {
+ "name": "background",
+ "path": ".output/chrome-mv3/background.js",
+ "limit": "170 kB"
+ },
+ {
+ "name": "content script",
+ "path": ".output/chrome-mv3/content-scripts/*.js",
+ "limit": "40 kB"
+ },
+ {
+ "name": "pages",
+ "path": ".output/chrome-mv3/chunks/*.js",
+ "limit": "600 kB"
+ }
+ ],
+ "jscpd": {
+ "path": [
+ "src",
+ "apps/desktop/src",
+ "packages/core/src",
+ "packages/ui/src"
+ ],
+ "format": [
+ "typescript",
+ "tsx"
+ ],
+ "minLines": 12,
+ "minTokens": 80,
+ "threshold": 0.5,
+ "ignore": [
+ "**/__tests__/**",
+ "**/*.test.ts",
+ "**/*.test.tsx",
+ "**/components/ui/**"
+ ],
+ "reporters": [
+ "console"
+ ],
+ "silent": true
}
}