Skip to content

Aide à la publication de thème graphique personnalisé sur Kiubi

License

Notifications You must be signed in to change notification settings

Kiubi/kiubi-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kiubi-sync

Aide à la publication de thème graphique personnalisé sur Kiubi.

Installation

Installation avec npm:

$ npm install --save-dev kiubi-sync

Utilisation avec Gulp

const { watch } = require('gulp');
const ftpWrapper = require('kiubi-sync');

const ftp = new ftpWrapper({
	user: 'MY-USER',
	password: 'MY-PASSWORD',
});

function watchTask() {
	ftp.watch(watch('theme/**', { events: 'all' }));
}

function pullTask() {
	return ftp.pullAll('theme');
}

function deployTask() {
	return ftp.pushAll('theme');
}

exports.watch = watchTask;

exports.deploy = deployTask;

exports.pull = pullTask;

API

Surveille et publie les modifications locales des fichiers du thème graphique.

Params

  • watcher {chokidar}: Instance de chokidar

Example

ftp.watch(gulp.watch('theme/**', { events: 'all' }));

Rapatrie en local tous les fichiers du thème graphique.

Params

  • path {String}: Chemin

Return

  • {Promise}

Example

ftp.pullAll('theme');

Publie tous les fichiers du thème graphique.

Params

  • path {String}: Chemin

Return

  • {Promise}

Example

ftp.pushAll('theme');

À propos

Contribution

Pull requests et stars sont les bienvenues. Pour les bugs et les requêtes de fonctionnalités, merci d'ouvrir un rapport de bug.

License

Copyright © 2020, Kiubi. Released under the MIT License.

About

Aide à la publication de thème graphique personnalisé sur Kiubi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published