dart-archive / custom-element-apigen

Tool to generate Dart APIs for polymer custom elements written in Javascript
BSD 3-Clause "New" or "Revised" License
13 stars 13 forks source link

delete unnecessary files from bower installs #1

Closed sigmundch closed 10 years ago

sigmundch commented 10 years ago

I'd remove:

More details here https://github.com/dart-lang/core-elements/issues/32

Not sure if this is general enough to do it automatically, or something we should configure on the config.yaml file.

jakemac53 commented 10 years ago

I think just allowing a list of Regexp patterns over file names would be fine.

sigmundch commented 10 years ago

actually - for core-elements in paper-elements, we could practically delete the entire folders and just create the stubs that are already listed in the config file (and recreate the folder where they are).

Maybe we can just list the directories to wipe for this case?

jakemac53 commented 10 years ago

The way it works now will effectively do that, you can just put the directory name and that will match all files under it. Since git doesn't actually know about folders I am just skipping them.

sigmundch commented 10 years ago

One thing to keep in mind though is that pub-lish might not ignore the empty dirs.

So far we actually anyways plan to keep a file on each dir, so the current solution might be exactly what we need.