Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
ecf0666103 | |||
ad05144bba | |||
1e77aba991 | |||
bb6c07845c | |||
079b049a10 | |||
94f48afbbd | |||
944e9b227c | |||
b83aaf4abf | |||
51a1dd0b1d | |||
dd9df9f5ee | |||
c109952a22 | |||
b14c79f6ef | |||
66ad3aeeb9 | |||
a6e91c6a7f |
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -1,8 +1,10 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
console.log("**** starting NPMTS ****");
|
||||
require("typings-global");
|
||||
var early = require("early");
|
||||
early.start("NPMTS");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
early.stop();
|
||||
plugins.beautylog.figletSync("NPMTS");
|
||||
try {
|
||||
npmts_promisechain_1.promisechain();
|
||||
|
2
dist/npmts.assets.js
vendored
2
dist/npmts.assets.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
|
10
dist/npmts.clean.js
vendored
10
dist/npmts.clean.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
@ -8,8 +8,14 @@ var removeDist = function () {
|
||||
return plugins.smartfile.fsaction.remove(paths.distDir);
|
||||
};
|
||||
var removeTypings = function () {
|
||||
var done = plugins.Q.defer();
|
||||
npmts_promisechain_1.npmtsOra.text("cleaning " + "typings".yellow + " folder");
|
||||
return plugins.smartfile.fsaction.remove(paths.typingsDir);
|
||||
if (false) {
|
||||
}
|
||||
else {
|
||||
done.resolve();
|
||||
}
|
||||
return done.promise;
|
||||
};
|
||||
exports.run = function (configArg) {
|
||||
npmts_promisechain_1.npmtsOra.text("cleaning up from previous builds...");
|
||||
|
3
dist/npmts.cli.js
vendored
3
dist/npmts.cli.js
vendored
@ -1 +1,2 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
|
2
dist/npmts.compile.js
vendored
2
dist/npmts.compile.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
var helpers = require("./npmts.compile.helpers");
|
||||
|
2
dist/npmts.configfile.js
vendored
2
dist/npmts.configfile.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
exports.run = function () {
|
||||
|
2
dist/npmts.install.js
vendored
2
dist/npmts.install.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
|
2
dist/npmts.jsdoc.js
vendored
2
dist/npmts.jsdoc.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
|
2
dist/npmts.options.js
vendored
2
dist/npmts.options.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
exports.isCi = function () {
|
||||
|
2
dist/npmts.paths.js
vendored
2
dist/npmts.paths.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
exports.cwd = plugins.smartcli.get.cwd().path;
|
||||
//Directories
|
||||
|
2
dist/npmts.plugins.js
vendored
2
dist/npmts.plugins.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
exports.beautylog = require("beautylog");
|
||||
exports.fs = require("fs-extra");
|
||||
exports.gulp = require("gulp");
|
||||
|
3
dist/npmts.promisechain.js
vendored
3
dist/npmts.promisechain.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
exports.npmtsOra = new plugins.beautylog.Ora("setting up TaskChain", "cyan");
|
||||
exports.npmtsOra.start();
|
||||
@ -43,7 +43,6 @@ exports.promisechain = function () {
|
||||
plugins.beautylog.success("READY TO SHIP!");
|
||||
}
|
||||
else {
|
||||
exports.npmtsOra.endOk("Tasks finished!");
|
||||
plugins.beautylog.success("Done!");
|
||||
}
|
||||
done.resolve();
|
||||
|
2
dist/npmts.publish.js
vendored
2
dist/npmts.publish.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var NpmtsTests = require("./npmts.tests");
|
||||
var NpmtsJsdoc = require("./npmts.jsdoc");
|
||||
|
5
dist/npmts.tests.js
vendored
5
dist/npmts.tests.js
vendored
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
require("typings-global");
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||
@ -19,11 +19,13 @@ exports.publishCoverage = function (configArg) {
|
||||
* @returns {*}
|
||||
*/
|
||||
var istanbul = function (configArg) {
|
||||
npmts_promisechain_1.npmtsOra.text("Instrumentalizing transpiled JS...");
|
||||
var done = plugins.Q.defer();
|
||||
var stream = plugins.gulp.src([plugins.path.join(paths.cwd, "dist/*.js")])
|
||||
.pipe(plugins.g.istanbul()) // Covering files
|
||||
.pipe(plugins.g.istanbul.hookRequire()) // Force `require` to return covered files
|
||||
.pipe(plugins.g.gFunction(function () {
|
||||
plugins.beautylog.ok("JS has been instrumentalized to get test code coverage!");
|
||||
done.resolve(configArg);
|
||||
}, "atEnd"));
|
||||
return done.promise;
|
||||
@ -34,6 +36,7 @@ var istanbul = function (configArg) {
|
||||
*/
|
||||
var mocha = function (configArg) {
|
||||
var done = plugins.Q.defer();
|
||||
npmts_promisechain_1.npmtsOra.end(); // end npmtsOra for tests.
|
||||
var stream = plugins.gulp.src(["./test/test.js"])
|
||||
.pipe(plugins.g.mocha())
|
||||
.pipe(plugins.g.istanbul.writeReports()) // Creating the reports after tests ran
|
||||
|
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "npmts",
|
||||
"version": "5.1.8",
|
||||
"version": "5.1.15",
|
||||
"description": "write npm modules with TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
@ -26,7 +26,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/pushrocks/npmts#readme",
|
||||
"dependencies": {
|
||||
"beautylog": "5.0.4",
|
||||
"beautylog": "5.0.6",
|
||||
"early": "^2.0.1",
|
||||
"fs-extra": "^0.30.0",
|
||||
"gulp": "3.9.1",
|
||||
"gulp-codecov": "^2.0.1",
|
||||
@ -40,7 +41,7 @@
|
||||
"gulp-sourcemaps": "^2.0.0-alpha",
|
||||
"gulp-typescript": "2.13.4",
|
||||
"gulp-typings": "2.0.0",
|
||||
"lodash": "^4.12.0",
|
||||
"lodash": "^4.13.1",
|
||||
"merge2": "1.0.2",
|
||||
"projectinfo": "1.0.1",
|
||||
"q": "^1.4.1",
|
||||
@ -49,10 +50,11 @@
|
||||
"smartcli": "0.0.11",
|
||||
"smartcov": "0.0.6",
|
||||
"smartenv": "1.2.5",
|
||||
"smartfile": "3.0.7",
|
||||
"smartfile": "3.0.10",
|
||||
"smartpath": "3.2.1",
|
||||
"smartstring": "^1.0.3",
|
||||
"source-map-support": "^0.4.0"
|
||||
"smartstring": "^2.0.1",
|
||||
"source-map-support": "^0.4.0",
|
||||
"typings-global": "*"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
console.log("**** starting NPMTS ****");
|
||||
import "typings-global";
|
||||
import * as early from "early";
|
||||
early.start("NPMTS");
|
||||
import * as plugins from "./npmts.plugins"
|
||||
import {promisechain} from "./npmts.promisechain";
|
||||
early.stop();
|
||||
|
||||
plugins.beautylog.figletSync("NPMTS");
|
||||
|
||||
try {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import {npmtsOra} from "./npmts.promisechain";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import {npmtsOra} from "./npmts.promisechain";
|
||||
@ -9,8 +9,15 @@ let removeDist = function(){
|
||||
};
|
||||
|
||||
let removeTypings = function(){
|
||||
let done = plugins.Q.defer();
|
||||
npmtsOra.text("cleaning " + "typings".yellow + " folder");
|
||||
return plugins.smartfile.fsaction.remove(paths.typingsDir);
|
||||
if(false){
|
||||
//plugins.smartfile.fsaction.remove(paths.typingsDir)
|
||||
// .then(done.resolve);
|
||||
} else {
|
||||
done.resolve();
|
||||
}
|
||||
return done.promise;
|
||||
};
|
||||
|
||||
export let run = function(configArg){
|
||||
|
@ -1 +1 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import helpers = require("./npmts.compile.helpers");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
export var run = function(){
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import {npmtsOra} from "./npmts.promisechain";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import {npmtsOra} from "./npmts.promisechain";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import {npmtsOra} from "./npmts.promisechain";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
|
||||
export let cwd = plugins.smartcli.get.cwd().path;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
export import beautylog = require("beautylog");
|
||||
export let fs = require("fs-extra");
|
||||
export let gulp = require("gulp");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
|
||||
export let npmtsOra = new plugins.beautylog.Ora("setting up TaskChain","cyan");
|
||||
@ -44,7 +44,6 @@ export let promisechain = function(){
|
||||
console.log(shipString);
|
||||
plugins.beautylog.success("READY TO SHIP!");
|
||||
} else {
|
||||
npmtsOra.endOk("Tasks finished!");
|
||||
plugins.beautylog.success("Done!");
|
||||
}
|
||||
done.resolve();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import NpmtsTests = require("./npmts.tests");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
import "typings-global";
|
||||
import plugins = require("./npmts.plugins");
|
||||
import paths = require("./npmts.paths");
|
||||
import {npmtsOra} from "./npmts.promisechain";
|
||||
@ -20,11 +20,13 @@ export let publishCoverage = function(configArg){
|
||||
* @returns {*}
|
||||
*/
|
||||
let istanbul = function (configArg) {
|
||||
npmtsOra.text("Instrumentalizing transpiled JS...");
|
||||
let done = plugins.Q.defer();
|
||||
var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"dist/*.js")])
|
||||
.pipe(plugins.g.istanbul()) // Covering files
|
||||
.pipe(plugins.g.istanbul.hookRequire()) // Force `require` to return covered files
|
||||
.pipe(plugins.g.gFunction(function(){
|
||||
plugins.beautylog.ok("JS has been instrumentalized to get test code coverage!");
|
||||
done.resolve(configArg);
|
||||
},"atEnd"));
|
||||
return done.promise;
|
||||
@ -36,6 +38,7 @@ let istanbul = function (configArg) {
|
||||
*/
|
||||
let mocha = function (configArg) {
|
||||
let done = plugins.Q.defer();
|
||||
npmtsOra.end(); // end npmtsOra for tests.
|
||||
let stream = plugins.gulp.src(["./test/test.js"])
|
||||
.pipe(plugins.g.mocha())
|
||||
.pipe(plugins.g.istanbul.writeReports()) // Creating the reports after tests ran
|
||||
|
Reference in New Issue
Block a user