kiubi-sync

0.1.2 • Public • Published

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

watch

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' }));

pullAll

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

Params

  • path {String}: Chemin

Return

  • {Promise}

Example

ftp.pullAll('theme');

pushAll

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.

Readme

Keywords

none

Package Sidebar

Install

npm i kiubi-sync

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

16.9 kB

Total Files

8

Last publish

Collaborators

  • leguman