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;
|
beautylog: any;
|
||||||
gulp: any;
|
gulp: any;
|
||||||
g: {
|
g: {
|
||||||
|
if: any;
|
||||||
insert: any;
|
insert: any;
|
||||||
sequence: any;
|
sequence: any;
|
||||||
tsd: any;
|
tsd: any;
|
||||||
@ -24,6 +25,7 @@ declare var plugins: {
|
|||||||
beautylog: any;
|
beautylog: any;
|
||||||
gulp: any;
|
gulp: any;
|
||||||
g: {
|
g: {
|
||||||
|
if: any;
|
||||||
insert: any;
|
insert: any;
|
||||||
sequence: any;
|
sequence: any;
|
||||||
tsd: any;
|
tsd: any;
|
||||||
|
18
index.js
18
index.js
@ -8,6 +8,7 @@ var NpmtsPlugins;
|
|||||||
beautylog: require("beautylog"),
|
beautylog: require("beautylog"),
|
||||||
gulp: require("gulp"),
|
gulp: require("gulp"),
|
||||||
g: {
|
g: {
|
||||||
|
if: require("gulp-if"),
|
||||||
insert: require("gulp-insert"),
|
insert: require("gulp-insert"),
|
||||||
sequence: require("gulp-sequence"),
|
sequence: require("gulp-sequence"),
|
||||||
tsd: require("gulp-tsd"),
|
tsd: require("gulp-tsd"),
|
||||||
@ -39,11 +40,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 +88,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.11",
|
||||||
"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
@ -5,6 +5,7 @@ module NpmtsPlugins {
|
|||||||
beautylog: require("beautylog"),
|
beautylog: require("beautylog"),
|
||||||
gulp: require("gulp"),
|
gulp: require("gulp"),
|
||||||
g: {
|
g: {
|
||||||
|
if: require("gulp-if"),
|
||||||
insert: require("gulp-insert"),
|
insert: require("gulp-insert"),
|
||||||
sequence: require("gulp-sequence"),
|
sequence: require("gulp-sequence"),
|
||||||
tsd: require("gulp-tsd"),
|
tsd: require("gulp-tsd"),
|
||||||
|
Reference in New Issue
Block a user