-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all packages and project structure
Switch to use `typings` over `tsd` Restructure to separate app and tests Add new module test Update custom typings as a single ambient file with example
- Loading branch information
1 parent
61d05ad
commit fc814c5
Showing
16 changed files
with
96 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/node_modules/ | ||
/build/ | ||
/typings/ | ||
/src/typings/ | ||
|
||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import 'source-map-support/register' | ||
import mymodule = require('./lib/mymodule') | ||
import {SayGoodbye} from './mymodule' | ||
|
||
console.log('Hey there, VSCode user!') | ||
|
||
mymodule.SayGoodbye(); | ||
SayGoodbye(console.log) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function SayGoodbye(log: (s: string) => void) { | ||
log("Goodbye :(") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare module "some_module" { | ||
function some_module(string: any): void; | ||
|
||
module some_module { | ||
} | ||
|
||
export = some_module; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as sinon from 'sinon' | ||
import {SayGoodbye} from '../app/mymodule' | ||
|
||
describe('My Module', () => { | ||
|
||
describe('#SayGoodbye', () => { | ||
|
||
it('should say goodbye', () => { | ||
let logSpy = sinon.spy() | ||
SayGoodbye(logSpy) | ||
|
||
sinon.assert.calledWith(logSpy, 'Goodbye :(') | ||
}) | ||
|
||
}) | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES5", | ||
"target": "es6", | ||
"module": "commonjs", | ||
"sourceMap": true, | ||
"outDir": "../build/", | ||
"removeComments": true | ||
} | ||
}, | ||
"exclude": [ | ||
"typings/browser.d.ts", | ||
"typings/browser" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "vscode-typescript-boilerplate", | ||
"version": false, | ||
"dependencies": { | ||
"sinon": "registry:npm/sinon#1.16.0+20160309002336" | ||
}, | ||
"ambientDependencies": { | ||
"mocha": "registry:dt/mocha#2.2.5+20160317120654", | ||
"node": "registry:dt/node#4.0.0+20160319033040" | ||
} | ||
} |