Compare commits

...

4 Commits

Author SHA1 Message Date
6b40cfd954 1.0.11 2016-01-25 20:52:42 +01:00
8f13dbef9f fix issue with CI detection 2016-01-25 20:52:29 +01:00
9ff2453d7b 1.0.10 2016-01-25 20:25:10 +01:00
e40a82e8c9 improve info 2016-01-25 20:24:59 +01:00
7 changed files with 29 additions and 11 deletions

2
index.d.ts vendored
View File

@ -4,6 +4,7 @@ declare module NpmtsPlugins {
beautylog: any;
gulp: any;
g: {
if: any;
insert: any;
sequence: any;
tsd: any;
@ -24,6 +25,7 @@ declare var plugins: {
beautylog: any;
gulp: any;
g: {
if: any;
insert: any;
sequence: any;
tsd: any;

View File

@ -8,6 +8,7 @@ var NpmtsPlugins;
beautylog: require("beautylog"),
gulp: require("gulp"),
g: {
if: require("gulp-if"),
insert: require("gulp-insert"),
sequence: require("gulp-sequence"),
tsd: require("gulp-tsd"),
@ -39,11 +40,17 @@ var NpmtsDefault;
(function (NpmtsDefault) {
NpmtsDefault.init = function () {
plugins.gulp.task("defaultTsd", function (cb) {
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
if (!process.env.TRAVIS) {
plugins.g.tsd({
command: 'reinstall',
config: paths.tsd
}, cb);
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
}
else {
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 " + "typings".blue + " directories");
}
});
plugins.gulp.task("defaultIndexTS", function () {
plugins.beautylog.log("now compiling" + " ts/index.ts".blue);
@ -81,6 +88,7 @@ var NpmtsDefault;
/// <reference path="./npmts.plugins.ts" />
/// <reference path="./npmts.cli.ts" />
/// <reference path="./npmts.paths.ts" />
/// <reference path="./npmts.options.ts" />
/// <reference path="./npmts.custom.ts" />
/// <reference path="./npmts.default.ts" />
var plugins = NpmtsPlugins.init();

View File

@ -1,6 +1,6 @@
{
"name": "npmts",
"version": "1.0.9",
"version": "1.0.11",
"description": "write npm modules with TypeScript",
"main": "index.js",
"typings": "./index.d.ts",

View File

@ -2,6 +2,7 @@
/// <reference path="./npmts.plugins.ts" />
/// <reference path="./npmts.cli.ts" />
/// <reference path="./npmts.paths.ts" />
/// <reference path="./npmts.options.ts" />
/// <reference path="./npmts.custom.ts" />
/// <reference path="./npmts.default.ts" />

View File

@ -3,11 +3,17 @@
module NpmtsDefault {
export var init = function() {
plugins.gulp.task("defaultTsd",function(cb){
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
if(!process.env.TRAVIS) {
plugins.g.tsd({
command: 'reinstall',
config: paths.tsd
}, cb);
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
} else {
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 " + "typings".blue + " directories")
}
});

0
ts/npmts.options.ts Normal file
View File

View File

@ -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"),