Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6b40cfd954 | |||
8f13dbef9f | |||
9ff2453d7b | |||
e40a82e8c9 |
2
index.d.ts
vendored
2
index.d.ts
vendored
@ -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;
|
||||
|
18
index.js
18
index.js
@ -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);
|
||||
plugins.g.tsd({
|
||||
command: 'reinstall',
|
||||
config: paths.tsd
|
||||
}, cb);
|
||||
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();
|
||||
|
@ -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",
|
||||
|
@ -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" />
|
||||
|
||||
|
@ -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);
|
||||
plugins.g.tsd({
|
||||
command: 'reinstall',
|
||||
config: paths.tsd
|
||||
}, cb);
|
||||
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
0
ts/npmts.options.ts
Normal 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"),
|
||||
|
Reference in New Issue
Block a user