Skip to content

Commit 5973262

Browse files
committed
Change tsd with typings. Update build
1 parent 909a205 commit 5973262

File tree

5 files changed

+39
-57
lines changed

5 files changed

+39
-57
lines changed

gulpfile.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,28 @@
1919
"vscode": "^0.10.10"
2020
},
2121
"homepage": "https://www.nativescript.org/",
22-
"categories": ["Debuggers", "Other"],
22+
"categories": [
23+
"Debuggers",
24+
"Other"
25+
],
2326
"license": "SEE LICENSE IN LICENSE.txt",
2427
"dependencies": {
2528
"source-map": "^0.5.3",
2629
"vscode-debugprotocol": "^1.6.1",
2730
"vscode-debugadapter": "^1.6.1"
2831
},
2932
"devDependencies": {
30-
"gulp": "^3.9.0",
31-
"gulp-shell": "^0.5.2",
32-
"tsd": "^0.6.5",
3333
"tslint": "^3.5.0",
3434
"typescript": "^1.8.2",
35-
"vscode": "^0.11.x",
36-
"vsce": "^1.0.0"
37-
35+
"typings": "^0.7.9",
36+
"vsce": "^1.0.0",
37+
"vscode": "^0.11.x"
3838
},
3939
"scripts": {
40-
"postinstall": "node ./node_modules/vscode/bin/install"
40+
"postinstall": "node ./node_modules/vscode/bin/install && typings install",
41+
"clean": "git clean -fdx",
42+
"build": "tsc",
43+
"package": "vsce package"
4144
},
4245
"main": "./out/nativescript/nsMain",
4346
"activationEvents": [
@@ -57,16 +60,16 @@
5760
}
5861
],
5962
"keybindings": [
60-
{
61-
"command": "nativescript.runIos",
62-
"key": "ctrl+alt+i",
63-
"mac": "cmd+alt+i"
64-
},
65-
{
66-
"command": "nativescript.runAndroid",
67-
"key": "ctrl+alt+a",
68-
"mac": "cmd+alt+a"
69-
}
63+
{
64+
"command": "nativescript.runIos",
65+
"key": "ctrl+alt+i",
66+
"mac": "cmd+alt+i"
67+
},
68+
{
69+
"command": "nativescript.runAndroid",
70+
"key": "ctrl+alt+a",
71+
"mac": "cmd+alt+a"
72+
}
7073
],
7174
"debuggers": [
7275
{
@@ -81,7 +84,7 @@
8184
"program": "./out/webkit/webKitDebug.js",
8285
"runtime": "node",
8386
"initialConfigurations": [
84-
{
87+
{
8588
"name": "Launch on iOS Device",
8689
"type": "nativescript",
8790
"platform": "ios",
@@ -200,9 +203,9 @@
200203
"default": null
201204
},
202205
"emulator": {
203-
"type": "boolean",
204-
"description": "Whether the app to run in emulator or on a physical device.",
205-
"default": false
206+
"type": "boolean",
207+
"description": "Whether the app to run in emulator or on a physical device.",
208+
"default": false
206209
}
207210
}
208211
},
@@ -243,9 +246,9 @@
243246
"default": null
244247
},
245248
"emulator": {
246-
"type": "boolean",
247-
"description": "Whether the app to run in emulator or on a physical device.",
248-
"default": false
249+
"type": "boolean",
250+
"description": "Whether the app to run in emulator or on a physical device.",
251+
"default": false
249252
}
250253
}
251254
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"files": [
1313
// typescript definitions
14-
"typings/tsd.d.ts",
14+
"typings/main.d.ts",
1515
"custom-typings/es6-impl/es6-impl.d.ts",
1616
"webkit/webKitProtocol.d.ts",
1717

tsd.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

typings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "nativescript",
3+
"version": false,
4+
"ambientDependencies": {
5+
"es6-promise": "github:DefinitelyTyped/DefinitelyTyped/es6-promise/es6-promise.d.ts#81b951f1ac437d1eb5ff5171a0bfa6c467634b13",
6+
"es6-collections": "github:DefinitelyTyped/DefinitelyTyped/es6-collections/es6-collections.d.ts#81b951f1ac437d1eb5ff5171a0bfa6c467634b13",
7+
"source-map": "github:DefinitelyTyped/DefinitelyTyped/source-map/source-map.d.ts#bb45306d0fd8ce0852a8d24c023fd787f4151e65",
8+
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#8ea42cd8bb11863ed6f242d67c502288ebc45a7b"
9+
}
10+
}

0 commit comments

Comments
 (0)