improve info
This commit is contained in:
@ -2,9 +2,11 @@
|
||||
/// <reference path="./npmts.plugins.ts" />
|
||||
/// <reference path="./npmts.cli.ts" />
|
||||
/// <reference path="./npmts.paths.ts" />
|
||||
/// <reference path="./npmts.info.ts" />
|
||||
/// <reference path="./npmts.custom.ts" />
|
||||
/// <reference path="./npmts.default.ts" />
|
||||
|
||||
var plugins = NpmtsPlugins.init();
|
||||
var paths = NpmtsPaths.init();
|
||||
NpmtsInfo.init();
|
||||
NpmtsDefault.init();
|
||||
|
@ -4,10 +4,13 @@ module NpmtsDefault {
|
||||
export var init = function() {
|
||||
plugins.gulp.task("defaultTsd",function(cb){
|
||||
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
|
||||
plugins.g.tsd({
|
||||
command: 'reinstall',
|
||||
config: paths.tsd
|
||||
}, cb);
|
||||
plugins.g.if(process.env.TRAVIS,
|
||||
plugins.g.tsd({
|
||||
command: 'reinstall',
|
||||
config: paths.tsd
|
||||
}, cb)
|
||||
)
|
||||
;
|
||||
});
|
||||
|
||||
|
||||
|
12
ts/npmts.info.ts
Normal file
12
ts/npmts.info.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path="./index.ts" />
|
||||
|
||||
module NpmtsInfo {
|
||||
export var init = function(){
|
||||
if(process.env.TRAVIS){
|
||||
plugins.beautylog.warn("We are on TRAVIS. Typings will not be installed due to GitHub API restrictions.");
|
||||
plugins.beautylog.log("Make sure the repo tracks ting directories")
|
||||
} else {
|
||||
plugins.beautylog.log("We are on a dev machine. Typings will be installed prior to TypeScript compilation.");
|
||||
}
|
||||
}
|
||||
}
|
@ -5,6 +5,7 @@ module NpmtsPlugins {
|
||||
beautylog: require("beautylog"),
|
||||
gulp: require("gulp"),
|
||||
g: {
|
||||
if: require("gulp-if"),
|
||||
insert: require("gulp-insert"),
|
||||
sequence: require("gulp-sequence"),
|
||||
tsd: require("gulp-tsd"),
|
||||
|
Reference in New Issue
Block a user