Skip to content

enb/enb-bem-techs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9973acf · Feb 25, 2019
Nov 30, 2014
Feb 25, 2019
Jul 15, 2015
Nov 29, 2016
Sep 16, 2018
Jan 25, 2016
Sep 30, 2014
Aug 22, 2014
Jan 22, 2016
Nov 30, 2014
Jun 5, 2015
Nov 30, 2014
May 5, 2015
Dec 3, 2016
Dec 3, 2016
Dec 3, 2016
Jul 31, 2015
Aug 18, 2015
Feb 13, 2018
Feb 13, 2018
Apr 5, 2015
Oct 28, 2014
Dec 3, 2016

Repository files navigation

enb-bem-techs

NPM version Build Status Build status Coverage Status Dependency Status

enb-bem-techs is the main technology package for working with projects created with the BEM methodology.

The package provides a set of basic ENB technologies. Their main purpose is to form an intermediate result for technologies that don't know anything about BEM methodology and the project structure.

Most technologies from other packages in ENB expect to receive a list of files or directories, as well as information about the building order.

Technologies in the enb-bem-techs package:

  • levels - Collects information about BEM entities on the redefinition levels.
  • levelsToBemdecl — Generates a BEMDECL file from BEM entities on the specified levels.
  • bemjsonToBemdecl — Generates a BEMDECL file from the BEMJSON file.
  • deps — Adds necessary dependencies to the declaration of BEM entities.
  • depsOld — Adds necessary dependencies to the declaration of BEM entities. Uses the algorithm from bem-tools.
  • depsByTechToBemdecl — Generates a BEMDECL file from dependencies by technology.
  • files — Composes a list of source files and directories for the build.
  • provideBemdecl — Copies the BEMDECL file from the specified node to the current one.
  • provideDeps — Copies the DEPS file from the specified node to the current one.
  • mergeBemdecl — Merges all BEMDECL files into one file.
  • mergeDeps — Merges all DEPS files into one file.
  • subtractDeps — Generates a DEPS file by subtracting one DEPS file from another.

The principles of the technologies and their APIs are described in the Technologies API document.

Installation

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

Requirements: dependency from the enb package version 0.13.0 or higher.

Documentation

License

© 2014 YANDEX LLC. The code is released under the Mozilla Public License 2.0.