Add tasks for building the project

This commit is contained in:
Manuel Thalmann 2019-10-07 21:20:38 +00:00
parent 0fee992b83
commit dbcfd2e148
2 changed files with 99 additions and 1 deletions

85
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,85 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Debug",
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": "$tsc"
},
{
"label": "Release",
"type": "npm",
"script": "release",
"group": "build",
"problemMatcher": "$tsc"
},
{
"label": "Watch Debug",
"type": "npm",
"script": "watch",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
}
},
{
"label": "Watch Release",
"type": "npm",
"script": "watch-release",
"group": "build",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
}
},
{
"label": "Stop Debug",
"type": "npm",
"script": "stop",
"problemMatcher": [],
"presentation": {
"reveal": "never"
}
},
{
"label": "Stop Release",
"type": "npm",
"script": "stop-release",
"problemMatcher": [],
"presentation": {
"reveal": "never"
}
},
{
"label": "Rebuild",
"type": "npm",
"script": "rebuild",
"problemMatcher": "$tsc"
},
{
"label": "Rebuild Release",
"type": "npm",
"script": "rebuild-release",
"problemMatcher": "$tsc"
},
{
"label": "Lint",
"type": "npm",
"script": "lint",
"problemMatcher": "$tslint5",
"presentation": {
"reveal": "never"
}
}
]
}

View file

@ -1,7 +1,20 @@
{
"private": true,
"scripts": {
"initialize": "gulp Initialize"
"build": "gulp Build -t Debug",
"release": "gulp Build -t Release",
"rebuild": "npm run clean && npm run build",
"rebuild-release": "npm run clean && npm run release",
"watch": "gulp Watch -t Debug",
"watch-release": "gulp Watch -t Release",
"stop": "gulp Stop -t Debug",
"stop-release": "gulp Stop -t Release",
"clean": "gulp Clean",
"initialize": "gulp Initialize",
"lint": "npm run lint-gulp && npm run lint-project",
"lint-gulp": "tslint -p . -t verbose",
"lint-project": "tslint -p ./src/App -t verbose",
"prepare": "npm run rebuild"
},
"dependencies": {},
"devDependencies": {