The Wayback Machine - https://web.archive.org/web/20200828232345/https://github.com/nuxt/nuxt.js/issues/6031
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

Better "help" text for `nuxt generate --no-build` #6031

Open
FreekVR opened this issue Jul 4, 2019 — with CMTY · 5 comments
Open

Better "help" text for `nuxt generate --no-build` #6031

FreekVR opened this issue Jul 4, 2019 — with CMTY · 5 comments

Comments

Copy link

@FreekVR FreekVR commented Jul 4, 2019 — with CMTY

Version

v2.8.1

Reproduction link

https://codesandbox.io/s/codesandbox-nuxt-y4nlw

Steps to reproduce

Build an app with some static routes, like "pages/about.vue". Then set-up a build process where you run nuxt build and nuxt generate --no-build as separate commands. (In the sandbox, open a new terminal then yarn run build-then-generate)

What is expected ?

A page called "about.html" is generated.

What is actually happening?

Only pages registered in config.generate.routes are picked up. about.html is not generated at all.

Additional comments?

Running nuxt generate without the "--no-build" param is working fine.

This bug report is available on Nuxt community (#c9454)
@cmty cmty bot added the bug-report label Jul 4, 2019
@pimlie
Copy link
Member

@pimlie pimlie commented Jul 8, 2019

no-build is meant to be used for incremental builds when you eg only wish to generate newly added dynamic routes. See the v1.0.0 changelog entry here (under features) but also the output of nuxt generate --help:

    --no-build         Only generate pages for dynamic routes. Nuxt has to be built once before using this
                       option

I guess the main issue here is that you dont need to built once but generate once with build

@FreekVR
Copy link
Author

@FreekVR FreekVR commented Jul 8, 2019

That makes a bit of sense, I guess if that is how it was designed the help text could be updated a bit to clarify ;)

@Atinux
Copy link
Member

@Atinux Atinux commented Jul 10, 2019

You are right on this @FreekVR

We will improve it in upcoming releases :)

@manniL
Copy link
Member

@manniL manniL commented Jul 11, 2019

@FreekVR If you have an idea for a better help text, please send in a PR! We would appreciate it ☺️

@stale
Copy link

@stale stale bot commented Aug 1, 2019

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

@stale stale bot added the stale label Aug 1, 2019
@manniL manniL added the pending label Aug 1, 2019
@stale stale bot removed the stale label Aug 1, 2019
@manniL manniL changed the title nuxt generate with --no-build doesn't generate static routes Better "help" text for `nuxt generate --no-build` Aug 2, 2019
dtmzr added a commit to dtmzr/nuxt.js that referenced this issue Jun 3, 2020
dtmzr added a commit to dtmzr/nuxt.js that referenced this issue Jun 3, 2020
pi0 pushed a commit that referenced this issue Jun 4, 2020
@pi0 pi0 mentioned this issue Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.