prepare for better smartfile module.

This commit is contained in:
Philipp Kunz
2016-05-19 22:11:18 +02:00
parent 28e71356ff
commit 759d4031d2
36 changed files with 55 additions and 48 deletions

2
dist/index.js vendored
View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
console.log("**** starting NPMTS ****");
var plugins = require("./npmts.plugins");
var npmts_promisechain_1 = require("./npmts.promisechain");

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
var npmts_promisechain_1 = require("./npmts.promisechain");

11
dist/npmts.clean.js vendored
View File

@ -1,12 +1,19 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
var npmts_promisechain_1 = require("./npmts.promisechain");
var removeDist = function () {
return plugins.smartfile.fsaction.remove(paths.distDir);
};
var removeTypings = function () {
return plugins.smartfile.fsaction.remove(paths.distDir);
};
exports.run = function (configArg) {
npmts_promisechain_1.npmtsOra.text("cleaning up from previous builds...");
var done = plugins.Q.defer();
plugins.smartfile.fsaction.remove(paths.distDir)
removeDist()
.then(removeTypings)
.then(function () {
plugins.beautylog.ok("Cleaned up from previous builds!");
done.resolve(configArg);

2
dist/npmts.cli.js vendored
View File

@ -1 +1 @@
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
var helpers = require("./npmts.compile.helpers");

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
exports.run = function () {

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
var npmts_promisechain_1 = require("./npmts.promisechain");

2
dist/npmts.jsdoc.js vendored
View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
var npmts_promisechain_1 = require("./npmts.promisechain");

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var npmts_promisechain_1 = require("./npmts.promisechain");
exports.isCi = function () {

2
dist/npmts.paths.js vendored
View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = {};
paths.cwd = plugins.smartcli.get.cwd().path;

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
exports.beautylog = require("beautylog");
exports.fs = require("fs-extra");
exports.gulp = require("gulp");

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
exports.npmtsOra = new plugins.beautylog.Ora("setting up TaskChain", "cyan");
exports.npmtsOra.start();

View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var NpmtsTests = require("./npmts.tests");
var NpmtsJsdoc = require("./npmts.jsdoc");

2
dist/npmts.tests.js vendored
View File

@ -1,5 +1,5 @@
"use strict";
/// <reference path="./typings/main.d.ts" />
/// <reference path="./typings/index.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");
var npmts_promisechain_1 = require("./npmts.promisechain");