Skip to content

WIP: update lkgr#2

Open
al-k21 wants to merge 4 commits intooldmasterfrom
ulkgr
Open

WIP: update lkgr#2
al-k21 wants to merge 4 commits intooldmasterfrom
ulkgr

Conversation

@al-k21
Copy link
Owner

@al-k21 al-k21 commented Mar 2, 2018

Added:

  • lkgr to the lookup (modules that passed on my mac).
  • --lkgr option for citgm and citgm-all to run, which rans lkgr from the lookup, instead of defaulting to taking npm latest.
  • --ulkgr option for citgm and citgm-all, to update lookup

TODO:

  • Support for different os/platform and node versions.
  • Error handling
  • Raise a PR
  • Tests
  • Documentation

add upadate task that will only run when --ulkgr option passed
bin/citgm-all.js Outdated
.option('last-know-good-release', {
alias: 'lkgr',
type: 'boolean',
description: 'Uses last know good release'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

know -> known

bin/citgm-all.js Outdated
type: 'array',
description: 'Define which tags from the lookup to skip'
})
.option('last-know-good-release', {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

know -> known

bin/citgm.js Outdated
.option('last-known-good-release', {
alias: 'lkgr',
type: 'boolean',
description: 'Install last know good release'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

know -> known

bin/citgm.js Outdated
.option('update-last-known-good-release', {
alias: 'ulkgr',
type: 'boolean',
description: 'Update last know good release'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

know -> known

bin/citgm.js Outdated
type: 'boolean',
description: 'Install last know good release'
})
.option('update-last-known-good-release', {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you call this update-lkgr?


function update(context, next) {

if (context.options.ulkgr) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a check to make sure the new module version isn't the same as the previous version? If they're the same there's no need to do all this.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner Author

@al-k21 al-k21 Mar 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realised the link doesn't have the line number.
It is on line 16, and the info saying that lookup is already up to date is on line 36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants