Add cleaning the build directory to the build process

This commit is contained in:
Jonas Lochmann
2020-09-28 02:00:00 +02:00
parent 8ebeadad5a
commit b17bc42a1e
2 changed files with 20 additions and 24 deletions
+3 -1
View File
@@ -8,7 +8,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"build": "npm run build:json && npm run build:ts && npm run lint && npm run build:doc",
"build": "npm run build:clean && npm run build:json && npm run build:ts && npm run lint && npm run build:doc",
"build:clean": "rimraf build",
"build:json": "node ./scripts/build-schemas.js",
"build:ts": "tsc",
"build:doc": "npm run build:doc:json",
@@ -39,6 +40,7 @@
"@types/socket.io": "^2.1.4",
"@types/tokgen": "^1.0.0",
"@types/umzug": "^2.2.3",
"rimraf": "^3.0.2",
"tslint": "^6.1.3",
"tslint-config-standard": "^9.0.0",
"typescript": "^3.8.3",