BindableProperty
This commit is contained in:
24
gulpfile.js
Normal file
24
gulpfile.js
Normal file
@@ -0,0 +1,24 @@
|
||||
var gulp = require('gulp');
|
||||
var ts = require('gulp-typescript');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var gulpif = require('gulp-if');
|
||||
var tsProject = ts.createProject('tsconfig.json');
|
||||
var del = require('del');
|
||||
|
||||
builder = function (production = true) {
|
||||
return function () {
|
||||
return tsProject
|
||||
.src()
|
||||
.pipe(gulpif(!production, sourcemaps.init()))
|
||||
.pipe(tsProject())
|
||||
.js.pipe(gulpif(!production, sourcemaps.write()))
|
||||
.pipe(gulp.dest('dist'));
|
||||
};
|
||||
};
|
||||
|
||||
gulp.task('clean', function () {
|
||||
return del('dist');
|
||||
});
|
||||
|
||||
gulp.task('build', builder(false));
|
||||
gulp.task('build:production', builder(true));
|
||||
Reference in New Issue
Block a user