1.5.0 • Published 9 years ago
bemstyla v1.5.0
bemstyla
Creates block__elem_mod-name_mod-value styl files
One command
bemstyla block__elem_mod-name_mod-valMakes dirs and styl files
tree
blocks
└── block
├── __elem
│ ├── _mod-name
│ │ └── block__elem_mod-name_mod-val.styl
│ └── block__elem.styl
└── block.stylAnd writes initial selector
cat blocks/block/block__elem.styl
.block__elem
{}Install
npm install --global bemstylaUsage
bemstyla --help
Usage: bemstyla [options]
Options:
-h, --help output usage information
-V, --version output the version number
-t, --type [type] file type [styl]
-f, --format [format] file content format [styl] (by default based on type)
-d, --dir [path] output files location
Examples:
bemstyla -h
bemstyla block__elem
bemstyla block_mod block__elem_mod foo__bar foo__qux
bemstyla block--mod block__elem--mod
bemstyla header.pug body.jade footer.html
bemstyla -t css bar__baz_qux
bemstyla -f less foo_bar
bemstyla -d styles/blocks blocknamePug (Jade) file support
bemstyla index.pug
bemstyla _content.pug _sidebar.pug _footer.pugHTML file support
bemstyla index.html
bemstyla _content.html _sidebar.html _footer.htmlOutput file extension
Default: styl
bemstyla -t less block__elem
bemstyla --type css block__elemFile content format
Default: styl based on file type
bemstyla -f less block__elem
bemstyla --format css block__elemFormats
Default,
styl,sass.block {}Usage
.block border: nonecss,less,scss.block { }Usage
.block { border: none; }
Output file location
bemstyla -d css/components block__elem
bemstyla --dir styles/blocks block__elemSolutions with the same functionality
License
MIT © Vladimir Rodkin
1.5.0
9 years ago
1.4.0
10 years ago
1.3.2
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.2.0
10 years ago
1.1.1
11 years ago
1.1.0
11 years ago
1.0.1
11 years ago
1.0.0
11 years ago
0.6.1
11 years ago
0.6.0
11 years ago
0.5.0
11 years ago
0.4.1
11 years ago
0.3.1
11 years ago
0.3.0
11 years ago
0.2.2
11 years ago
0.2.1
11 years ago
0.2.0
11 years ago