forked from FoundKeyGang/FoundKey
Use native shell commands for clean/clean-all
This commit is contained in:
parent
40683b0e10
commit
5fb294e7d7
7 changed files with 13 additions and 34 deletions
|
@ -26,8 +26,8 @@
|
||||||
"mocha": "yarn workspace backend run mocha",
|
"mocha": "yarn workspace backend run mocha",
|
||||||
"test": "yarn mocha",
|
"test": "yarn mocha",
|
||||||
"format": "gulp format",
|
"format": "gulp format",
|
||||||
"clean": "node ./scripts/clean.js",
|
"clean": "yarn workspaces foreach run clean && rm -rf built/",
|
||||||
"clean-all": "node ./scripts/clean-all.js",
|
"clean-all": "yarn workspaces foreach run clean-all && rm -rf built/ node_modules/",
|
||||||
"cleanall": "yarn clean-all"
|
"cleanall": "yarn clean-all"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json || echo done. && tsc-alias -p tsconfig.json",
|
"build": "tsc -p tsconfig.json || echo done. && tsc-alias -p tsconfig.json",
|
||||||
|
"clean": "rm -rf built/ tsconfig.tsbuildinfo",
|
||||||
|
"clean-all": "yarn clean && rm -rf node_modules/",
|
||||||
"watch": "node watch.mjs",
|
"watch": "node watch.mjs",
|
||||||
"lint": "eslint src --ext .ts",
|
"lint": "eslint src --ext .ts",
|
||||||
"mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha",
|
"mocha": "cross-env NODE_ENV=test TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha",
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "vite build --watch --mode development",
|
"watch": "vite build --watch --mode development",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint": "eslint src --ext .ts,.vue"
|
"lint": "eslint src --ext .ts,.vue",
|
||||||
|
"clean": "rm -rf built/",
|
||||||
|
"clean-all": "yarn clean && rm -rf node_modules/"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"chokidar": "^3.3.1",
|
"chokidar": "^3.3.1",
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
"api-prod": "npx api-extractor run --verbose",
|
"api-prod": "npx api-extractor run --verbose",
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
||||||
"jest": "jest --coverage --detectOpenHandles",
|
"jest": "jest --coverage --detectOpenHandles",
|
||||||
"test": "yarn jest && yarn tsd"
|
"test": "yarn jest && yarn tsd",
|
||||||
|
"clean": "rm -rf built/",
|
||||||
|
"clean-all": "yarn clean && rm -rf node_modules/"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/api-extractor": "^7.19.3",
|
"@microsoft/api-extractor": "^7.19.3",
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "node build.js watch",
|
"watch": "node build.js watch",
|
||||||
"build": "node build.js",
|
"build": "node build.js",
|
||||||
"lint": "eslint src --ext .ts"
|
"lint": "eslint src --ext .ts",
|
||||||
|
"clean": "rm -rf built/",
|
||||||
|
"clean-all": "yarn clean && rm -rf node_modules/"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.14.13",
|
"esbuild": "^0.14.13",
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
(async () => {
|
|
||||||
fs.rmSync(__dirname + '/../packages/backend/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/backend/tsconfig.tsbuildinfo', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/backend/node_modules', { recursive: true, force: true });
|
|
||||||
|
|
||||||
fs.rmSync(__dirname + '/../packages/client/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/client/node_modules', { recursive: true, force: true });
|
|
||||||
|
|
||||||
fs.rmSync(__dirname + '/../packages/foundkey-js/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/foundkey-js/node_modules', { recursive: true, force: true });
|
|
||||||
|
|
||||||
fs.rmSync(__dirname + '/../packages/sw/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/sw/node_modules', { recursive: true, force: true });
|
|
||||||
|
|
||||||
fs.rmSync(__dirname + '/../built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../node_modules', { recursive: true, force: true });
|
|
||||||
})();
|
|
|
@ -1,10 +0,0 @@
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
(async () => {
|
|
||||||
fs.rmSync(__dirname + '/../packages/backend/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/backend/tsconfig.tsbuildinfo', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/client/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/foundkey-js/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../packages/sw/built', { recursive: true, force: true });
|
|
||||||
fs.rmSync(__dirname + '/../built', { recursive: true, force: true });
|
|
||||||
})();
|
|
Loading…
Reference in a new issue