Skip to content

Commit ea0a19f

Browse files
committed
chore: add cache clearing scripts
1 parent d4af10c commit ea0a19f

File tree

7 files changed

+82
-2
lines changed

7 files changed

+82
-2
lines changed

package.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,20 @@
1616
"fix-format": "./scripts/fix-format.bash",
1717
"ff": "./scripts/fix-format.bash",
1818
"type-check-fix-format": "./scripts/type-check-fix-format.bash",
19-
"tff": "./scripts/type-check-fix-format.bash"
19+
"tff": "./scripts/type-check-fix-format.bash",
20+
"clear-cache:docusaurus": "./scripts/clear-cache/docusaurus.bash",
21+
"cc:docusaurus": "./scripts/clear-cache/docusaurus.bash",
22+
"clear-cache:eslint": "./scripts/clear-cache/eslint.bash",
23+
"cc:eslint": "./scripts/clear-cache/eslint.bash",
24+
"clear-cache:next": "./scripts/clear-cache/next.bash",
25+
"cc:next": "./scripts/clear-cache/next.bash",
26+
"clear-cache:nx": "./scripts/clear-cache/nx.bash",
27+
"cc:nx": "./scripts/clear-cache/nx.bash",
28+
"clear-cache:tsc": "./scripts/clear-cache/tsc.bash",
29+
"cc:tsc": "./scripts/clear-cache/tsc.bash",
30+
"clear-cache": "concurrently pnpm:clear-cache:*",
31+
"cc": "conc pnpm:cc:*",
32+
"delete-node-modules": "find apps libs -name node_modules -print -delete && rm -rf node_modules"
2033
},
2134
"private": true,
2235
"dependencies": {
@@ -81,6 +94,7 @@
8194
"@typescript-eslint/parser": "^5.36.1",
8295
"autoprefixer": "^10.4.14",
8396
"babel-jest": "28.1.1",
97+
"concurrently": "^8.0.1",
8498
"cypress": "^12.2.0",
8599
"dequal": "^2.0.3",
86100
"eslint": "~8.15.0",

pnpm-lock.yaml

+41-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/clear-cache/docusaurus.bash

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
find apps -name .docusaurus -print -delete

scripts/clear-cache/eslint.bash

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
rm -f .eslintcache

scripts/clear-cache/next.bash

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
find apps -name .next -print -delete

scripts/clear-cache/nx.bash

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
nx reset

scripts/clear-cache/tsc.bash

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
find apps libs -name tsconfig.tsbuildinfo -print -delete
6+
rm -rf dist/out-tsc

0 commit comments

Comments
 (0)