Created
August 15, 2016 11:41
-
-
Save kendemu/baf384aba60460d69bc06faf70df8516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var cssmin = require('gulp-cssmin'); | |
var rename = require('gulp-rename'); | |
var concat = require("gulp-concat"); | |
var plumber = require("gulp-plumber"); | |
var minifyHTML = require('gulp-minify-html'); | |
var gutil = require('gulp-util'); | |
var ftp = require('vinyl-ftp'); | |
gulp.task('deploy', function(){ | |
var conn = ftp.create( { | |
host: 'ftp.hoge.com', | |
user: 'hoge', | |
password: 'hoge', | |
parallel: 10, | |
log: gutil.log | |
} ); | |
var globs = [ | |
'dist/css/**', | |
'dist/js/**', | |
'dist/**' | |
]; | |
return gulp.src( globs, { base: '.', buffer: false } ) | |
.pipe( conn.newer( '/public_html' ) ) | |
.pipe( conn.dest( '/public_html' ) ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment