Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat exit message #935

Merged
merged 3 commits into from
Mar 4, 2018
Merged

Feat exit message #935

merged 3 commits into from
Mar 4, 2018

Conversation

Akryum
Copy link
Member

@Akryum Akryum commented Mar 3, 2018

Fix #832

Generator code example:

api.exitLog('Test')
api.exitLog()
api.exitLog('Test', 'info')
api.exitLog()
api.exitLog('Test', 'done')
api.exitLog()
api.exitLog('Test', 'warn')
api.exitLog()
api.exitLog('Test', 'error')

capture d ecran du 2018-03-03 13 00 20

printExitLogs () {
if (this.exitLogs.length) {
this.exitLogs.forEach(({ id, msg, type }) => {
const shortId = id.replace('@vue/cli-plugin-', '').replace('vue-cli-plugin-', '')
Copy link
Member

Choose a reason for hiding this comment

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

We probably should extract the shortId logic into a util function since it's used in a few other places as well.

There's a request regarding custom scoped cli plugins (#908) so the regex may need to be adjusted, it's better to keep it in a single place.

@Akryum Akryum requested a review from yyx990803 March 4, 2018 09:12
@yyx990803 yyx990803 merged commit 0f2ee80 into dev Mar 4, 2018
@Akryum Akryum deleted the feat-exit-message branch May 29, 2018 07:58
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