fix lib inclusion for tests

This commit is contained in:
Philipp Kunz 2017-01-15 21:45:08 +01:00
parent 329e0dc101
commit 58cea5cb48
2 changed files with 6 additions and 6 deletions

6
dist/mod02/index.js vendored
View File

@ -29,13 +29,12 @@ let mocha = function (configArg) {
target: 'ES5', target: 'ES5',
emitDecoratorMetadata: true, emitDecoratorMetadata: true,
experimentalDecorators: true, experimentalDecorators: true,
lib: ['es2015.promise', 'es5'] lib: ['ES2015.Promise', 'ES5', 'ES2015.Generator']
}), }),
plugins.gulpIstanbul({}), plugins.gulpIstanbul({}),
plugins.gulpSourcemaps.write(), plugins.gulpSourcemaps.write(),
plugins.gulpFunction.forEach((file) => __awaiter(this, void 0, void 0, function* () { plugins.gulpFunction.forEach((file) => __awaiter(this, void 0, void 0, function* () {
file.path = file.path.replace(paths.tsDir, paths.distDir); file.path = file.path.replace(paths.tsDir, paths.distDir);
console.log(file.path);
})), })),
plugins.gulpInjectModules(), plugins.gulpInjectModules(),
plugins.through2.obj((file, enc, cb) => { plugins.through2.obj((file, enc, cb) => {
@ -49,7 +48,8 @@ let mocha = function (configArg) {
plugins.gulpTypeScript({ plugins.gulpTypeScript({
target: 'ES5', target: 'ES5',
emitDecoratorMetadata: true, emitDecoratorMetadata: true,
experimentalDecorators: true experimentalDecorators: true,
lib: ['ES2015.Promise', 'ES5', 'ES2015.Generator']
}), }),
plugins.gulpInjectModules(), plugins.gulpInjectModules(),
plugins.gulpMocha(), plugins.gulpMocha(),

View File

@ -25,14 +25,13 @@ let mocha = function (configArg: INpmtsConfig) {
target: 'ES5', target: 'ES5',
emitDecoratorMetadata: true, emitDecoratorMetadata: true,
experimentalDecorators: true, experimentalDecorators: true,
lib: ['es2015.promise','es5'] lib: ['ES2015.Promise','ES5','ES2015.Generator']
}), }),
plugins.gulpIstanbul({ plugins.gulpIstanbul({
}), }),
plugins.gulpSourcemaps.write(), plugins.gulpSourcemaps.write(),
plugins.gulpFunction.forEach(async file => { plugins.gulpFunction.forEach(async file => {
file.path = file.path.replace(paths.tsDir, paths.distDir) file.path = file.path.replace(paths.tsDir, paths.distDir)
console.log(file.path)
}), }),
plugins.gulpInjectModules(), plugins.gulpInjectModules(),
plugins.through2.obj( plugins.through2.obj(
@ -50,7 +49,8 @@ let mocha = function (configArg: INpmtsConfig) {
plugins.gulpTypeScript({ plugins.gulpTypeScript({
target: 'ES5', target: 'ES5',
emitDecoratorMetadata: true, emitDecoratorMetadata: true,
experimentalDecorators: true experimentalDecorators: true,
lib: ['ES2015.Promise','ES5','ES2015.Generator']
}), }),
plugins.gulpInjectModules(), plugins.gulpInjectModules(),
plugins.gulpMocha(), plugins.gulpMocha(),