Пример #1
0
gulp.task('ftp', function(){
	return gulp.src('build/**/*')
		.pipe(ftp({
			host: buildConfig.ftp.host,
			user: buildConfig.ftp.user,
			pass: buildConfig.ftp.pass,
			remotePath: buildConfig.ftp.remotePath
		}))
		.pipe(gutil.noop())

})
Пример #2
0
 }, function (promptResult) {
 	gulp.src(['apvWebApp/**'])
         .pipe(ftp({
         	host: 'heinersuter.ch',
         	user: '******',
         	pass: promptResult.pass,
         	remotePath: '/httpdocs'
         }))
         .pipe(gutil.noop(
         ))
         .on('end', done);
 }));
Пример #3
0
gulp.task( 'ftp-deploy', function() {
	var ftpConfig = gulpconfig.ftpConfig;

	gulp.src( gulpconfig.dirs.deploy )
	.pipe(
		ftp({
			host : ftpConfig.host,
			user : ftpConfig.user,
			pass : ftpConfig.password
		})
	);
});
Пример #4
0
gulp.task('ftp', function () {
  return gulp.src('build/**/*')
    .pipe(ftp({
      host: 'host',
      user: '******',
      pass: '******',
      remotePath: '/public_html/'
    }))
    // you need to have some kind of stream after gulp-ftp to make sure it's flushed 
    // this can be a gulp plugin, gulp.dest, or any kind of stream 
    // here we use a passthrough stream
});     
Пример #5
0
gulp.task('push', function () {
  return gulp.src('dist/**/*')
    .pipe(ftp({
      host: 'jupiter.effetto.pro',
      user: '******',
      pass: '******',
      remotePath: '/land/default'
    }))
    // you need to have some kind of stream after gulp-ftp to make sure it's flushed
    // this can be a gulp plugin, gulp.dest, or any kind of stream
    // here we use a passthrough stream
    .pipe(gutil.noop());
});
Пример #6
0
    function remoteFtp(cb) {
        let remotePath = config['ftp']['remotePath'] || "";
        let ftpConfig = _.extend(config['ftp'], {
            remotePath: path.join(remotePath, projectName)
        });
        let distPath = config['ftp']['includeHtml'] ? path.join(projectPath, './dist/**/*') : [path.join(projectPath, './dist/**/*'), path.join(projectPath, '!./dist/html/**/*.html')];


        gulp.src(distPath, {base: '.'})
            .pipe(ftp(ftpConfig))
            .on('end', function () {
                console.log('ftp success.');
                log('ftp success.');
                cb && cb();
            });
    }
Пример #7
0
function to (type) {
	let destination = secret.destinations[type];

    if (!destination) {
    	throw Error('Destination name not valid');
    }

	return gulp.src('./dist/**/*')
		.pipe(ftp({
			user: destination.username,
			pass: destination.password,
			host: destination.host,
			remotePath: destination.remotePath
		}))
		// you need to have some kind of stream after gulp-ftp to make sure it's flushed 
		// this can be a gulp plugin, gulp.dest, or any kind of stream 
		// here we use a passthrough stream 
		.pipe(gutil.noop());
}
Пример #8
0
gulp.task("upload",function(){
    return gulp.src('.cortex/built/**/*')
        .pipe(ftp(ftpconfig));
});
Пример #9
0
gulp.task('dist', function() {
    var ftpstream = ftp(ftpConfig);
    return gulp.src('dist/**/')
        .pipe(ftpstream)
        .pipe(gutil.noop());
});
Пример #10
0
gulp.task('goLive', function () {
    gulp.src('./src/**/*.*')
        .pipe(ftp(ftpConfig));
});
Пример #11
0
gulp.task('ftpControllers:deploy', function () {

    return gulp.src('./controllers/**/*')
        .pipe(ftp(ftpControllersConfig))
        .pipe(gutil.noop());
});
Пример #12
0
gulp.task('publish', ['pubImg','pubCSS','pubJS','pubDep','pubHTML'], function(){
	return gulp.src('*')
	.pipe(ftp(configFTP('')))
	.pipe(util.noop());
});
Пример #13
0
gulp.task('pubHTML', function(){
	return gulp.src('*.html')
	.pipe(ftp(configFTP('')))
	.pipe(util.noop());
});
Пример #14
0
gulp.task('pubJS', function(){
	return gulp.src('js/*.js')
	.pipe(ftp(configFTP('js')))
	.pipe(util.noop());
});
Пример #15
0
gulp.task('pubImg', function(arch){
	return gulp.src((arch === null ? 'images/*' : 'images/'+arch))
	.pipe(ftp(configFTP('images')))
	.pipe(util.noop());
});
Пример #16
0
gulp.task('pubWS', function(arch){
	return gulp.src((arch === null ? 'ws/*' : 'ws/'+arch))
	.pipe(ftp(configFTP('ws')))
	.pipe(util.noop());
});
Пример #17
0
gulp.task('ftp', function() {
  if (settings && settings.ftp) {
    return gulp.src(settings.ftp.src)
      .pipe(ftp(settings.ftp));
  }
});
Пример #18
0
gulp.task('ftpFront:bowerComponents', function () {
    return gulp.src('./lk/bower_components/**/*')
        .pipe(ftp(ftpFrontConfig))
        .pipe(gutil.noop());
});
Пример #19
0
gulp.task('ftp', function(){
  //アップロードするディレクトリを指定。
  gulp.src()
    .pipe(ftp(ftpOptions))
    .pipe(gutil.noop());
});
Пример #20
0
gulp.task('ftpFront:lk', function () {
    return gulp.src(['./lk/**/*', '!./lk/bower_components/**/*'])
        .pipe(ftp(ftpFrontConfig))
        .pipe(gutil.noop());
});