Add tasks for building the project
This commit is contained in:
parent
0fee992b83
commit
dbcfd2e148
85
.vscode/tasks.json
vendored
Normal file
85
.vscode/tasks.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
15
package.json
15
package.json
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue