stellar-wallet-js-sdk
Version:
> # :warning: Alpha version. Don't use in production.
46 lines (37 loc) • 1.08 kB
JavaScript
;
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
gulp.task('default', ['build']);
gulp.task('build', function(done) {
runSequence('clean', ['build-browser'], done);
});
gulp.task('hooks:precommit', ['build'], function() {
return gulp.src('build/*')
.pipe(plugins.git.add());
});
gulp.task('build-browser', [], function() {
return gulp.src('index.js')
.pipe(plugins.webpack({
output: {
library: 'StellarWallet'
}
}))
.pipe(plugins.rename('stellar-wallet.js'))
.pipe(gulp.dest('build'))
.pipe(plugins.uglify())
.pipe(plugins.rename('stellar-wallet.min.js'))
.pipe(gulp.dest('build'));
});
gulp.task('clean', function () {
return gulp.src('build', { read: false })
.pipe(plugins.rimraf());
});
gulp.task('watch', ['build'], function() {
gulp.watch('lib/**/*', ['build']);
});
gulp.task('submit-coverage', function(cb) {
return gulp
.src("./coverage/**/lcov.info")
.pipe(plugins.coveralls());
});