Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

bem server: Initialize bundle level targets #49

Closed
arikon opened this issue Mar 15, 2012 · 0 comments
Closed

bem server: Initialize bundle level targets #49

arikon opened this issue Mar 15, 2012 · 0 comments

Comments

@arikon
Copy link
Contributor

arikon commented Mar 15, 2012

Read config from .bem/<something>.js (.bem/levels.js?), look for function-getter or glob variable, generate target for each bundle level present.

Config could be like this:

// regexp?
exports.bundleLevelsRegexp = /bundles.*?/;

// glob pattern?
exports.bundleLevelsGlob = 'bundles* pages*';

// function-getter (overriding default implementation)
exports.getBundleLevels = function() {
    return ['pages', 'widgets'];
};
@ghost ghost assigned scf2k Mar 15, 2012
scf2k added a commit that referenced this issue Mar 22, 2012
- added block node (#51)
- improved level node (#50)
- refactored bundle level targets initialization (#49)
- refactored block library targets initialization (#48)
@scf2k scf2k closed this as completed Mar 22, 2012
@vithar vithar unassigned scf2k Oct 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants