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

fix(nuxt): clear dist directory before local dev #5430

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Dec 4, 2023

🎉 Thanks for submitting a pull request! 🎉

Summary

Part of https://linear.app/netlify/issue/COM-184/nuxt-netlify-dev-doesnt-work. Adds a boolean to show that Nuxt needs its dist directory cleared, before starting local dev.

See netlify/cli#6242 (comment) for more.


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@@ -56,6 +56,7 @@ export interface Framework {
command: string
port?: number
pollingStrategies?: PollingStrategy[]
clearDist?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

For clarification, what is Dist? is it always a dist directory, or is it some output directory that can be configured, like the publish one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the case of Nuxt, it's dist - but more generally, it's the publish directory. Let me rename this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in d2ebd2b

@Skn0tt Skn0tt enabled auto-merge (squash) December 5, 2023 14:01
@Skn0tt Skn0tt merged commit c59b9a1 into main Dec 5, 2023
36 checks passed
@Skn0tt Skn0tt deleted the nuxt-cleardist-before-dev branch December 5, 2023 14:09
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