Skip to content

Add i18n dependencies (into deps.js files) for Blocks which use internationalisation calls `BEM.I18N`

License

Notifications You must be signed in to change notification settings

bem-kit/i18n-deps.script.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i18n-deps.script.js

Add i18n dependencies for blocks which use BEM.I18N

Весьма специфичный для Яндекса скрипт для миграции системы сборки (а конкретно формата зависимостей Блоков *.deps.js).

Скрипт для проставления зависимостей от i18n для lego и сервисов.

Зависимость от ядра I18N здесь не проставляется, но необходима

Configure

Tune config for your project (setup levels source and platforms dirs regexp [e.g.: desktop.blocks, blocks-desktop]).

https://github.com/bem-kit/i18n-deps.script.js/blob/master/config.js

Usage

Run at project level (platforms root). If your repository contains a few projects then run the util at every project.

e.g. cd ~/fiji/images && ls && node path/to/i18n-deps.js:

blocks-desktop
blocks-touch-phone
...

run

node path/to/i18n-deps.js

run in verbose mode

node path/to/i18n-deps.js debug

print changes to stdout, do not modify deps-files

node path/to/i18n-deps.js dry-run

About

Add i18n dependencies (into deps.js files) for Blocks which use internationalisation calls `BEM.I18N`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published