Giter VIP home page Giter VIP logo

enb-bem-techs's Introduction

enb-bem-techs

NPM version Build Status Build status Coverage Status Dependency Status

enb-bem-techs — это основной пакет технологий для работы с проектами, созданными по БЭМ-методологии.

Пакет предоставляет набор базовых ENB-технологий, основная задача которых — подготовить промежуточный результат для технологий, которые ничего не знают о БЭМ-методологии и о том, как устроен проект.

Большинство технологий из других пакетов в ENB ожидает на вход список файлов или директорий, а также информацию о требуемом порядке для их сборки.

Технологии пакета enb-bem-techs:

  • levels — cобирает информацию о БЭМ-сущностях на уровнях переопределения.
  • levelsToBemdecl — формирует BEMDECL-файл из БЭМ-сущностей с указанных уровней.
  • bemjsonToBemdecl — формирует BEMDECL-файл из BEMJSON-файла.
  • deps — дополняет декларацию БЭМ-сущностей необходимыми зависимостями.
  • depsOld — дополняет декларацию БЭМ-сущностей необходимыми зависимостями. Использует алгоритм, заимствованный из bem-tools.
  • depsByTechToBemdecl — формирует BEMDECL-файл на основе зависимостей по технологиям.
  • files — собирает список исходных файлов и директорий для сборки.
  • provideBemdecl — копирует BEMDECL-файл из указанной ноды (node) в текущую.
  • provideDeps — копирует DEPS-файл из указанной ноды (node) в текущую.
  • mergeBemdecl — объединяет BEMDECL-файлы в один файл.
  • mergeDeps — объединяет DEPS-файлы в один файл.
  • subtractDeps — формирует DEPS-файл, вычитая один DEPS-файл из другого.

Принципы работы технологий и их API описаны в документе API технологий.

Установка

$ npm install --save-dev enb-bem-techs

Требования: зависимость от пакета enb версии 0.13.0 или выше.

Документация

Лицензия

© 2014 YANDEX LLC. Код лицензирован Mozilla Public License 2.0.

enb-bem-techs's People

Contributors

blond avatar egavr avatar frux avatar godfreyd avatar swinx avatar tadatuta avatar tavriaforever avatar tormozz48 avatar vithar avatar

Watchers

 avatar

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.