rxdi / firelink

Firebase. gcloud and monorepos are not combining very well until they met @rxdi/firelink
MIT License
68 stars 9 forks source link

Ignore some folders or files using `.fireignore` or property inside package.json `fireConfig.excludes` accepts Array #25

Closed Stradivario closed 2 years ago

Stradivario commented 2 years ago

This functionality will help us to ignore certain files or folders using the standard way like .gitignore file. The idea is that we may want to exclude node_modules from every monorepo package that we have and leave only the build in some cases.

Having .fireignore capabilities we can have a better control over ignoring files

fireConfig.excludes should combine each other with .fireignore so both configurations can be used at the same time.

For example if we have inside fireConfig.excludes an array with strings

{
  "fireConfig": {
     "excludes": ["node_modules", "dist"]
   }
}

and inside .fireignore

package.json

The final ignored folders will be

const ignored = ['node_modules', 'dist', 'package.json'];
Stradivario commented 2 years ago

Pull request opened with the functionality

https://github.com/rxdi/firelink/pull/26