Skip to content

Commit 986eeb6

Browse files
committed
Change project structure to make adding tests easier
1 parent ae06b12 commit 986eeb6

27 files changed

+16
-18
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.DS_Store
22
out/
33
node_modules/
4-
typings/
4+
src/typings/
55

6-
nativescript-vscode-extension*.vsix
6+
npm-debug.log
7+
nativescript-*.vsix
78

.vscodeignore

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
**/*.ts
22
**/*.map
3-
.vscode/**
4-
typings/**
3+
node_modules/.bin/**
4+
src/**
55
images/screenshots/**
66
*.vsix
7-
gulpfile.js
8-
tsconfig.json
9-
tsd.json
10-
tslint.json
117
.gitignore
12-
13-
node_modules/.bin/**
8+
CHANGELOG.md
9+
CONTRIBUTING.md
10+
npm-debug.log

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"vscode": "^0.11.x"
3838
},
3939
"scripts": {
40-
"postinstall": "node ./node_modules/vscode/bin/install && typings install",
40+
"postinstall": "node ./node_modules/vscode/bin/install && cd src && typings install",
4141
"clean": "git clean -fdx",
42-
"build": "tsc",
42+
"build": "tsc -p ./src",
4343
"package": "vsce package"
4444
},
4545
"main": "./out/nativescript/nsMain",

.vscode/launch.json renamed to src/.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"name": "launch as server",
66
"type": "node",
77
"request": "launch",
8-
"program": "${workspaceRoot}/out/webkit/webKitDebug.js",
8+
"program": "${workspaceRoot}/../out/webkit/webKitDebug.js",
99
"runtimeArgs": ["--nolazy"],
1010
"stopOnEntry": false,
1111
"args": [ "--server=4712" ],
1212
"sourceMaps": true,
13-
"outDir": "${workspaceRoot}/out",
13+
"outDir": "${workspaceRoot}/../out",
1414
"cwd": "${workspaceRoot}"
1515
},
1616
{
@@ -24,7 +24,7 @@
2424
],
2525
"stopOnEntry": false,
2626
"sourceMaps": true,
27-
"outDir": "${workspaceRoot}/out"
27+
"outDir": "${workspaceRoot}/../out"
2828
}
2929
]
3030
}
File renamed without changes.

.vscode/tasks.json renamed to src/.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"version": "0.1.0",
33
"windows": {
4-
"command": ".\\node_modules\\.bin\\tsc"
4+
"command": "..\\node_modules\\.bin\\tsc"
55
},
6-
"command": "./node_modules/.bin/tsc",
6+
"command": "../node_modules/.bin/tsc",
77
"isShellCommand": true,
88
"args": ["-p", "."],
99
"problemMatcher": "$tsc"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.json renamed to src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"noImplicitAny": false,
88
"removeComments": false,
99
"preserveConstEnums": true,
10-
"outDir": "out"
10+
"outDir": "../out"
1111
},
1212
"files": [
1313
// typescript definitions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)