Skip to content

Commit d5db7af

Browse files
committed
Merge pull request #1 from micflan/master
Feature suggestion: public folder
2 parents 60e8f8b + ac569ce commit d5db7af

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

gulpfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ var gulp = require('gulp'),
1717
gulp.task('styles', function() {
1818
return sass(['src/sass/screen.scss'], { style: 'expanded' })
1919
.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'))
20-
.pipe(gulp.dest('stylesheets'))
20+
.pipe(gulp.dest('public/stylesheets'))
2121
.pipe(rename({suffix: '.min'}))
2222
//.pipe(minifycss())
2323
//.pipe(cssshrink())
24-
.pipe(gulp.dest('stylesheets'))
24+
.pipe(gulp.dest('public/stylesheets'))
2525
.pipe(browserSync.reload({stream:true}));
2626
});
2727

@@ -38,10 +38,10 @@ gulp.task('scripts', function() {
3838
//.pipe(jshint.reporter('default'))
3939
.pipe(plumber())
4040
.pipe(concat('app.js'))
41-
.pipe(gulp.dest('javascripts'))
41+
.pipe(gulp.dest('public/javascripts'))
4242
.pipe(rename({suffix: '.min'}))
4343
.pipe(uglify())
44-
.pipe(gulp.dest('javascripts'))
44+
.pipe(gulp.dest('public/javascripts'))
4545
.pipe(browserSync.reload({stream:true}));
4646
});
4747

@@ -55,15 +55,15 @@ gulp.task('clean', function(cb) {
5555
gulp.task('browser-sync', ['styles', 'scripts'], function() {
5656
browserSync({
5757
server: {
58-
baseDir: "./",
58+
baseDir: "./public/",
5959
injectChanges: true // this is new
6060
}
6161
});
6262
});
6363

6464
gulp.task('watch', function() {
6565
// Watch .html files
66-
gulp.watch("*.html").on('change', browserSync.reload);
66+
gulp.watch("public/*.html").on('change', browserSync.reload);
6767
// Watch .sass files
6868
gulp.watch('src/sass/**/*.scss', ['styles', browserSync.reload]);
6969
// Watch .js files
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)