Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
d1d85819d7 | |||
e267fce3bb | |||
f964b2737f | |||
6ac634e178 | |||
3105f8f401 | |||
70b83fcafc | |||
7e8e4b1891 | |||
aa8279c281 |
19
dist/npmts.cli.js
vendored
19
dist/npmts.cli.js
vendored
@ -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,15 +28,16 @@ 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();
|
||||||
|
plugins.beautylog.figletSync('NPMTS');
|
||||||
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, 'http://gitzone.gitlab.io/npmts/changelog.html');
|
||||||
|
plugins.beautylog.log('---------------------------------------------');
|
||||||
let npmtsCli = new plugins.smartcli.Smartcli();
|
let npmtsCli = new plugins.smartcli.Smartcli();
|
||||||
npmtsCli.standardTask()
|
npmtsCli.standardTask()
|
||||||
.then((argvArg) => {
|
.then((argvArg) => {
|
||||||
plugins.beautylog.figletSync('NPMTS');
|
|
||||||
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version);
|
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version);
|
||||||
return NpmtsConfig.run(argvArg);
|
return NpmtsConfig.run(argvArg);
|
||||||
})
|
})
|
||||||
@ -70,5 +79,5 @@ exports.run = () => {
|
|||||||
} });
|
} });
|
||||||
npmtsCli.addVersion(npmtsProjectInfo.version);
|
npmtsCli.addVersion(npmtsProjectInfo.version);
|
||||||
npmtsCli.startParse();
|
npmtsCli.startParse();
|
||||||
return done.promise;
|
return yield done.promise;
|
||||||
};
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmts",
|
"name": "npmts",
|
||||||
"version": "8.0.6",
|
"version": "8.0.10",
|
||||||
"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.5",
|
||||||
"tapbuffer": "^1.0.29",
|
"tapbuffer": "^1.0.29",
|
||||||
"through2": "^2.0.3",
|
"through2": "^2.0.3",
|
||||||
"tsn": "^2.0.15",
|
"tsn": "^2.0.15",
|
||||||
|
@ -21,15 +21,16 @@ 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()
|
||||||
|
plugins.beautylog.figletSync('NPMTS')
|
||||||
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, 'http://gitzone.gitlab.io/npmts/changelog.html')
|
||||||
|
plugins.beautylog.log('---------------------------------------------')
|
||||||
let npmtsCli = new plugins.smartcli.Smartcli()
|
let npmtsCli = new plugins.smartcli.Smartcli()
|
||||||
npmtsCli.standardTask()
|
npmtsCli.standardTask()
|
||||||
.then((argvArg) => {
|
.then((argvArg) => {
|
||||||
plugins.beautylog.figletSync('NPMTS')
|
|
||||||
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version)
|
plugins.beautylog.info('npmts version: ' + npmtsProjectInfo.version)
|
||||||
return NpmtsConfig.run(argvArg)
|
return NpmtsConfig.run(argvArg)
|
||||||
})
|
})
|
||||||
@ -70,5 +71,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
|
||||||
}
|
}
|
||||||
|
34
yarn.lock
34
yarn.lock
@ -92,8 +92,12 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
|
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
|
||||||
|
|
||||||
"@types/node@*", "@types/node@^8.0.10":
|
"@types/node@*", "@types/node@^8.0.10":
|
||||||
version "8.0.22"
|
version "8.0.23"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.22.tgz#9c6bfee1f45f5e9952ff6b487e657ecca48c7777"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.23.tgz#c746697004782346594a0d755c34425bbf3014d2"
|
||||||
|
|
||||||
|
"@types/open@^0.0.29":
|
||||||
|
version "0.0.29"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/open/-/open-0.0.29.tgz#3de910012674909db14d608d1fde44ffa7a9ecea"
|
||||||
|
|
||||||
"@types/promises-a-plus@*":
|
"@types/promises-a-plus@*":
|
||||||
version "0.0.27"
|
version "0.0.27"
|
||||||
@ -339,7 +343,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:
|
||||||
@ -2165,6 +2169,10 @@ onetime@^2.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
mimic-fn "^1.0.0"
|
mimic-fn "^1.0.0"
|
||||||
|
|
||||||
|
open@^0.0.5:
|
||||||
|
version "0.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/open/-/open-0.0.5.tgz#42c3e18ec95466b6bf0dc42f3a2945c3f0cad8fc"
|
||||||
|
|
||||||
optimist@^0.6.1:
|
optimist@^0.6.1:
|
||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
|
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
|
||||||
@ -2833,6 +2841,14 @@ smartnpm@^1.0.4:
|
|||||||
smartrequest "^1.0.6"
|
smartrequest "^1.0.6"
|
||||||
typings-global "^1.0.16"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
|
smartopen@^1.0.3:
|
||||||
|
version "1.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/smartopen/-/smartopen-1.0.3.tgz#11a5835b50103e09fc9702ec9a884605ad7e584d"
|
||||||
|
dependencies:
|
||||||
|
"@types/open" "^0.0.29"
|
||||||
|
open "^0.0.5"
|
||||||
|
typings-global "^1.0.20"
|
||||||
|
|
||||||
smartparam@0.1.1:
|
smartparam@0.1.1:
|
||||||
version "0.1.1"
|
version "0.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/smartparam/-/smartparam-0.1.1.tgz#51c526bf38b0965007b21edd3e96c7e179c93591"
|
resolved "https://registry.yarnpkg.com/smartparam/-/smartparam-0.1.1.tgz#51c526bf38b0965007b21edd3e96c7e179c93591"
|
||||||
@ -2906,13 +2922,15 @@ smarttime@^1.0.6:
|
|||||||
dependencies:
|
dependencies:
|
||||||
typings-global "^1.0.16"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
smartupdate@^1.0.3:
|
smartupdate@^1.0.5:
|
||||||
version "1.0.3"
|
version "1.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.3.tgz#9b8ddac4b6f8c44ebd0e1ccca8d3f613c4970ac1"
|
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.5.tgz#f5f51623a5f82504ecee674f6162db50a64599e3"
|
||||||
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"
|
||||||
|
smartopen "^1.0.3"
|
||||||
smarttime "^1.0.6"
|
smarttime "^1.0.6"
|
||||||
typings-global "^1.0.20"
|
typings-global "^1.0.20"
|
||||||
|
|
||||||
@ -2932,8 +2950,8 @@ source-map-resolve@^0.3.0:
|
|||||||
urix "~0.1.0"
|
urix "~0.1.0"
|
||||||
|
|
||||||
source-map-support@^0.4.15:
|
source-map-support@^0.4.15:
|
||||||
version "0.4.15"
|
version "0.4.16"
|
||||||
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1"
|
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.16.tgz#16fecf98212467d017d586a2af68d628b9421cd8"
|
||||||
dependencies:
|
dependencies:
|
||||||
source-map "^0.5.6"
|
source-map "^0.5.6"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user