change lib inclusion for tests
This commit is contained in:
parent
1d662ddef4
commit
61b7bbb168
23
dist/mod02/index.js
vendored
23
dist/mod02/index.js
vendored
@ -14,6 +14,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||||||
const plugins = require("./mod02.plugins");
|
const plugins = require("./mod02.plugins");
|
||||||
const paths = require("../npmts.paths");
|
const paths = require("../npmts.paths");
|
||||||
const q = require("smartq");
|
const q = require("smartq");
|
||||||
|
let testTypeScriptConfig = {
|
||||||
|
target: 'ES5',
|
||||||
|
emitDecoratorMetadata: true,
|
||||||
|
experimentalDecorators: true,
|
||||||
|
lib: [
|
||||||
|
'DOM',
|
||||||
|
'ESNext'
|
||||||
|
]
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* runs mocha
|
* runs mocha
|
||||||
* @returns INpmtsConfig
|
* @returns INpmtsConfig
|
||||||
@ -31,12 +40,7 @@ let tap = function (configArg) {
|
|||||||
let testableFilesSmartstream = new plugins.smartstream.Smartstream([
|
let testableFilesSmartstream = new plugins.smartstream.Smartstream([
|
||||||
plugins.smartgulp.src([plugins.path.join(paths.cwd, './ts/**/*.ts')]),
|
plugins.smartgulp.src([plugins.path.join(paths.cwd, './ts/**/*.ts')]),
|
||||||
plugins.gulpSourcemaps.init(),
|
plugins.gulpSourcemaps.init(),
|
||||||
plugins.gulpTypeScript({
|
plugins.gulpTypeScript(testTypeScriptConfig),
|
||||||
target: 'ES5',
|
|
||||||
emitDecoratorMetadata: true,
|
|
||||||
experimentalDecorators: true,
|
|
||||||
lib: ['DOM', 'ES5', 'ES2015.Promise', 'ES2015.Generator', 'ES2015.Iterable']
|
|
||||||
}),
|
|
||||||
plugins.gulpSourcemaps.write(),
|
plugins.gulpSourcemaps.write(),
|
||||||
npmtsTapBuffer.pipeTestableFiles(),
|
npmtsTapBuffer.pipeTestableFiles(),
|
||||||
plugins.smartstream.cleanPipe()
|
plugins.smartstream.cleanPipe()
|
||||||
@ -47,12 +51,7 @@ let tap = function (configArg) {
|
|||||||
let testFilesSmartstream = new plugins.smartstream.Smartstream([
|
let testFilesSmartstream = new plugins.smartstream.Smartstream([
|
||||||
plugins.smartgulp.src([plugins.path.join(paths.cwd, 'test/*.ts')]),
|
plugins.smartgulp.src([plugins.path.join(paths.cwd, 'test/*.ts')]),
|
||||||
plugins.gulpSourcemaps.init(),
|
plugins.gulpSourcemaps.init(),
|
||||||
plugins.gulpTypeScript({
|
plugins.gulpTypeScript(testTypeScriptConfig),
|
||||||
target: 'ES5',
|
|
||||||
emitDecoratorMetadata: true,
|
|
||||||
experimentalDecorators: true,
|
|
||||||
lib: ['DOM', 'ES5', 'ES2015.Promise', 'ES2015.Generator', 'ES2015.Iterable']
|
|
||||||
}),
|
|
||||||
plugins.gulpSourcemaps.write(),
|
plugins.gulpSourcemaps.write(),
|
||||||
npmtsTapBuffer.pipeTestFiles(),
|
npmtsTapBuffer.pipeTestFiles(),
|
||||||
plugins.smartstream.cleanPipe()
|
plugins.smartstream.cleanPipe()
|
||||||
|
@ -10,6 +10,16 @@ import * as q from 'smartq'
|
|||||||
import { INpmtsConfig } from '../npmts.config'
|
import { INpmtsConfig } from '../npmts.config'
|
||||||
import { Smartfile } from 'smartfile'
|
import { Smartfile } from 'smartfile'
|
||||||
|
|
||||||
|
let testTypeScriptConfig = {
|
||||||
|
target: 'ES5',
|
||||||
|
emitDecoratorMetadata: true,
|
||||||
|
experimentalDecorators: true,
|
||||||
|
lib: [
|
||||||
|
'DOM',
|
||||||
|
'ESNext'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* runs mocha
|
* runs mocha
|
||||||
* @returns INpmtsConfig
|
* @returns INpmtsConfig
|
||||||
@ -30,12 +40,7 @@ let tap = function (configArg: INpmtsConfig) {
|
|||||||
let testableFilesSmartstream = new plugins.smartstream.Smartstream([
|
let testableFilesSmartstream = new plugins.smartstream.Smartstream([
|
||||||
plugins.smartgulp.src([ plugins.path.join(paths.cwd, './ts/**/*.ts') ]),
|
plugins.smartgulp.src([ plugins.path.join(paths.cwd, './ts/**/*.ts') ]),
|
||||||
plugins.gulpSourcemaps.init(),
|
plugins.gulpSourcemaps.init(),
|
||||||
plugins.gulpTypeScript({
|
plugins.gulpTypeScript(testTypeScriptConfig),
|
||||||
target: 'ES5',
|
|
||||||
emitDecoratorMetadata: true,
|
|
||||||
experimentalDecorators: true,
|
|
||||||
lib: [ 'DOM', 'ES5', 'ES2015.Promise', 'ES2015.Generator', 'ES2015.Iterable' ]
|
|
||||||
}),
|
|
||||||
plugins.gulpSourcemaps.write(),
|
plugins.gulpSourcemaps.write(),
|
||||||
npmtsTapBuffer.pipeTestableFiles(),
|
npmtsTapBuffer.pipeTestableFiles(),
|
||||||
plugins.smartstream.cleanPipe()
|
plugins.smartstream.cleanPipe()
|
||||||
@ -47,12 +52,7 @@ let tap = function (configArg: INpmtsConfig) {
|
|||||||
let testFilesSmartstream = new plugins.smartstream.Smartstream([
|
let testFilesSmartstream = new plugins.smartstream.Smartstream([
|
||||||
plugins.smartgulp.src([ plugins.path.join(paths.cwd, 'test/*.ts') ]),
|
plugins.smartgulp.src([ plugins.path.join(paths.cwd, 'test/*.ts') ]),
|
||||||
plugins.gulpSourcemaps.init(),
|
plugins.gulpSourcemaps.init(),
|
||||||
plugins.gulpTypeScript({
|
plugins.gulpTypeScript(testTypeScriptConfig),
|
||||||
target: 'ES5',
|
|
||||||
emitDecoratorMetadata: true,
|
|
||||||
experimentalDecorators: true,
|
|
||||||
lib: [ 'DOM', 'ES5', 'ES2015.Promise', 'ES2015.Generator', 'ES2015.Iterable' ]
|
|
||||||
}),
|
|
||||||
plugins.gulpSourcemaps.write(),
|
plugins.gulpSourcemaps.write(),
|
||||||
npmtsTapBuffer.pipeTestFiles(),
|
npmtsTapBuffer.pipeTestFiles(),
|
||||||
plugins.smartstream.cleanPipe()
|
plugins.smartstream.cleanPipe()
|
||||||
|
Loading…
Reference in New Issue
Block a user