Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
5de4646453 | |||
44e9fcc977 | |||
784aec1ec3 | |||
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()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmts",
|
"name": "npmts",
|
||||||
"version": "8.0.22",
|
"version": "8.0.24",
|
||||||
"description": "best practice npm TypeScript modules",
|
"description": "best practice npm TypeScript modules",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -58,11 +58,11 @@
|
|||||||
"smartstream": "^1.0.10",
|
"smartstream": "^1.0.10",
|
||||||
"smartstring": "^2.0.24",
|
"smartstring": "^2.0.24",
|
||||||
"smartsystem": "^2.0.2",
|
"smartsystem": "^2.0.2",
|
||||||
"smartupdate": "^1.0.12",
|
"smartupdate": "^1.0.13",
|
||||||
"tapbuffer": "^1.0.29",
|
"tapbuffer": "^1.0.29",
|
||||||
"through2": "^2.0.3",
|
"through2": "^2.0.3",
|
||||||
"tsn": "^2.0.15",
|
"tsn": "^2.0.15",
|
||||||
"typescript": "^2.5.2",
|
"typescript": "^2.5.3",
|
||||||
"typings-global": "^1.0.20"
|
"typings-global": "^1.0.20"
|
||||||
},
|
},
|
||||||
"devDependencies": {}
|
"devDependencies": {}
|
||||||
|
@ -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()
|
||||||
|
12
yarn.lock
12
yarn.lock
@ -2862,9 +2862,9 @@ smarttime@^1.0.10:
|
|||||||
moment "^2.18.1"
|
moment "^2.18.1"
|
||||||
typings-global "^1.0.16"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
smartupdate@^1.0.12:
|
smartupdate@^1.0.13:
|
||||||
version "1.0.12"
|
version "1.0.13"
|
||||||
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.12.tgz#d583b532de240ad6dde7d88d2cadfa4463625ecb"
|
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.13.tgz#683c921370ad2a0cf6f45b55cb930f038f00e449"
|
||||||
dependencies:
|
dependencies:
|
||||||
beautycolor "^1.0.11"
|
beautycolor "^1.0.11"
|
||||||
beautylog "^6.1.10"
|
beautylog "^6.1.10"
|
||||||
@ -3277,10 +3277,14 @@ typed-function@0.10.5:
|
|||||||
version "0.10.5"
|
version "0.10.5"
|
||||||
resolved "https://registry.yarnpkg.com/typed-function/-/typed-function-0.10.5.tgz#2e0f18abd065219fab694a446a65c6d1981832c0"
|
resolved "https://registry.yarnpkg.com/typed-function/-/typed-function-0.10.5.tgz#2e0f18abd065219fab694a446a65c6d1981832c0"
|
||||||
|
|
||||||
typescript@^2.1.5, typescript@^2.5.2:
|
typescript@^2.1.5:
|
||||||
version "2.5.2"
|
version "2.5.2"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.2.tgz#038a95f7d9bbb420b1bf35ba31d4c5c1dd3ffe34"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.2.tgz#038a95f7d9bbb420b1bf35ba31d4c5c1dd3ffe34"
|
||||||
|
|
||||||
|
typescript@^2.5.3:
|
||||||
|
version "2.5.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.3.tgz#df3dcdc38f3beb800d4bc322646b04a3f6ca7f0d"
|
||||||
|
|
||||||
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.17, typings-global@^1.0.19, typings-global@^1.0.20, typings-global@^1.0.3:
|
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.17, typings-global@^1.0.19, typings-global@^1.0.20, typings-global@^1.0.3:
|
||||||
version "1.0.20"
|
version "1.0.20"
|
||||||
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.20.tgz#3da769c54db538247c5d877d1d9e97eb2ec981ff"
|
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.20.tgz#3da769c54db538247c5d877d1d9e97eb2ec981ff"
|
||||||
|
Reference in New Issue
Block a user