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

New ignore strategy: .nuxtignore #21

Closed
clarkdo opened this issue Dec 21, 2018 · 5 comments
Closed

New ignore strategy: .nuxtignore #21

clarkdo opened this issue Dec 21, 2018 · 5 comments

Comments

@clarkdo
Copy link
Member

clarkdo commented Dec 21, 2018

Proposal

  • Support .nuxtignore for ignoring pages, tests and store modules.
  • Glob pattern is preferred in ignore pattern (same as gitignore, eslintignore), node-ignore can be a choice for matching which is using by eslint.

Usage

Specifies intentionally untracked files to ignore in Nuxt

**/*.test.js
pages/*foo.js
store/*bar.js

Pre requirement (idea from @pi0 )

  • Removal of require.context from store
  • Use a same approach of pages scanning for store modules

Pull Request: nuxt/nuxt#4647

@Atinux
Copy link
Member

Atinux commented Dec 21, 2018

I really like this idea, making Nuxt easier to configure while keeping known best practices (.gitignore, etc).

Also, it could be combined with glob-gitignore :)

@manniL
Copy link
Member

manniL commented Jan 10, 2019

Probably out of the scope for this RFC but having away to ignore pages from being generated (but still available via SPA fallback) would be lovely.

maybe with a .nuxtignore w/ a different name?

@aldarund
Copy link

@manniL maybe for pages stop from being generated we need another RFC :) And there could be usefull that users can define which pages generated dynamically via code,, that would be useful for usecases when there a lot of static page and only some of then need to be regenerated

@manniL
Copy link
Member

manniL commented Jan 14, 2019

@aldarund already went for it in nuxt/nuxt#4754 ☺️

Incremental build is another topic, right

@manniL
Copy link
Member

manniL commented Jan 29, 2019

nuxt/nuxt#4647

Merged. Will target v2.5

@manniL manniL closed this as completed Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants