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