Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with resolve targets in nested nodes #96

Closed
blond opened this issue May 24, 2014 · 0 comments · Fixed by #97
Closed

Bug with resolve targets in nested nodes #96

blond opened this issue May 24, 2014 · 0 comments · Fixed by #97

Comments

@blond
Copy link
Member

blond commented May 24, 2014

На файловой системе:

-- sets/
  -- block/
    -- block.md
    -- block.examples/
      -- 10-example/
        -- 10-example.bemjson.js

В конфиге декларируем ноды:

config.nodes('sets/*', ...);
config.nodes('sets/*/*.examples/*', ...);

В результате таргеты разрезолвятся так:

{ 
    node: 'sets/block',
    targets: [ '*', 'block.bundles/10-example' ] 
}

А хочется, чтобы так:

[
    { 
        node: 'sets/block',
        targets: ['*'] 
    },
    { 
        node: 'sets/block/block.bundles/10-example',
        targets: [ '*' ] 
    } 
]
@blond blond changed the title Bug with targets resolve in nested nodes Bug with resolve targets in nested nodes May 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant