Giter Club home page Giter Club logo

bem-tools-make's Introduction

BEM Tools

Toolkit to work with files based on BEM methodology.

This package is a bundle of bem-tools-core and some of the available plugins.

Installation

You need NodeJS 4+ and npm 2+.

npm install -g bem

Usage

Get the list of commands with bem --help.

To read about commands use bem COMMAND --help.

License

Code and documentation © 2016 YANDEX LLC. Code released under the Mozilla Public License 2.0.

bem-tools-make's People

Contributors

tadatuta avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ilyar

bem-tools-make's Issues

Примерная реализация обёртки над enb

У нас на проекте пока есть соображения, как сделать хэлпер bem build (по сути bem make)

Некоторые наработки видения реализации

Хранить конфигурационный файл бандлов. Как-то так

[{
    bundle : 'page_shop_orders',
    platforms : ['touch', 'desktop', 'print']
    decl : [
        {
            block : 'page',
            mods : { theme : 'hm', view : 'orders' },
        }
    ]
}, {
    bundle : 'page_admin_orders',
    platforms : ['desktop', 'print'],
    decl : [
        {
            block : 'page',
            mods : { theme : 'light', view : 'orders' },
        }
    ]
}]
bem build page_shop_index@desktop 
// только desktop

bem build page_shop_index 
// все платформы

bem build page_shop_index -f
// с чисткой кэша

Запуск сборки синкает delc бандла c декларацией бандла на fs (перезатирая) и запускает сборку через enb.
Над конфигами для модуля ещё не думали, но там должны быть прописаны пути ("маски") для сохранения bemdecl на файловой системе.

bundleDir : {platform}.bundles/{name}
bundleDir : bundles/{platform}/{name}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.