0.1.5 • Published 6 months ago

kiubi-sync v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 months ago

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.

0.1.5

6 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago