Skip to content

Commit

Permalink
feat(build): Use gulp for building the lib
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Jun 6, 2019
1 parent 5904442 commit d68cf97
Show file tree
Hide file tree
Showing 3 changed files with 1,266 additions and 457 deletions.
29 changes: 29 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const ts = require('gulp-typescript');
const gulp = require('gulp');
const clean = require('gulp-clean');

const { join } = require('path');

const DIST = join(__dirname, 'dist');
const LIB = join(__dirname, 'lib');

const terminus = ts.createProject(join(__dirname, 'tsconfig.json'));

gulp.task('clean', () => {
return gulp.src(DIST).pipe(clean())
});

gulp.task('move', () => {
return gulp
.src(join(LIB, './**/*.proto'), { base: LIB })
.pipe(gulp.dest(join(DIST)));
});

gulp.task('build', () => {
return terminus
.src()
.pipe(terminus())
.pipe(gulp.dest(DIST));
});

gulp.task('default', gulp.series(['clean', 'build', 'move']));
Loading

0 comments on commit d68cf97

Please sign in to comment.