Commit 49501938 authored by Alexey Avdeev's avatar Alexey Avdeev

chore: replace gulp-gh-pages with gh-pages

parent 11321d8c
...@@ -6,7 +6,7 @@ const replace = require('gulp-replace'); ...@@ -6,7 +6,7 @@ const replace = require('gulp-replace');
const rsync = require('gulp-rsync'); const rsync = require('gulp-rsync');
const sequence = require('run-sequence'); const sequence = require('run-sequence');
const zip = require('gulp-zip'); const zip = require('gulp-zip');
const pages = require('gulp-gh-pages'); const ghpages = require('gh-pages');
const browserSync = require('browser-sync').create(); const browserSync = require('browser-sync').create();
gulp.task('prepare', () => { gulp.task('prepare', () => {
...@@ -77,8 +77,7 @@ gulp.task('zip', () => { ...@@ -77,8 +77,7 @@ gulp.task('zip', () => {
}); });
gulp.task('upload', () => { gulp.task('upload', () => {
return gulp.src('prepared/**') return ghpages.publish('prepared')
.pipe(pages())
}); });
gulp.task('archive', (callback) => { gulp.task('archive', (callback) => {
...@@ -98,7 +97,7 @@ gulp.task('publish', (callback) => { ...@@ -98,7 +97,7 @@ gulp.task('publish', (callback) => {
}); });
gulp.task('clean', () => { gulp.task('clean', () => {
return del('prepared/**'); return del('prepared/**')
}); });
gulp.task('serve', () => { gulp.task('serve', () => {
......
This diff is collapsed.
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
"devDependencies": { "devDependencies": {
"browser-sync": "^2.18.12", "browser-sync": "^2.18.12",
"del": "^3.0.0", "del": "^3.0.0",
"gh-pages": "^1.1.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-gh-pages": "^0.5.4",
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-replace": "^0.6.1", "gulp-replace": "^0.6.1",
"gulp-rsync": "0.0.8", "gulp-rsync": "0.0.8",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment