Add scripts for cleaning and rebuilding files

This commit is contained in:
Manuel Thalmann 2022-12-04 21:50:50 +01:00
parent cb8cd5c550
commit cb9de981bb
2 changed files with 8 additions and 1 deletions

1
package-lock.json generated
View file

@ -17,6 +17,7 @@
"cross-env": "^7.0.3",
"eslint": "^8.23.1",
"gulp": "^4.0.2",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"upath": "^2.0.1"
}

View file

@ -6,8 +6,13 @@
"author": "Manuel Thalmann <m@nuth.ch>",
"scripts": {
"gulp": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" gulp --",
"build": "npm run gulp Build",
"rebuild": "npm run clean && npm run build",
"watch": "npm run gulp Watch",
"clean": "rimraf ./lib",
"lint": "eslint --max-warnings 0 ./src .eslintrc.cjs",
"lint-ide": "npm run lint || exit 0"
"lint-ide": "npm run lint || exit 0",
"prepare": "npm run rebuild"
},
"devDependencies": {
"@manuth/eslint-plugin-typescript": "^4.0.0",
@ -19,6 +24,7 @@
"cross-env": "^7.0.3",
"eslint": "^8.23.1",
"gulp": "^4.0.2",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"upath": "^2.0.1"
}