Commit dfd68fa8 authored by Nikolay Gromov's avatar Nikolay Gromov

add deploy

parent 45466173
......@@ -12,5 +12,6 @@ node_modules/
*.txt
*.zip
.idea
.publish
ex_files
Thumbs.db
......@@ -29,6 +29,7 @@ const uglify = require('gulp-uglify');
const concat = require('gulp-concat');
const browserSync = require('browser-sync').create();
const replace = require('gulp-replace');
const ghPages = require('gulp-gh-pages');
const fs = require('fs');
// Запуск `NODE_ENV=production npm start [задача]` приведет к сборке без sourcemaps
......@@ -236,11 +237,16 @@ gulp.task('serve', function () {
server: dirs.build,
port: port,
notify: false,
startPath: '_blocks_library.html'
startPath: 'blocks_library.html'
});
browserSync.watch([dirs.build + '/**/*.*', '!' + dirs.build + + '/**/*.map.*']).on('change', browserSync.reload);
});
gulp.task('deploy', function() {
return gulp.src('./build/**/*')
.pipe(ghPages());
});
// Задача по умолчанию
gulp.task('default',
gulp.series('build', gulp.parallel('watch', 'serve'))
......
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