Compare commits

...

4 Commits

Author SHA1 Message Date
3105f8f401 8.0.8 2017-08-16 23:46:26 +02:00
70b83fcafc fix smartupdate execution 2017-08-16 23:46:20 +02:00
7e8e4b1891 8.0.7 2017-08-16 23:33:48 +02:00
aa8279c281 update dependencies 2017-08-16 23:33:39 +02:00
4 changed files with 22 additions and 13 deletions

16
dist/npmts.cli.js vendored
View File

@ -1,4 +1,12 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const q = require("smartq"); const q = require("smartq");
const plugins = require("./npmts.plugins"); const plugins = require("./npmts.plugins");
@ -20,11 +28,11 @@ const NpmtsShip = require("./npmts.ship");
*/ */
let npmtsAnalytics = new plugins.smartanalytics.AnalyticsAccount('npmts', 'UA-64087619-5'); let npmtsAnalytics = new plugins.smartanalytics.AnalyticsAccount('npmts', 'UA-64087619-5');
npmtsAnalytics.sendEvent('npm', 'exec', 'git.zone'); npmtsAnalytics.sendEvent('npm', 'exec', 'git.zone');
exports.run = () => { exports.run = () => __awaiter(this, void 0, void 0, function* () {
let done = q.defer(); let done = q.defer();
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot); let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
// check for updates // check for updates
plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version); yield plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version);
let npmtsCli = new plugins.smartcli.Smartcli(); let npmtsCli = new plugins.smartcli.Smartcli();
npmtsCli.standardTask() npmtsCli.standardTask()
.then((argvArg) => { .then((argvArg) => {
@ -70,5 +78,5 @@ exports.run = () => {
} }); } });
npmtsCli.addVersion(npmtsProjectInfo.version); npmtsCli.addVersion(npmtsProjectInfo.version);
npmtsCli.startParse(); npmtsCli.startParse();
return done.promise; return yield done.promise;
}; });

View File

@ -1,6 +1,6 @@
{ {
"name": "npmts", "name": "npmts",
"version": "8.0.6", "version": "8.0.8",
"description": "best practice npm TypeScript modules", "description": "best practice npm TypeScript modules",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {
@ -58,7 +58,7 @@
"smartstream": "^1.0.10", "smartstream": "^1.0.10",
"smartstring": "^2.0.24", "smartstring": "^2.0.24",
"smartsystem": "^2.0.2", "smartsystem": "^2.0.2",
"smartupdate": "^1.0.3", "smartupdate": "^1.0.4",
"tapbuffer": "^1.0.29", "tapbuffer": "^1.0.29",
"through2": "^2.0.3", "through2": "^2.0.3",
"tsn": "^2.0.15", "tsn": "^2.0.15",

View File

@ -21,11 +21,11 @@ import * as NpmtsShip from './npmts.ship'
let npmtsAnalytics = new plugins.smartanalytics.AnalyticsAccount('npmts','UA-64087619-5') let npmtsAnalytics = new plugins.smartanalytics.AnalyticsAccount('npmts','UA-64087619-5')
npmtsAnalytics.sendEvent('npm','exec','git.zone') npmtsAnalytics.sendEvent('npm','exec','git.zone')
export let run = () => { export let run = async () => {
let done = q.defer() let done = q.defer()
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot) let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot)
// check for updates // check for updates
plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version) await plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version)
let npmtsCli = new plugins.smartcli.Smartcli() let npmtsCli = new plugins.smartcli.Smartcli()
npmtsCli.standardTask() npmtsCli.standardTask()
.then((argvArg) => { .then((argvArg) => {
@ -70,5 +70,5 @@ export let run = () => {
.catch((err) => { if (err instanceof Error) { console.log(err) } }) .catch((err) => { if (err instanceof Error) { console.log(err) } })
npmtsCli.addVersion(npmtsProjectInfo.version) npmtsCli.addVersion(npmtsProjectInfo.version)
npmtsCli.startParse() npmtsCli.startParse()
return done.promise return await done.promise
} }

View File

@ -339,7 +339,7 @@ bcrypt-pbkdf@^1.0.0:
dependencies: dependencies:
tweetnacl "^0.14.3" tweetnacl "^0.14.3"
beautycolor@^1.0.7, beautycolor@^1.0.9: beautycolor@^1.0.10, beautycolor@^1.0.7, beautycolor@^1.0.9:
version "1.0.10" version "1.0.10"
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.10.tgz#4b50758e59115839b3bb2bfe8aaaec9e29c747dd" resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.10.tgz#4b50758e59115839b3bb2bfe8aaaec9e29c747dd"
dependencies: dependencies:
@ -2906,10 +2906,11 @@ smarttime@^1.0.6:
dependencies: dependencies:
typings-global "^1.0.16" typings-global "^1.0.16"
smartupdate@^1.0.3: smartupdate@^1.0.4:
version "1.0.3" version "1.0.4"
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.3.tgz#9b8ddac4b6f8c44ebd0e1ccca8d3f613c4970ac1" resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.4.tgz#73a587569c3788c8b04a3dd6422a6837373416c0"
dependencies: dependencies:
beautycolor "^1.0.10"
beautylog "^6.1.10" beautylog "^6.1.10"
npmextra "^2.0.9" npmextra "^2.0.9"
smartnpm "^1.0.4" smartnpm "^1.0.4"