We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de5b09d commit ac3c183Copy full SHA for ac3c183
gulpfile.js
@@ -0,0 +1,32 @@
1
+var gulp = require('gulp');
2
+var shell = require('gulp-shell');
3
+
4
+var PATHS = {
5
+ src: {
6
+ ts: '*.ts',
7
+ }
8
+};
9
10
+gulp.task('ts', function () {
11
+ return gulp.src(PATHS.src.ts, {read: false})
12
+ .pipe(shell(['node tsc/tsc.js -m amd <%= file.path %>'], {}));
13
+});
14
15
+gulp.task('play', ['default'], function () {
16
17
+ var http = require('http');
18
+ var connect = require('connect');
19
+ var serveStatic = require('serve-static');
20
+ var open = require('open');
21
22
+ var port = 9000, app;
23
24
+ gulp.watch(PATHS.src.ts, ['ts']);
25
26
+ app = connect().use(serveStatic(__dirname + '/')); // serve everything that is static
27
+ http.createServer(app).listen(port, function () {
28
+ open('http://localhost:' + port);
29
+ });
30
31
32
+gulp.task('default', ['ts']);
0 commit comments