
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
enb-bevis [](https://travis-ci.org/enb-make/enb-bevis) ==========

Предоставляет технологии для сборки проектов на базе BEViS.
Сборка обычного BEViS-проекта выглядит так:
.enb/make.js:
// ...
config.node('pages/index', function (nodeConfig) {
var browserSupport = [
'IE >= 9',
'Safari >= 5',
'Chrome >= 33',
'Opera >= 12.16',
'Firefox >= 28'
];
nodeConfig.addTechs([
// Зависимости
require('enb-bevis/techs/sources'),
[require('enb-bevis/techs/deps'), {sourceDeps: 'page'}], // начинаем сборку с блока page
require('enb-bevis/techs/files'),
// Локализация
[require('enb-y-i18n/techs/y-i18n-lang-js'), {lang: '{lang}'}],
// Сборка JS
require('enb-bt/techs/bt-client-module'),
[require('enb-bevis/techs/js'), {lang: '{lang}', target: '?.source.{lang}.js'}],
[require('enb-autopolyfiller/techs/autopolyfiller'), {
source: '?.source.{lang}.js',
target: '?.{lang}.js',
browsers: browserSupport
}],
// Сборка CSS
[require('enb-stylus/techs/css-stylus-with-autoprefixer'), {
browsers: browserSupport,
variables: {
ie: false
}
}],
[require('enb-stylus/techs/css-stylus-with-autoprefixer'), {
browsers: ['ie 9'],
target: '?.ie.css',
variables: {
ie: 9
}
}],
// Сборка HTML
require('enb-bt/techs/bt-server'),
[require('enb-bt/techs/html-from-btjson'), {lang: '{lang}'}]
]);
nodeConfig.mode('development', function (nodeConfig) {
nodeConfig.addTechs([
[require('enb/techs/file-copy'), {source: '?.css', target: '_?.css'}],
[require('enb/techs/file-copy'), {source: '?.ie.css', target: '_?.ie.css'}],
[require('enb/techs/file-copy'), {source: '?.{lang}.js', target: '_?.{lang}.js'}]
]);
});
nodeConfig.mode('production', function (nodeConfig) {
nodeConfig.addTechs([
[require('enb-borschik/techs/borschik'), {source: '?.css', target: '_?.css', freeze: true}],
[require('enb-borschik/techs/borschik'), {source: '?.ie.css', target: '_?.ie.css', freeze: true}],
[require('enb-borschik/techs/borschik'), {source: '?.{lang}.js', target: '_?.{lang}.js'}]
]);
});
nodeConfig.addTargets([
'_?.{lang}.js',
'_?.css',
'_?.ie.css',
'?.{lang}.html'
]);
});
// ...
package.json:
//...
"enb": {
"dependencies": ["islets"], // зависимость от islets
"sources": [
"blocks" // директории для блоков проекта
]
}
//...
Собирает информацию о директориях с исходным кодом проекта, предоставляет ?.sources.
Опции
?.sources.package.json.
По умолчанию включено.Пример
nodeConfig.addTech(require('enb-bevis/techs/sources'));
Раскрывает зависимости.
Опции
?.deps.yaml.?.sources.?.dest-deps.js.js-файлов. По умолчанию — ?.deps.yaml.Пример
Обычное использование:
nodeConfig.addTech(require('enb-bevis/techs/deps'));
Сборка специфического deps:
nodeConfig.addTech([require('enb-bevis/techs/deps'), {
sourceDepsFile: 'search.deps.yaml',
target: 'search.dest-deps.js'
}]);
Собирает список исходных файлов для сборки на основе deps и sources, предоставляет ?.files и ?.dirs.
Используется многими технологиями, которые объединяют множество файлов из различных исходных директорий в один.
Опции
?.dest-deps.js.?.sources.?.files.?.dirs.Пример
nodeConfig.addTech(require('enb-bevis/techs/files'));
Собирает {lang}.js-файл.
Опции
?.{lang}.js.?.bt-client.js.?.{lang}.js.Пример
Обычное использование:
nodeConfig.addTech(require('enb-bevis/techs/js'), {lang: '{lang}'});
Использование с автополифиллером:
nodeConfig.addTechs([
[require('enb-bevis/techs/js'), {target: '?.source.{lang}.js', lang: '{lang}'}],
[require('enb-autopolyfiller/techs/autopolyfiller'), {
source: '?.source.{lang}.js',
target: '?.{lang}.js',
browsers: ['IE >= 9', 'Safari >= 5', 'Chrome >= 33', 'Opera >= 12.16', 'Firefox >= 28']
}]
]);
Формирует deps.yaml на основе ?.btjson.js.
Опции
?.btjson.js.?.deps.yaml.Пример
nodeConfig.addTech(require('enb-bevis/techs/source-deps-from-btjson'));
Формирует deps.yaml на основе деклараций тестов.
Опции
?.sources.?.deps.yaml.Пример
nodeConfig.addTech(require('enb-bevis/techs/source-deps-test'));
Формирует test.js на основе деклараций тестов.
Опции
?.test.js.Пример
nodeConfig.addTech(require('enb-bevis/techs/js-test'));
FAQs
enb-bevis [](https://travis-ci.org/enb-make/enb-bevis) ==========
The npm package enb-bevis receives a total of 0 weekly downloads. As such, enb-bevis popularity was classified as not popular.
We found that enb-bevis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.