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

Flex scheme #18

Open
blond opened this issue Feb 16, 2015 · 6 comments
Open

Flex scheme #18

blond opened this issue Feb 16, 2015 · 6 comments

Comments

@blond
Copy link
Member

blond commented Feb 16, 2015

flex scheme should support all states between flat and nested.

# original `flat`
blocks/
├── block.tech
├── block_mod.tech
├── block__elem.tech
└── block__elem_mod.tech

# blocks are divided into dirs
blocks/
└── block/
    ├── block.tech
    ├── block_mod.tech
    ├── block__elem.tech
    └── block__elem_mod.tech

# less strict `nested`
# blocks, elems and mods are divided into dirs, but not necessarily
blocks/
└── block/
    ├── _mod/
        └── block_mod.tech
    ├── block__elem.tech
    ├── block__elem_mod.tech
    └── block.tech

# original `nested`
blocks/
└── block/
    ├── __elem/
        ├── _mod/
            └── block__elem_mod.tech
        └── block__elem.tech
    ├── _mod/
        └── block_mod.tech
    └── block.tech
@blond
Copy link
Member Author

blond commented Feb 16, 2015

@tenorok, it seems that you were talking about something like that ;)

@qfox
Copy link
Contributor

qfox commented Feb 16, 2015

👍

@tenorok
Copy link

tenorok commented Feb 16, 2015

Yeah! This is the most! Such functionality would be delightful ✨

@qfox
Copy link
Contributor

qfox commented Feb 16, 2015

I wanna say that there are big difference between blocks/block/** and blocks/block_**. So you can't emit block-objects in a middle for flat scheme. I think it's fine for small projects, but it should report object asap for big projects and blocks/block/** schemes.

@blond blond self-assigned this Feb 16, 2015
@blond
Copy link
Member Author

blond commented Feb 16, 2015

I think it's fine for small projects, but it should report object asap for big projects and blocks/block/** schemes.

For big projects should use the nested scheme.

@qfox
Copy link
Contributor

qfox commented Feb 16, 2015

For big projects should use the nested scheme.

It would be enough to use any scheme with files grouped by block name.

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

4 participants