Skip to content

Commit

Permalink
chore: add clean script (#160)
Browse files Browse the repository at this point in the history
I'm having quite a few issues with running this repo locally and therefore I
want a `clean` script to easily wipe `node_modules`, caches, etc.
  • Loading branch information
christianhg authored May 21, 2024
1 parent 68fcebc commit bc87070
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 52 deletions.
1 change: 1 addition & 0 deletions apps/example-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.1",
"scripts": {
"clean": "rimraf .turbo && rimraf .vercel && rimraf node_modules",
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
Expand Down
4 changes: 4 additions & 0 deletions apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.1",
"scripts": {
"clean": "rimraf dist && rimraf .turbo && rimraf node_modules",
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
Expand All @@ -21,5 +22,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"styled-components": "^6.1.0"
},
"devDependencies": {
"rimraf": "^5.0.7"
}
}
205 changes: 153 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"private": true,
"scripts": {
"clean": "turbo run clean && rimraf .turbo && rimraf node_modules",
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
Expand All @@ -11,6 +12,7 @@
"eslint": "^8.52.0",
"eslint-config-custom": "*",
"prettier": "^3.0.3",
"rimraf": "^5.0.7",
"turbo": "^1.10.16"
},
"name": "astro",
Expand Down
1 change: 1 addition & 0 deletions packages/sanity-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "3.0.1",
"description": "Official Sanity Astro integration",
"scripts": {
"clean": "rimraf dist && rimraf .turbo && rimraf node_modules",
"dev": "vite build --watch",
"build": "rimraf dist && vite build && npm run copyStudio",
"prepublishOnly": "npm run build",
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"clean": {
"cache": false
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**", "build/**", "public/**", ".vercel/output/**"]
Expand Down

0 comments on commit bc87070

Please sign in to comment.