Byron / bcore

powerful application framework built to integrate, not separate
http://byron.github.io/bcore/
Other
8 stars 2 forks source link

bprocess: simplify configuration key #18

Closed Byron closed 10 years ago

Byron commented 10 years ago

Currently, a typical proxy package looks like this:

packages:
  bqt: 
    trees: '{assembly.trees.core}/src/integrations/cute'
    configuration:
      trees: etc
      files: etc/subdir/special.yaml

Even though the split in trees and files maps well to the underlying API, it's nothing that needs to be told. Instead, the system can figure this out by itself quite easily, which would allow the above example to look like this:

packages:
  bqt: 
    trees: '{assembly.trees.core}/src/integrations/cute'
    include:
      - etc
      - etc/subdir/special.yaml

Same goes for package-manager.configuration

Byron commented 10 years ago

Note

Now the key package.pack.exclude can be confused as being the opposite of packages.pack.include, which is not the case as it refers to exclusion of packages.

It should be renamed to 'ignore', so it's 'require - ignore', and 'include - (exclude)', whereas exclude is not implemented. The latter can happen though, but it less trivial than it sounds as it would mean to resolve directories into files right away, or implement a filter in the HierarchicalContext.