Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
f83eb035c2 | |||
359e844c69 | |||
6b40cfd954 | |||
8f13dbef9f | |||
9ff2453d7b | |||
e40a82e8c9 |
17
index.js
17
index.js
@ -39,11 +39,17 @@ var NpmtsDefault;
|
|||||||
(function (NpmtsDefault) {
|
(function (NpmtsDefault) {
|
||||||
NpmtsDefault.init = function () {
|
NpmtsDefault.init = function () {
|
||||||
plugins.gulp.task("defaultTsd", function (cb) {
|
plugins.gulp.task("defaultTsd", function (cb) {
|
||||||
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
|
if (!process.env.TRAVIS) {
|
||||||
plugins.g.tsd({
|
plugins.g.tsd({
|
||||||
command: 'reinstall',
|
command: 'reinstall',
|
||||||
config: paths.tsd
|
config: paths.tsd
|
||||||
}, cb);
|
}, 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.gulp.task("defaultIndexTS", function () {
|
||||||
plugins.beautylog.log("now compiling" + " ts/index.ts".blue);
|
plugins.beautylog.log("now compiling" + " ts/index.ts".blue);
|
||||||
@ -81,6 +87,7 @@ var NpmtsDefault;
|
|||||||
/// <reference path="./npmts.plugins.ts" />
|
/// <reference path="./npmts.plugins.ts" />
|
||||||
/// <reference path="./npmts.cli.ts" />
|
/// <reference path="./npmts.cli.ts" />
|
||||||
/// <reference path="./npmts.paths.ts" />
|
/// <reference path="./npmts.paths.ts" />
|
||||||
|
/// <reference path="./npmts.options.ts" />
|
||||||
/// <reference path="./npmts.custom.ts" />
|
/// <reference path="./npmts.custom.ts" />
|
||||||
/// <reference path="./npmts.default.ts" />
|
/// <reference path="./npmts.default.ts" />
|
||||||
var plugins = NpmtsPlugins.init();
|
var plugins = NpmtsPlugins.init();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmts",
|
"name": "npmts",
|
||||||
"version": "1.0.9",
|
"version": "1.0.12",
|
||||||
"description": "write npm modules with TypeScript",
|
"description": "write npm modules with TypeScript",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"typings": "./index.d.ts",
|
"typings": "./index.d.ts",
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
/// <reference path="./npmts.plugins.ts" />
|
/// <reference path="./npmts.plugins.ts" />
|
||||||
/// <reference path="./npmts.cli.ts" />
|
/// <reference path="./npmts.cli.ts" />
|
||||||
/// <reference path="./npmts.paths.ts" />
|
/// <reference path="./npmts.paths.ts" />
|
||||||
|
/// <reference path="./npmts.options.ts" />
|
||||||
/// <reference path="./npmts.custom.ts" />
|
/// <reference path="./npmts.custom.ts" />
|
||||||
/// <reference path="./npmts.default.ts" />
|
/// <reference path="./npmts.default.ts" />
|
||||||
|
|
||||||
|
@ -3,11 +3,17 @@
|
|||||||
module NpmtsDefault {
|
module NpmtsDefault {
|
||||||
export var init = function() {
|
export var init = function() {
|
||||||
plugins.gulp.task("defaultTsd",function(cb){
|
plugins.gulp.task("defaultTsd",function(cb){
|
||||||
plugins.beautylog.log("now installing typings from" + " ts/tsd.json".blue);
|
if(!process.env.TRAVIS) {
|
||||||
plugins.g.tsd({
|
plugins.g.tsd({
|
||||||
command: 'reinstall',
|
command: 'reinstall',
|
||||||
config: paths.tsd
|
config: paths.tsd
|
||||||
}, cb);
|
}, 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
0
ts/npmts.options.ts
Normal file
Reference in New Issue
Block a user