
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Сборщик данных для bem-site-engine
В качестве хранилища данных используется база данных LevelDB
Соответствующий nodejs модуль для работы с базой данных.
Структура работы основана на создании сценариев и последовательном выполнении всех этапов в данных сценариях.
Доступные сценарии описаны модулями которые находятся в директории targets
//TODO написать документацию по API
Сценарий представляет собой класс который должен быть унаследован от класса TargetBase
var TargetBase = require('./base').TargetBase,
TargetFoo = function (options) {
this.init(options);
};
TargetFoo.prototype = Object.create(TargetBase.prototype);
TargetFoo.prototype.init = function (options) {
[
// Set list of tasks here
].forEach(function (task) {
this.addTask(task);
}, this);
TargetBase.prototype.init.call(this, options);
};
TargetFoo.prototype.getName = function () {
return 'Your target name';
};
exports.TargetFoo = TargetFoo;
При создании сценария должны быть переопределен метод init
в котором нужно указать массив тех
шагов которые должны быть выполнены для данного сценария в той последовательности в какой они написаны.
Также должен быть переопределен метод getName
который должен возвращать название сценария.
Это необходимо для построения логов.
Для запуска тестов с дополнительной проверкой синтакса:
npm test
Для запуска только mocha тестов:
npm run mocha
Для запуска тестов с покрытием:
npm run istanbul
Ответственный за разработку: @tormozz48
FAQs
bse-admin =========
The npm package bse-admin receives a total of 3 weekly downloads. As such, bse-admin popularity was classified as not popular.
We found that bse-admin 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.