This commit is contained in:
2017-08-16 19:13:01 +02:00
parent e0f208ba41
commit a6fbe7da33
8 changed files with 186 additions and 91 deletions

View File

@ -8,7 +8,7 @@ early.start('NPMTS')
import * as plugins from './npmts.plugins'
import * as cli from './npmts.cli'
early.stop()
.then(() => {
let loaded = plugins // to make sure plugins get actually loaded
cli.run()
})
.then(() => {
let loaded = plugins // to make sure plugins get actually loaded
cli.run()
})

View File

@ -24,6 +24,8 @@ npmtsAnalytics.sendEvent('npm','exec','git.zone')
export let run = () => {
let done = q.defer()
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot)
// check for updates
plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version)
let npmtsCli = new plugins.smartcli.Smartcli()
npmtsCli.standardTask()
.then((argvArg) => {

View File

@ -14,6 +14,7 @@ import * as smartpath from 'smartpath'
import * as smartstream from 'smartstream'
import * as smartstring from 'smartstring'
import * as smartsystem from 'smartsystem'
import * as smartupdate from 'smartupdate'
import * as through2 from 'through2'
export {
@ -31,5 +32,6 @@ export {
smartstream,
smartstring,
smartsystem,
smartupdate,
through2
}