Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Exclude files or directories from the compactors #83

Open
tedivm opened this issue Jul 1, 2014 · 1 comment
Open

Exclude files or directories from the compactors #83

tedivm opened this issue Jul 1, 2014 · 1 comment
Milestone

Comments

@tedivm
Copy link

tedivm commented Jul 1, 2014

I have a directory in my project that need to preserve whitespace in it's php files. Other than that directory I would love to be able to send the files through the compactor.

My thought is that this can be done by adding an option to both of the compactors to pass them an exclusion list, and then modifying the "supports($file) method to refer to that. Alternatively a way to load in custom compactors for projects that need it would be great.

@ghost ghost added the Enhancement label Jul 7, 2014
@ghost ghost added this to the 3.0 milestone Jul 7, 2014
@ghost
Copy link

ghost commented Jul 7, 2014

Enhancement: Custom compactors.

Something I will definitely be supporting in the next version of Box.

In the mean time, see if you can make use of the finder and finder-bin configuration options:

The finder (array) setting is a list of JSON objects. Each object key
 is a name, and each value an argument for the methods in the
 Symfony\Component\Finder\Finder class. If an array of values is provided
 for a single key, the method will be called once per value in the array.
 Note that the paths specified for the "in" method are relative to
 base-path.

 The finder-bin (array) setting performs the same function, except all
 files found by the finder will be treated as binary files, leaving them
 unmodified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant