nuxt / rfcs

RFCs for changes to Nuxt.js
99 stars 2 forks source link

New ignore strategy: .nuxtignore #21

Closed clarkdo closed 5 years ago

clarkdo commented 5 years ago

Proposal

Usage

Specifies intentionally untracked files to ignore in Nuxt

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

Pre requirement (idea from @pi0 )

Pull Request: https://github.com/nuxt/nuxt.js/pull/4647

atinux commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

@aldarund already went for it in https://github.com/nuxt/nuxt.js/pull/4754 :relaxed:

Incremental build is another topic, right

manniL commented 5 years ago

https://github.com/nuxt/nuxt.js/pull/4647

Merged. Will target v2.5