@microsoft/paris
Advanced tools
Comparing version 1.7.1 to 1.7.2
const gulp = require('gulp'); | ||
const ts = require('gulp-typescript'); | ||
const clean = require('gulp-clean'); | ||
const runSequence = require('run-sequence'); | ||
const merge = require('merge2'); | ||
gulp.task('build', ["clean"], function() { | ||
function cleanTask() { | ||
const tsProject = ts.createProject('tsconfig.lib.json'); | ||
const merge = require('merge2'); | ||
return gulp.src(tsProject.config.compilerOptions.outDir, { read: false, allowEmpty: true }) | ||
.pipe(clean()); | ||
} | ||
var tsResult = tsProject.src() | ||
function build() { | ||
const tsProject = ts.createProject('tsconfig.lib.json'); | ||
const tsResult = tsProject.src() | ||
.pipe(tsProject()); | ||
@@ -20,17 +25,7 @@ | ||
]); | ||
}); | ||
} | ||
gulp.task('clean', function () { | ||
const tsProject = ts.createProject('tsconfig.lib.json'); | ||
return gulp.src(tsProject.config.compilerOptions.outDir, { read: false }) | ||
.pipe(clean()); | ||
}); | ||
gulp.task('watch', ['default'], function() { | ||
gulp.watch('src/*.ts', ['default']); | ||
}); | ||
gulp.task('default', [], function(cb) { | ||
runSequence('clean', 'build', cb); | ||
}); | ||
gulp.task('clean', cleanTask); | ||
gulp.task('build', gulp.series('clean', build)); | ||
gulp.task('default', gulp.task('build')); | ||
gulp.task('watch', gulp.series('default'), () => gulp.watch('src/*.ts', ['default'])); |
{ | ||
"name": "@microsoft/paris", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "Library for the implementation of Domain Driven Design with TypeScript + RxJS", | ||
@@ -60,6 +60,6 @@ "repository": { | ||
"core-js": ">=2.4.1", | ||
"gulp": "^3.9.1", | ||
"gulp": "^4.0.2", | ||
"gulp-clean": "^0.3.2", | ||
"gulp-concat": "^2.6.1", | ||
"gulp-typescript": "^3.1.3", | ||
"gulp-typescript": "^5.0.1", | ||
"husky": "^1.0.0-rc.13", | ||
@@ -66,0 +66,0 @@ "intl": "^1.2.5", |
260138
5265