some more standard js
This commit is contained in:
parent
8fd24c6e31
commit
875efe413a
2
dist/npmts.options.d.ts
vendored
2
dist/npmts.options.d.ts
vendored
@ -2,7 +2,7 @@
|
|||||||
import 'typings-global';
|
import 'typings-global';
|
||||||
import plugins = require('./npmts.plugins');
|
import plugins = require('./npmts.plugins');
|
||||||
export declare type npmtsMode = 'default' | 'custom';
|
export declare type npmtsMode = 'default' | 'custom';
|
||||||
export interface npmtsConfig {
|
export interface INpmtsConfig {
|
||||||
argv: any;
|
argv: any;
|
||||||
coverageTreshold: number;
|
coverageTreshold: number;
|
||||||
docs: boolean;
|
docs: boolean;
|
||||||
|
@ -5,7 +5,7 @@ import { npmtsOra } from './npmts.promisechain'
|
|||||||
|
|
||||||
export type npmtsMode = 'default' | 'custom'
|
export type npmtsMode = 'default' | 'custom'
|
||||||
|
|
||||||
export interface npmtsConfig {
|
export interface INpmtsConfig {
|
||||||
argv: any,
|
argv: any,
|
||||||
coverageTreshold: number,
|
coverageTreshold: number,
|
||||||
docs: boolean,
|
docs: boolean,
|
||||||
@ -19,7 +19,7 @@ export interface npmtsConfig {
|
|||||||
|
|
||||||
export var run = function (argvArg) {
|
export var run = function (argvArg) {
|
||||||
let done = plugins.Q.defer()
|
let done = plugins.Q.defer()
|
||||||
let defaultConfig: npmtsConfig = {
|
let defaultConfig: INpmtsConfig = {
|
||||||
argv: undefined,
|
argv: undefined,
|
||||||
coverageTreshold: 70,
|
coverageTreshold: 70,
|
||||||
docs: true,
|
docs: true,
|
||||||
@ -32,7 +32,7 @@ export var run = function (argvArg) {
|
|||||||
|
|
||||||
// mix with configfile
|
// mix with configfile
|
||||||
npmtsOra.text('looking for npmextra.json')
|
npmtsOra.text('looking for npmextra.json')
|
||||||
let config: npmtsConfig = plugins.npmextra.dataFor({
|
let config: INpmtsConfig = plugins.npmextra.dataFor({
|
||||||
toolName: 'npmts',
|
toolName: 'npmts',
|
||||||
defaultSettings: defaultConfig,
|
defaultSettings: defaultConfig,
|
||||||
cwd: paths.cwd
|
cwd: paths.cwd
|
||||||
|
@ -10,7 +10,7 @@ export let g = {
|
|||||||
mocha: require('gulp-mocha'),
|
mocha: require('gulp-mocha'),
|
||||||
sourcemaps: require('gulp-sourcemaps'),
|
sourcemaps: require('gulp-sourcemaps'),
|
||||||
typedoc: require('gulp-typedoc')
|
typedoc: require('gulp-typedoc')
|
||||||
};
|
}
|
||||||
export import lodashObject = require('lodash')
|
export import lodashObject = require('lodash')
|
||||||
export import npmextra = require('npmextra')
|
export import npmextra = require('npmextra')
|
||||||
export import projectinfo = require('projectinfo')
|
export import projectinfo = require('projectinfo')
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import 'typings-global';
|
import 'typings-global'
|
||||||
import plugins = require('./npmts.plugins');
|
import plugins = require('./npmts.plugins')
|
||||||
import {Ora} from 'beautylog'
|
import {Ora} from 'beautylog'
|
||||||
|
|
||||||
export let npmtsOra = new Ora('setting up TaskChain','cyan');
|
export let npmtsOra = new Ora('setting up TaskChain','cyan')
|
||||||
|
|
||||||
import NpmtsAssets = require('./npmts.assets')
|
import NpmtsAssets = require('./npmts.assets')
|
||||||
import NpmtsCheck = require('./npmts.check')
|
import NpmtsCheck = require('./npmts.check')
|
||||||
@ -38,12 +38,12 @@ export let promisechain = function(argvArg){
|
|||||||
' wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n' +
|
' wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n' +
|
||||||
' wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n'
|
' wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n'
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
console.log(shipString);
|
console.log(shipString)
|
||||||
plugins.beautylog.success('READY TO SHIP!')
|
plugins.beautylog.success('READY TO SHIP!')
|
||||||
} else {
|
} else {
|
||||||
plugins.beautylog.success('Done!')
|
plugins.beautylog.success('Done!')
|
||||||
}
|
}
|
||||||
done.resolve()
|
done.resolve()
|
||||||
});
|
})
|
||||||
return done.promise
|
return done.promise
|
||||||
};
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user