Skip to content

Instantly share code, notes, and snippets.

@markrendle
Last active Aug 29, 2015
Embed
What would you like to do?
Gulpfile December
/**
* 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