Skip to content

Commit

Permalink
removed unnecessary code, eliminated tmp directory, updated gitignore…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
jeffreysbrother committed Apr 25, 2016
1 parent 26c9d03 commit f862e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/templates/gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules
dist
.tmp
7 changes: 3 additions & 4 deletions app/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const reload = browserSync.reload;

gulp.task('html', () => {
return gulp.src('app/*.html')
.pipe($.useref({searchPath: ['.tmp', 'app', '.']}))
// .pipe($.if('*.html', $.htmlmin({collapseWhitespace: true})))
.pipe($.useref({searchPath: ['app', '.']}))
.pipe(inlineCss())
.pipe(gulp.dest('dist'));
});
Expand All @@ -38,15 +37,15 @@ gulp.task('extras', () => {
}).pipe(gulp.dest('dist'));
});

gulp.task('clean', del.bind(null, ['.tmp', 'dist']));
gulp.task('clean', del.bind(null, ['dist']));


gulp.task('serve', () => {
browserSync({
notify: false,
port: 9000,
server: {
baseDir: ['.tmp', 'app']
baseDir: ['app']
}
});

Expand Down

0 comments on commit f862e3c

Please sign in to comment.