diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..0e4c5a2 --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index c04015b..30ae629 100644 --- a/package.json +++ b/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": {