Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Алексей authored and Алексей committed May 3, 2018
1 parent 2bc44c7 commit 7dd9980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var syntax = 'sass'; // Syntax: sass or scss;
var gulp = require('gulp'),
gutil = require('gulp-util' ),
sass = require('gulp-sass'),
browsersync = require('browser-sync'),
browserSync = require('browser-sync'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
cleancss = require('gulp-clean-css'),
Expand All @@ -13,7 +13,7 @@ var gulp = require('gulp'),
rsync = require('gulp-rsync');

gulp.task('browser-sync', function() {
browsersync({
browserSync({
server: {
baseDir: 'app'
},
Expand All @@ -31,7 +31,7 @@ gulp.task('styles', function() {
.pipe(autoprefixer(['last 15 versions']))
.pipe(cleancss( {level: { 1: { specialComments: 0 } } })) // Opt., comment out when debugging
.pipe(gulp.dest('app/css'))
.pipe(browsersync.reload( {stream: true} ))
.pipe(browserSync.stream())
});

gulp.task('js', function() {
Expand All @@ -42,7 +42,7 @@ gulp.task('js', function() {
.pipe(concat('scripts.min.js'))
// .pipe(uglify()) // Mifify js (opt.)
.pipe(gulp.dest('app/js'))
.pipe(browsersync.reload({ stream: true }))
.pipe(browserSync.reload({ stream: true }))
});

gulp.task('rsync', function() {
Expand All @@ -63,7 +63,7 @@ gulp.task('rsync', function() {
gulp.task('watch', ['styles', 'js', 'browser-sync'], function() {
gulp.watch('app/'+syntax+'/**/*.'+syntax+'', ['styles']);
gulp.watch(['libs/**/*.js', 'app/js/common.js'], ['js']);
gulp.watch('app/*.html', browsersync.reload)
gulp.watch('app/*.html', browserSync.reload)
});

gulp.task('default', ['watch']);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"browser-sync": "^2.24.3",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^5.0.0",
"gulp-clean-css": "^3.9.3",
"gulp-clean-css": "^3.9.4",
"gulp-concat": "^2.6.1",
"gulp-notify": "^3.2.0",
"gulp-rename": "^1.2.2",
Expand Down

0 comments on commit 7dd9980

Please sign in to comment.