Skip to content

Instantly share code, notes, and snippets.

@markrendle
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markrendle/3aee4dbb11f5941ac5c1 to your computer and use it in GitHub Desktop.
Save markrendle/3aee4dbb11f5941ac5c1 to your computer and use it in GitHub Desktop.
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