improve log output and clear default typings directory, before getting new typings.
This commit is contained in:
parent
759d4031d2
commit
e8053fa9e1
2
dist/npmts.assets.js
vendored
2
dist/npmts.assets.js
vendored
@ -6,7 +6,7 @@ var npmts_promisechain_1 = require("./npmts.promisechain");
|
|||||||
exports.run = function (configArg) {
|
exports.run = function (configArg) {
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
var config = configArg;
|
var config = configArg;
|
||||||
npmts_promisechain_1.npmtsOra.text("now looking at required assets");
|
npmts_promisechain_1.npmtsOra.text("now looking at " + "required assets".yellow);
|
||||||
if (config.cli == true) {
|
if (config.cli == true) {
|
||||||
plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir, "cli.js"), paths.distDir);
|
plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir, "cli.js"), paths.distDir);
|
||||||
plugins.beautylog.ok("installed CLI assets!");
|
plugins.beautylog.ok("installed CLI assets!");
|
||||||
|
4
dist/npmts.clean.js
vendored
4
dist/npmts.clean.js
vendored
@ -4,10 +4,12 @@ var plugins = require("./npmts.plugins");
|
|||||||
var paths = require("./npmts.paths");
|
var paths = require("./npmts.paths");
|
||||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||||
var removeDist = function () {
|
var removeDist = function () {
|
||||||
|
npmts_promisechain_1.npmtsOra.text("cleaning " + "dist".yellow + " folder");
|
||||||
return plugins.smartfile.fsaction.remove(paths.distDir);
|
return plugins.smartfile.fsaction.remove(paths.distDir);
|
||||||
};
|
};
|
||||||
var removeTypings = function () {
|
var removeTypings = function () {
|
||||||
return plugins.smartfile.fsaction.remove(paths.distDir);
|
npmts_promisechain_1.npmtsOra.text("cleaning " + "typings".yellow + " folder");
|
||||||
|
return plugins.smartfile.fsaction.remove(paths.typingsDir);
|
||||||
};
|
};
|
||||||
exports.run = function (configArg) {
|
exports.run = function (configArg) {
|
||||||
npmts_promisechain_1.npmtsOra.text("cleaning up from previous builds...");
|
npmts_promisechain_1.npmtsOra.text("cleaning up from previous builds...");
|
||||||
|
2
dist/npmts.install.js
vendored
2
dist/npmts.install.js
vendored
@ -9,7 +9,7 @@ exports.run = function (configArg) {
|
|||||||
/* -------------------------------------------------
|
/* -------------------------------------------------
|
||||||
* ----------- install typings ---------------
|
* ----------- install typings ---------------
|
||||||
* ----------------------------------------------- */
|
* ----------------------------------------------- */
|
||||||
npmts_promisechain_1.npmtsOra.text("now installing typings");
|
npmts_promisechain_1.npmtsOra.text("now installing " + "typings".yellow);
|
||||||
var absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings, paths.cwd);
|
var absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings, paths.cwd);
|
||||||
plugins.gulp.src(absoluteTypingsArray)
|
plugins.gulp.src(absoluteTypingsArray)
|
||||||
.pipe(plugins.g.typings())
|
.pipe(plugins.g.typings())
|
||||||
|
2
dist/npmts.jsdoc.js
vendored
2
dist/npmts.jsdoc.js
vendored
@ -5,7 +5,7 @@ var paths = require("./npmts.paths");
|
|||||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
var npmts_promisechain_1 = require("./npmts.promisechain");
|
||||||
var genJsdoc = function (configArg) {
|
var genJsdoc = function (configArg) {
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
npmts_promisechain_1.npmtsOra.text("now generating JsDoc documentation");
|
npmts_promisechain_1.npmtsOra.text("now generating " + "JsDoc documentation".yellow);
|
||||||
plugins.gulp.src([
|
plugins.gulp.src([
|
||||||
plugins.path.join(paths.cwd, "README.md"),
|
plugins.path.join(paths.cwd, "README.md"),
|
||||||
plugins.path.join(paths.distDir, "**/*.js")
|
plugins.path.join(paths.distDir, "**/*.js")
|
||||||
|
21
dist/npmts.paths.js
vendored
21
dist/npmts.paths.js
vendored
@ -1,16 +1,15 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="./typings/index.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
var plugins = require("./npmts.plugins");
|
var plugins = require("./npmts.plugins");
|
||||||
var paths = {};
|
exports.cwd = plugins.smartcli.get.cwd().path;
|
||||||
paths.cwd = plugins.smartcli.get.cwd().path;
|
|
||||||
//Directories
|
//Directories
|
||||||
paths.tsDir = plugins.path.join(paths.cwd, "ts/");
|
exports.tsDir = plugins.path.join(exports.cwd, "ts/");
|
||||||
paths.distDir = plugins.path.join(paths.cwd, "dist/");
|
exports.distDir = plugins.path.join(exports.cwd, "dist/");
|
||||||
paths.docsDir = plugins.path.join(paths.cwd, "docs/");
|
exports.docsDir = plugins.path.join(exports.cwd, "docs/");
|
||||||
paths.testDir = plugins.path.join(paths.cwd, "test/");
|
exports.testDir = plugins.path.join(exports.cwd, "test/");
|
||||||
paths.coverageDir = plugins.path.join(paths.cwd, "coverage/");
|
exports.typingsDir = plugins.path.join(exports.cwd, "ts/typings/");
|
||||||
paths.npmtsAssetsDir = plugins.path.join(__dirname, "../assets/");
|
exports.coverageDir = plugins.path.join(exports.cwd, "coverage/");
|
||||||
|
exports.npmtsAssetsDir = plugins.path.join(__dirname, "../assets/");
|
||||||
//Files
|
//Files
|
||||||
paths.indexTS = plugins.path.join(paths.cwd, "ts/index.ts");
|
exports.indexTS = plugins.path.join(exports.cwd, "ts/index.ts");
|
||||||
paths.testTS = plugins.path.join(paths.cwd, "ts/test.ts");
|
exports.testTS = plugins.path.join(exports.cwd, "ts/test.ts");
|
||||||
module.exports = paths;
|
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
"smartcli": "0.0.11",
|
"smartcli": "0.0.11",
|
||||||
"smartcov": "0.0.6",
|
"smartcov": "0.0.6",
|
||||||
"smartenv": "1.2.5",
|
"smartenv": "1.2.5",
|
||||||
"smartfile": "3.0.6",
|
"smartfile": "3.0.7",
|
||||||
"smartpath": "3.2.1",
|
"smartpath": "3.2.1",
|
||||||
"smartstring": "^1.0.3",
|
"smartstring": "^1.0.3",
|
||||||
"source-map-support": "^0.4.0"
|
"source-map-support": "^0.4.0"
|
||||||
|
@ -6,7 +6,7 @@ import {npmtsOra} from "./npmts.promisechain";
|
|||||||
export var run = function(configArg){
|
export var run = function(configArg){
|
||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
let config = configArg;
|
let config = configArg;
|
||||||
npmtsOra.text("now looking at required assets");
|
npmtsOra.text("now looking at " + "required assets".yellow);
|
||||||
if(config.cli == true){
|
if(config.cli == true){
|
||||||
plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir);
|
plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir);
|
||||||
plugins.beautylog.ok("installed CLI assets!");
|
plugins.beautylog.ok("installed CLI assets!");
|
||||||
|
@ -4,11 +4,13 @@ import paths = require("./npmts.paths");
|
|||||||
import {npmtsOra} from "./npmts.promisechain";
|
import {npmtsOra} from "./npmts.promisechain";
|
||||||
|
|
||||||
let removeDist = function(){
|
let removeDist = function(){
|
||||||
|
npmtsOra.text("cleaning " + "dist".yellow + " folder");
|
||||||
return plugins.smartfile.fsaction.remove(paths.distDir);
|
return plugins.smartfile.fsaction.remove(paths.distDir);
|
||||||
};
|
};
|
||||||
|
|
||||||
let removeTypings = function(){
|
let removeTypings = function(){
|
||||||
return plugins.smartfile.fsaction.remove(paths.distDir);
|
npmtsOra.text("cleaning " + "typings".yellow + " folder");
|
||||||
|
return plugins.smartfile.fsaction.remove(paths.typingsDir);
|
||||||
};
|
};
|
||||||
|
|
||||||
export let run = function(configArg){
|
export let run = function(configArg){
|
||||||
|
@ -9,7 +9,7 @@ export var run = function(configArg){
|
|||||||
/* -------------------------------------------------
|
/* -------------------------------------------------
|
||||||
* ----------- install typings ---------------
|
* ----------- install typings ---------------
|
||||||
* ----------------------------------------------- */
|
* ----------------------------------------------- */
|
||||||
npmtsOra.text("now installing typings");
|
npmtsOra.text("now installing " + "typings".yellow);
|
||||||
var absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings,paths.cwd);
|
var absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings,paths.cwd);
|
||||||
plugins.gulp.src(absoluteTypingsArray)
|
plugins.gulp.src(absoluteTypingsArray)
|
||||||
.pipe(plugins.g.typings())
|
.pipe(plugins.g.typings())
|
||||||
|
@ -5,7 +5,7 @@ import {npmtsOra} from "./npmts.promisechain";
|
|||||||
|
|
||||||
let genJsdoc = function(configArg){
|
let genJsdoc = function(configArg){
|
||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
npmtsOra.text("now generating JsDoc documentation");
|
npmtsOra.text("now generating " + "JsDoc documentation".yellow);
|
||||||
plugins.gulp.src([
|
plugins.gulp.src([
|
||||||
plugins.path.join(paths.cwd,"README.md"),
|
plugins.path.join(paths.cwd,"README.md"),
|
||||||
plugins.path.join(paths.distDir,"**/*.js")
|
plugins.path.join(paths.distDir,"**/*.js")
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/// <reference path="./typings/index.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
import plugins = require("./npmts.plugins");
|
import plugins = require("./npmts.plugins");
|
||||||
var paths:any = {};
|
|
||||||
paths.cwd = plugins.smartcli.get.cwd().path;
|
export let cwd = plugins.smartcli.get.cwd().path;
|
||||||
|
|
||||||
//Directories
|
//Directories
|
||||||
paths.tsDir = plugins.path.join(paths.cwd,"ts/");
|
export let tsDir = plugins.path.join(cwd,"ts/");
|
||||||
paths.distDir = plugins.path.join(paths.cwd,"dist/");
|
export let distDir = plugins.path.join(cwd,"dist/");
|
||||||
paths.docsDir = plugins.path.join(paths.cwd,"docs/");
|
export let docsDir = plugins.path.join(cwd,"docs/");
|
||||||
paths.testDir = plugins.path.join(paths.cwd,"test/");
|
export let testDir = plugins.path.join(cwd,"test/");
|
||||||
paths.coverageDir = plugins.path.join(paths.cwd,"coverage/");
|
export let typingsDir = plugins.path.join(cwd,"ts/typings/");
|
||||||
|
export let coverageDir = plugins.path.join(cwd,"coverage/");
|
||||||
|
|
||||||
paths.npmtsAssetsDir = plugins.path.join(__dirname,"../assets/");
|
export let npmtsAssetsDir = plugins.path.join(__dirname,"../assets/");
|
||||||
|
|
||||||
//Files
|
//Files
|
||||||
paths.indexTS = plugins.path.join(paths.cwd,"ts/index.ts");
|
export let indexTS = plugins.path.join(cwd,"ts/index.ts");
|
||||||
paths.testTS = plugins.path.join(paths.cwd,"ts/test.ts");
|
export let testTS = plugins.path.join(cwd,"ts/test.ts");
|
||||||
|
|
||||||
export = paths;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user