Commit 719f227a authored by Nikolay Gromov's avatar Nikolay Gromov

deploy add

parent dfd68fa8
...@@ -242,7 +242,9 @@ gulp.task('serve', function () { ...@@ -242,7 +242,9 @@ gulp.task('serve', function () {
browserSync.watch([dirs.build + '/**/*.*', '!' + dirs.build + + '/**/*.map.*']).on('change', browserSync.reload); browserSync.watch([dirs.build + '/**/*.*', '!' + dirs.build + + '/**/*.map.*']).on('change', browserSync.reload);
}); });
// Отправка в GH pages (ветку gh-pages репозитория)
gulp.task('deploy', function() { gulp.task('deploy', function() {
console.log('---------- Публикация на GH pages: ' + pjson.config.deployURL);
return gulp.src('./build/**/*') return gulp.src('./build/**/*')
.pipe(ghPages()); .pipe(ghPages());
}); });
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
"directories": { "directories": {
"source": "./src", "source": "./src",
"build": "./build" "build": "./build"
} },
"deployURL": "http://nicothin.github.io/NTH-start-project/blocks_library.html"
} }
} }
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