Skip to content

Commit

Permalink
Merge pull request #8 from bingnz/remove-gulp-util
Browse files Browse the repository at this point in the history
fix: remove dependency on gulp-util.
  • Loading branch information
bingnz authored Feb 10, 2018
2 parents 3f0c1ff + e73e0ca commit 786c78e
Show file tree
Hide file tree
Showing 6 changed files with 2,381 additions and 828 deletions.
29 changes: 19 additions & 10 deletions gulpfile.js → gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
var gulp = require('gulp');
var path = require('path');
var merge = require('merge2');
var plugins = require('gulp-load-plugins')();
var through2 = require('through2');
var os = require('os');
var lazypipe = require('lazypipe');
import gulp from 'gulp';
import path from 'path';
import merge from 'merge2';
const plugins = require('gulp-load-plugins')();
import lazypipe from 'lazypipe';
import del from 'del';

var tsProject = plugins.typescript.createProject('tsconfig.json', {
typescript: require('typescript')
Expand All @@ -19,7 +18,13 @@ function istanbulTypeScriptIgnores() {
.pipe(plugins.replace, /(var _this = _super\.call)/, ignoreReplacement)();
}

gulp.task('compile', function () {
function clean() {
return del(['release', 'coverage', '.nyc_output']);
}

gulp.task('clean', clean);

function compile() {
var tsResult = gulp.src(['src/**/*.ts', 'custom-typings/*.d.ts'])
.pipe(plugins.sourcemaps.init())
.pipe(tsProject());
Expand All @@ -37,6 +42,10 @@ gulp.task('compile', function () {
}))
.pipe(gulp.dest('release'))
]);
});
}

gulp.task('compile', compile);

const build = gulp.series('clean', 'compile');

gulp.task('default', ['compile']);
export default build;
Loading

0 comments on commit 786c78e

Please sign in to comment.