rxdi / firelink

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

feat(ignore): added ignore files using pattern and revereted rsync and for windows robocopy is used #26

Closed Stradivario closed 2 years ago

Stradivario commented 2 years ago

Issue

Description

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'];

Type of change

Checklist: