-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (24 loc) · 718 Bytes
/
gulpfile.js
File metadata and controls
32 lines (24 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Include gulp
var gulp = require('gulp');
// Include Gulp Plugins
var ts = require('gulp-typescript');
var gls = require('gulp-live-server');
var path = require('path');
/**
* Tasks for building, and testing angular-log
*/
// build
var tsProject = ts.createProject('src/tsconfig.json', {});
gulp.task('build_src', function() {
var tsResult = gulp.src([
'node_modules/angular2/typings/browser.d.ts',
'src/*.ts'
])
.pipe(ts(tsProject, ts.reporter.defaultReporter()));
tsResult.dts.pipe(gulp.dest('./lib'));
return tsResult.js.pipe(gulp.dest('./lib'));
});
// build watch
gulp.task('watch_src', function() {
gulp.watch(['src/*.ts'], ['build_src']);
});