-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
var gulp = require('gulp'), | ||
typescript = require('gulp-typescript'), | ||
sourcemaps = require('gulp-sourcemaps'); | ||
|
||
var paths = require('./paths'); | ||
|
||
var tsProject = { | ||
module: 'commonjs', | ||
target: 'es5', | ||
|
||
var tsProjectLib = typescript.createProject('tsconfig.json', { | ||
typescript: require('typescript') | ||
}; | ||
}); | ||
|
||
var tsProjectTest = typescript.createProject('test/tsconfig.json', { | ||
typescript: require('typescript') | ||
}); | ||
|
||
gulp.task('build', ['build-lib', 'build-tests']); | ||
|
||
function build(files) { | ||
function build(files, project) { | ||
var tsResult = gulp.src(files, { base: paths.projectRoot }) | ||
.pipe(sourcemaps.init()) | ||
.pipe(typescript(tsProject)); | ||
.pipe(typescript(project)); | ||
|
||
return tsResult.js | ||
.pipe(sourcemaps.write('.')) | ||
.pipe(gulp.dest(paths.distFolder)); | ||
} | ||
|
||
gulp.task('build-lib', function () { | ||
return build(paths.buildFiles); | ||
return build(paths.buildFiles, tsProjectLib); | ||
}); | ||
|
||
gulp.task('build-tests', function () { | ||
return build(paths.testFiles); | ||
return build(paths.testFiles, tsProjectTest); | ||
}); |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.