Skip to content

Commit

Permalink
change app to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingeek committed Oct 21, 2016
1 parent 590caf6 commit 59b656a
Show file tree
Hide file tree
Showing 56 changed files with 12 additions and 12 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var browserSync = require('browser-sync');
gulp.task('browser-sync', function () {
browserSync({
server: {
baseDir: "./app/"
baseDir: "./docs/"
}
});
});
Expand All @@ -25,13 +25,13 @@ gulp.task('bs-reload', function () {
});

gulp.task('images', function () {
gulp.src('app/images/**/*')
gulp.src('docs/images/**/*')
.pipe(cache(imagemin({optimizationLevel: 3, progressive: true, interlaced: true})))
.pipe(gulp.dest('app/images/'));
.pipe(gulp.dest('docs/images/'));
});

gulp.task('styles', function () {
gulp.src(['app/scss/style.scss'])
gulp.src(['docs/scss/style.scss'])
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
Expand All @@ -40,32 +40,32 @@ gulp.task('styles', function () {
}))
.pipe(sass())
.pipe(autoprefixer('last 2 versions'))
.pipe(gulp.dest('app/css/'))
.pipe(gulp.dest('docs/css/'))
.pipe(rename({suffix: '.min'}))
.pipe(minifycss())
.pipe(gulp.dest('app/css/'))
.pipe(gulp.dest('docs/css/'))
.pipe(browserSync.reload({stream: true}));
});

// gulp.task('scripts', function () {
// return gulp.src('app/js/**/*.js')
// return gulp.src('docs/js/**/*.js')
// .pipe(plumber({
// errorHandler: function (error) {
// console.log(error.message);
// this.emit('end');
// }
// }))
// .pipe(concat('main.js'))
// .pipe(gulp.dest('app/js/'))
// .pipe(gulp.dest('docs/js/'))
// .pipe(rename({suffix: '.min'}))
// .pipe(uglify())
// .pipe(gulp.dest('app/js/'))
// .pipe(gulp.dest('docs/js/'))
// .pipe(browserSync.reload({stream: true}))
// });

gulp.task('default', ['browser-sync'], function () {
gulp.watch("app/scss/**/*.scss", ['styles']);
gulp.watch("app/js/**/*.js");
// gulp.watch("app/js/**/*.js", ['scripts']);
gulp.watch("docs/scss/**/*.scss", ['styles']);
gulp.watch("docs/js/**/*.js");
// gulp.watch("docs/js/**/*.js", ['scripts']);
gulp.watch("*.html", ['bs-reload']);
});

0 comments on commit 59b656a

Please sign in to comment.