From 461bb8375759c2e29b0f1790f36a07421f3c0f68 Mon Sep 17 00:00:00 2001 From: pompydev Date: Tue, 25 Mar 2025 08:59:24 +0900 Subject: [PATCH] simplify gitignore file cleaning --- apps/blog/package.json | 3 +-- apps/www/package.json | 3 +-- package.json | 2 +- packages/content/package.json | 3 +-- packages/eslint-config/package.json | 3 +-- packages/tailwind-config/package.json | 3 +-- turbo.json | 3 --- 7 files changed, 6 insertions(+), 14 deletions(-) diff --git a/apps/blog/package.json b/apps/blog/package.json index 9d55deb..5ca358c 100644 --- a/apps/blog/package.json +++ b/apps/blog/package.json @@ -8,8 +8,7 @@ "lint": "oxlint && eslint .", "build": "next build", "postbuild": "next-sitemap && cp ../../packages/content/dist/rss.xml public/rss.xml", - "test:e2e": "playwright test", - "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .next .turbo build node_modules test-results" + "test:e2e": "playwright test" }, "devDependencies": { "@pompydev/content": "workspace:*", diff --git a/apps/www/package.json b/apps/www/package.json index 24c57ca..c423288 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -9,8 +9,7 @@ "lint": "oxlint && eslint .", "build": "vite build", "test:unit": "TZ=UTC jest", - "test:e2e": "playwright test", - "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo .svelte-kit test-results build node_modules vite.config.ts.timestamp-*" + "test:e2e": "playwright test" }, "dependencies": { "@sveltejs/vite-plugin-svelte": "^3.1.0" diff --git a/package.json b/package.json index 5e71948..8542431 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "turbo run build", "test:unit": "turbo run test:unit --parallel --continue", "test:e2e": "turbo run test:e2e --parallel --continue", - "i_am_sure_i_want_to_nuke_gitignored_files": "turbo run i_am_sure_i_want_to_nuke_gitignored_files && rm -rf node_modules .turbo .devenv .direnv .devenv.flake.nix" + "nuke": "git clean -dxf" }, "devDependencies": { "@pompydev/eslint-config": "workspace:*", diff --git a/packages/content/package.json b/packages/content/package.json index ec04379..dd8c90f 100644 --- a/packages/content/package.json +++ b/packages/content/package.json @@ -5,8 +5,7 @@ "scripts": { "dev": "nodemon -e md --watch markdown --exec pnpm build", "lint": "oxlint && eslint .", - "build": "rm -rf dist build && tsup && node build/index.js", - "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo build dist node_modules" + "build": "rm -rf dist build && tsup && node build/index.js" }, "dependencies": { "@microflash/remark-callout-directives": "^4.1.0", diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index ea2765a..efdab40 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -4,8 +4,7 @@ "type": "module", "main": "eslint.config.mjs", "scripts": { - "lint": "oxlint && eslint eslint.config.mjs", - "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo node_modules" + "lint": "oxlint && eslint eslint.config.mjs" }, "devDependencies": { "@eslint/js": "9.22.0", diff --git a/packages/tailwind-config/package.json b/packages/tailwind-config/package.json index 18f0273..3b24a20 100644 --- a/packages/tailwind-config/package.json +++ b/packages/tailwind-config/package.json @@ -8,8 +8,7 @@ "tailwind.config.js" ], "scripts": { - "lint": "oxlint && eslint .", - "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo node_modules" + "lint": "oxlint && eslint ." }, "devDependencies": { "tailwindcss": "^3.4.0" diff --git a/turbo.json b/turbo.json index bad371b..b8669c8 100644 --- a/turbo.json +++ b/turbo.json @@ -21,9 +21,6 @@ }, "lint": { "cache": false - }, - "i_am_sure_i_want_to_nuke_gitignored_files": { - "cache": false } } }