update beautylog
This commit is contained in:
4
dist/mod00/index.js
vendored
4
dist/mod00/index.js
vendored
@ -3,14 +3,14 @@
|
||||
* This module compiles TypeScript files
|
||||
* -------------------------------------------- */
|
||||
const q = require("smartq");
|
||||
const npmts_log_1 = require("../npmts.log");
|
||||
const plugins = require("./mod00.plugins");
|
||||
const NpmtsAssets = require("./mod00.assets");
|
||||
const NpmtsCheck = require("./mod00.check");
|
||||
const NpmtsClean = require("./mod00.clean");
|
||||
const NpmtsCompile = require("./mod00.compile");
|
||||
exports.run = function (configArg) {
|
||||
let done = q.defer();
|
||||
npmts_log_1.npmtsOra.text('starting TypeScript Compilation');
|
||||
plugins.beautylog.ora.text('starting TypeScript Compilation');
|
||||
NpmtsClean.run(configArg)
|
||||
.then(NpmtsCheck.run)
|
||||
.then(NpmtsCompile.run)
|
||||
|
3
dist/mod00/mod00.assets.js
vendored
3
dist/mod00/mod00.assets.js
vendored
@ -1,13 +1,12 @@
|
||||
"use strict";
|
||||
const q = require("smartq");
|
||||
const paths = require("../npmts.paths");
|
||||
const npmts_log_1 = require("../npmts.log");
|
||||
const plugins = require("./mod00.plugins");
|
||||
const mod00_check_1 = require("../mod00/mod00.check");
|
||||
exports.run = function (configArg) {
|
||||
let done = q.defer();
|
||||
let config = configArg;
|
||||
npmts_log_1.npmtsOra.text('now looking at ' + 'required assets'.yellow);
|
||||
plugins.beautylog.ora.text('now looking at ' + 'required assets'.yellow);
|
||||
if (config.cli === true) {
|
||||
let mainJsPath = mod00_check_1.projectInfo.packageJson.main;
|
||||
let cliJsString = plugins.smartfile.fs.toStringSync(plugins.path.join(paths.npmtsAssetsDir, 'cli.js'));
|
||||
|
11
dist/mod00/mod00.check.js
vendored
11
dist/mod00/mod00.check.js
vendored
@ -2,11 +2,10 @@
|
||||
const q = require("smartq");
|
||||
const projectinfo_1 = require("projectinfo");
|
||||
const paths = require("../npmts.paths");
|
||||
const npmts_log_1 = require("../npmts.log");
|
||||
const plugins = require("./mod00.plugins");
|
||||
let checkProjectTypings = (configArg) => {
|
||||
let done = q.defer();
|
||||
npmts_log_1.npmtsOra.text('Check Module: Check Project Typings...');
|
||||
plugins.beautylog.ora.text('Check Module: Check Project Typings...');
|
||||
exports.projectInfo = new projectinfo_1.ProjectinfoNpm(paths.cwd);
|
||||
if (typeof exports.projectInfo.packageJson.typings === 'undefined') {
|
||||
plugins.beautylog.error(`please add typings field to package.json`);
|
||||
@ -32,7 +31,7 @@ const depcheckOptions = {
|
||||
};
|
||||
let checkDependencies = (configArg) => {
|
||||
let done = q.defer();
|
||||
npmts_log_1.npmtsOra.text('Check Module: Check Dependencies...');
|
||||
plugins.beautylog.ora.text('Check Module: Check Dependencies...');
|
||||
let depcheckOptionsMerged = plugins.lodash.merge(depcheckOptions, {
|
||||
ignoreDirs: [
|
||||
'test',
|
||||
@ -68,7 +67,7 @@ let checkDependencies = (configArg) => {
|
||||
};
|
||||
let checkDevDependencies = (configArg) => {
|
||||
let done = q.defer();
|
||||
npmts_log_1.npmtsOra.text('Check Module: Check devDependencies...');
|
||||
plugins.beautylog.ora.text('Check Module: Check devDependencies...');
|
||||
let depcheckOptionsMerged = plugins.lodash.merge(depcheckOptions, {
|
||||
ignoreDirs: [
|
||||
'ts',
|
||||
@ -103,13 +102,13 @@ let checkDevDependencies = (configArg) => {
|
||||
};
|
||||
let checkNodeVersion = (configArg) => {
|
||||
let done = q.defer();
|
||||
npmts_log_1.npmtsOra.text('checking node version');
|
||||
plugins.beautylog.ora.text('checking node version');
|
||||
done.resolve(configArg);
|
||||
return done.promise;
|
||||
};
|
||||
exports.run = (configArg) => {
|
||||
let done = q.defer();
|
||||
npmts_log_1.npmtsOra.text('Check Module: ...');
|
||||
plugins.beautylog.ora.text('Check Module: ...');
|
||||
checkProjectTypings(configArg)
|
||||
.then(checkDependencies)
|
||||
.then(checkDevDependencies)
|
||||
|
7
dist/mod00/mod00.clean.js
vendored
7
dist/mod00/mod00.clean.js
vendored
@ -1,13 +1,12 @@
|
||||
"use strict";
|
||||
const q = require("smartq");
|
||||
const paths = require("../npmts.paths");
|
||||
const npmts_log_1 = require("../npmts.log");
|
||||
const plugins = require("./mod00.plugins");
|
||||
/**
|
||||
* removes the dist directory which will be entirely rebuild
|
||||
*/
|
||||
let removeDist = function () {
|
||||
npmts_log_1.npmtsOra.text('cleaning dist folder');
|
||||
plugins.beautylog.ora.text('cleaning dist folder');
|
||||
return plugins.smartfile.fs.remove(paths.distDir);
|
||||
};
|
||||
/**
|
||||
@ -25,11 +24,11 @@ let removeTestDeclarations = function () {
|
||||
* remove old pages
|
||||
*/
|
||||
let removePages = function () {
|
||||
npmts_log_1.npmtsOra.text('cleaning pages folder');
|
||||
plugins.beautylog.ora.text('cleaning pages folder');
|
||||
return plugins.smartfile.fs.remove(paths.pagesDir);
|
||||
};
|
||||
exports.run = function (configArg) {
|
||||
npmts_log_1.npmtsOra.text('cleaning up from previous builds...');
|
||||
plugins.beautylog.ora.text('cleaning up from previous builds...');
|
||||
let done = q.defer();
|
||||
removeDist()
|
||||
.then(removeTestDeclarations)
|
||||
|
3
dist/mod00/mod00.compile.js
vendored
3
dist/mod00/mod00.compile.js
vendored
@ -1,12 +1,11 @@
|
||||
"use strict";
|
||||
const q = require("smartq");
|
||||
const paths = require("../npmts.paths");
|
||||
const npmts_log_1 = require("../npmts.log");
|
||||
const plugins = require("./mod00.plugins");
|
||||
exports.run = function (configArg) {
|
||||
let done = q.defer();
|
||||
let config = configArg;
|
||||
npmts_log_1.npmtsOra.text('now compiling ' + 'TypeScript'.yellow);
|
||||
plugins.beautylog.ora.text('now compiling ' + 'TypeScript'.yellow);
|
||||
plugins.tsn.compileGlobStringObject(config.ts, config.tsOptions, paths.cwd)
|
||||
.then(() => {
|
||||
plugins.beautylog.ok('compiled main TypeScript!');
|
||||
|
Reference in New Issue
Block a user