Skip to content

Instantly share code, notes, and snippets.

@atticoos
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save atticoos/cee650e975a9eadc21b2 to your computer and use it in GitHub Desktop.

Select an option

Save atticoos/cee650e975a9eadc21b2 to your computer and use it in GitHub Desktop.
var gulp = require('gulp'),
concat = require('gulp-concat'),
templateCache = require('gulp-angular-templatecache');
gulp.task('compile', function () {
gulp.src('src/scripts/**/*.js')
.pipe(concat('main.js'))
.dest('dist/');
});
gulp.task('html2js', function () {
gulp.src('src/views/**/*.html')
.pipe(templateCache({
filename: 'main.tpls.js'
}))
.dest('dist/');
});
gulp.task('build', ['compile', 'html2js']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment