Skip to content

Commit

Permalink
readme update and don t dump html pages into build (as already in tem…
Browse files Browse the repository at this point in the history
…plate js file)
  • Loading branch information
timhc22 committed Apr 20, 2015
1 parent 6c172b3 commit b1a8e5a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### To get started
npm install
gulp


### IMPORTANT
ALL VIEWS HTML FILES GET COMPILED INTO A TEMPLATE JS FILE. INDEX.HTML DOESN'T



### Stripped down gulp-starter
Smaller, stripped back version of gulp-starter intended to be used on smaller projects/for prototyping.
The immediate compilation of sass files and auto browser reloading is excellent!
Expand All @@ -6,8 +16,6 @@ The immediate compilation of sass files and auto browser reloading is excellent!

### ToDo

Combine js files
bem the nav



Expand Down
3 changes: 2 additions & 1 deletion gulpconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = {
},
//TODO CURRENTLY TEMPLATES ARE IN JS AND HTML FORMAT (WHEN USING JST)
markup: {
src: SRC + "/views/**",
//src: SRC + "/views/**",
src: SRC + "/views/index.html",
dest: DEST
},
//compiled js file with html templates
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ gulp.task('uglifyJs', ['browserify'], function() {
gulp.task('watch', ['watchify','browserSync'], function() {
gulp.watch(config.sass.src, ['sass']);
gulp.watch(config.images.src, ['images']);
gulp.watch(config.markup.src, ['compileTemplates', 'markup']);
gulp.watch(config.markup.src, ['markup']);
gulp.watch(config.templates.src, ['compileTemplates']);
// Watchify will watch and recompile our JS, so no need to gulp.watch it
});

Expand Down

0 comments on commit b1a8e5a

Please sign in to comment.