CGA1123/slugcmplr

Support `.slugignore`

CGA1123 opened this issue · 4 comments

.slugignore files can be used to nuke a bunch of files/folders from the final slug, making it smaller.

See: https://devcenter.heroku.com/articles/slug-compiler#ignoring-files-with-slugignore

Should be feasible by using the Skip options in https://pkg.go.dev/github.com/otiai10/copy#Options

Also, should remember to update the README to reflect this (removing the TODO)

alternatively: https://github.com/sabhiram/go-gitignore

i've tried both out, but they both seem to be missing some edge cases from some rough testing 😞

Not sure if I want to implement my own .slugignore parser? Would need to come up with some sensible examples to test against 🤔

Heroku doesn't support the ! operator that gitignore does, but they don't go into much more detail about what else is/isn't support which isn't ideal!