-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb7be46
commit 38cb2bb
Showing
16 changed files
with
735 additions
and
220 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
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,12 @@ | ||
# VS Code # | ||
.vscode | ||
|
||
# Dev # | ||
*.ts | ||
!*.d.ts | ||
*.spec.* | ||
gulpfile.js | ||
tslint.js | ||
tsconfig.json | ||
node_modules | ||
example |
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,25 @@ | ||
{ | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceRoot}/example/example-server.js", | ||
"cwd": "${workspaceRoot}", | ||
"outFiles": [], | ||
"sourceMaps": true | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Process", | ||
"port": 5858, | ||
"outFiles": [], | ||
"sourceMaps": true | ||
} | ||
] | ||
} |
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,40 @@ | ||
const gulp = require('gulp'), | ||
ts = require('gulp-typescript'), | ||
tslint = require('gulp-tslint'), | ||
jasmine = require('gulp-jasmine'), | ||
del = require('del'), | ||
merge = require('merge2'); | ||
|
||
// pull in the project TypeScript config | ||
const tsProject = ts.createProject('tsconfig.json'); | ||
|
||
gulp.task('clean', () => { | ||
return del(['dist']) | ||
}); | ||
|
||
gulp.task('transpile', () => { | ||
const tsResult = tsProject.src() | ||
.pipe(tsProject()); | ||
|
||
return merge([ | ||
tsResult.dts.pipe(gulp.dest('dist')), | ||
tsResult.js.pipe(gulp.dest('dist')) | ||
]); | ||
}); | ||
|
||
gulp.task('lint', () => { | ||
return gulp.src('./src/**/*.ts') | ||
.pipe(tslint()) | ||
.pipe(tslint.report()); | ||
}); | ||
|
||
gulp.task('test', () => { | ||
gulp.src('dist/*.spec.js') | ||
.pipe(jasmine()); | ||
}); | ||
|
||
gulp.task('watch', ['lint', 'transpile', 'test'], () => { | ||
gulp.watch('src/**/*.ts', ['lint', 'transpile']); | ||
}); | ||
|
||
gulp.task('default', ['clean', 'lint', 'transpile']); |
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
Oops, something went wrong.