Last active
August 29, 2015 14:11
-
-
Save markrendle/3aee4dbb11f5941ac5c1 to your computer and use it in GitHub Desktop.
Gulpfile December
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
/** | |
* Created by Mark on 15/12/2014. | |
*/ | |
/* global require */ | |
var gulp = require('gulp'), | |
typescript = require('gulp-tsc'), | |
html2js = require('gulp-ng-html2js'), | |
concat = require('gulp-concat'); | |
gulp.task("typescript", function() { | |
gulp.src(["ts/app.ts"]) | |
.pipe(typescript({ | |
target: 'ES5', | |
out: 'app.js', | |
outDir: 'build', | |
emitError: true, | |
sourcemap: true | |
})) | |
.pipe(gulp.dest("public/javascript")); | |
}); | |
gulp.task('html', function() { | |
return gulp.src(['html/*.html','html/**/*.html']) | |
.pipe(html2js({ moduleName: 'zoo.templates', | |
declareModule: false})) | |
.pipe(concat('templates.js') | |
.pipe(gulp.dest('scripts')); | |
}); | |
gulp.task("default", ["typescript"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment