Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit f8312de

Browse files
author
vakrilov
committed
chore: vs code tasks
1 parent fd48b8a commit f8312de

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
"args": [ "--env.android", "--env.aot" ],
2020
"runtimeArgs": [ "--preserve-symlinks" ],
2121
"stopOnEntry": true,
22+
},
23+
{
24+
"type": "node",
25+
"request": "launch",
26+
"name": "TypeScriptApp Webpack",
27+
"cwd": "${workspaceFolder}/demo/TypeScriptApp",
28+
"program": "${workspaceFolder}/demo/TypeScriptApp/node_modules/.bin/webpack",
29+
"args": [ "--env.android" ],
30+
"stopOnEntry": true,
31+
"preLaunchTask": "npm:tsc"
2232
}
2333
]
2434
}

.vscode/tasks.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label":"npm:tsc",
8+
"type": "npm",
9+
"script": "tsc",
10+
"problemMatcher": []
11+
}
12+
]
13+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
"url": "https://github.com/NativeScript/nativescript-dev-webpack.git"
2929
},
3030
"scripts": {
31+
"tsc": "tsc",
3132
"postinstall": "node postinstall.js",
3233
"preuninstall": "node preuninstall.js",
3334
"postpack": "rm -rf node_modules",
34-
"prepare": "tsc && npm run jasmine",
35+
"prepare": "npm run tsc && npm run jasmine",
3536
"test": "npm run prepare && npm run jasmine",
3637
"jasmine": "jasmine --config=jasmine-config/jasmine.json",
3738
"version": "rm package-lock.json && conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
@@ -49,8 +50,8 @@
4950
"clean-webpack-plugin": "~1.0.0",
5051
"copy-webpack-plugin": "~4.6.0",
5152
"css-loader": "~2.1.1",
52-
"fork-ts-checker-webpack-plugin": "1.3.0",
5353
"extra-watch-webpack-plugin": "1.0.3",
54+
"fork-ts-checker-webpack-plugin": "1.3.0",
5455
"global-modules-path": "2.0.0",
5556
"minimatch": "3.0.4",
5657
"nativescript-hook": "0.2.4",

0 commit comments

Comments
 (0)