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

chore(cli): rename setup hook to run:before #6363

Merged
merged 1 commit into from
Sep 5, 2019
Merged

Conversation

kevinmarrec
Copy link
Contributor

Description

Rename setup CLI hook to run:before to better fit the context where it's called.

Checklist:

  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@kevinmarrec kevinmarrec requested a review from pi0 September 5, 2019 07:47
@@ -36,7 +36,7 @@ export default class NuxtCommand extends Hookable {
}

async run () {
await this.callHook('setup', {
await this.callHook('run:before', {
Copy link
Member

Choose a reason for hiding this comment

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

This will be a breaking change for ts module users that only upgrade their nuxt. Is this OK? (I think for an internal hook like this setup name is just fine)

so still merge this? :)

Copy link
Contributor Author

@kevinmarrec kevinmarrec Sep 5, 2019

Choose a reason for hiding this comment

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

@pi0 Well current last Nuxt release has setup hook not called at the really wanted place, and Nuxt TS with hooks is only draft PR.

We talked about breaking change indeed for people upgrading TS runtime but not Nuxt, but we said we want to force user to use last hooky Nuxt version , so all good no ? 😁

Copy link
Member

Choose a reason for hiding this comment

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

Yep! I thought TS module was released with setup hook. So seems good!

@codecov-io
Copy link

codecov-io commented Sep 5, 2019

Codecov Report

Merging #6363 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #6363   +/-   ##
=======================================
  Coverage   95.72%   95.72%           
=======================================
  Files          79       79           
  Lines        2666     2666           
  Branches      683      683           
=======================================
  Hits         2552     2552           
  Misses         98       98           
  Partials       16       16
Flag Coverage Δ
#e2e 100% <ø> (ø) ⬆️
#fixtures 50.71% <0%> (ø) ⬆️
#unit 92.38% <100%> (ø) ⬆️
Impacted Files Coverage Δ
packages/cli/src/command.js 99% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81f0c8a...e379a7a. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants