
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.
beez-confbuilder
Advanced tools
You can create "beez" project configuration files depend on each environment. However the management for the file is too hard to duplicate settings.
"beez"で作成されたプロジェクト設定ファイルは、環境別に作成することが可能ですが、重複する設定が多く管理が大変です。
The "beez-confbuilder" is developed for the purpose of eliminating the duplicate settings by managing with templated the various configuration files.
この "beez-confbuilder" は、各種設定ファイルをテンプレート化して管理することで重複する設定をなくすことを目的に開発されました。
設定ファイルは、JSファイルのみをサポートしています。JSONファイルはサポートしていません。
The configuration files are only supported written by JS. JSON format is not supported.
$ npm install -g beez-confbuilder
$ npm test
$ tree tests/conf.template
tests/conf.template
├── build
│ ├── build.js
│ └── build.template
├── env
│ ├── env.js
│ └── env.template
└── key
├── key.js
└── key.template
3 directories, 6 files
(function () {
// base *.(json|js)
var template = {
appDir: "./s",
baseUrl: "./",
/** ... */
};
// base each environment from *.(json|js)
var environment = {
local: { /** ... */ },
prd: { /** ... */ },
};
return { template: template, environment: environment };
}())
modules プロパティはオブジェクト型で記述します。通常の記入方法と違う点に注意してください。 "beez-confbuilder"により生成されるファイルでは、自動で配列に変換されます。
(function () {
var template = {
modules: {
index: {
name: "index/index",
include: [],
exclude: []
},
/** .... */
}
};
})
underscore.template を使用しています。
Use underscore.template
(function () {
var config = <%= data %>; // use underscore.template
////////////////////
// use node.js
console.log("== The output of the configuration file");
console.log("\t:process.cwd=" + process.cwd());
return config;
}())
$ beez-confbuilder -h
Usage: beez-confbuilder [options]
Options:
-h, --help output usage information
-s --srcdir <srcdir> Source directory root path.
-p --pjdir <pjdir> Beez project directory path.
-e --env <env> Environment name. default) "local"
-i --indent <indent> Output json file indent. default) space 4
-l --loglevel <loglevel> Log level. default) INFO
DEBUG: 1
INFO: 2
WARN: 3
ERROR: 4
FATAL: 5
--encoding <encoding> Write file encoding. default) "utf8"
--no_mkdirp If destination directory is not exist, stop to create new one. # 出力先のディレクトリがない場合は処理を停止
The MIT License (MIT)
@see : LICENSE
FAQs
Build configuration files for beez project template.
The npm package beez-confbuilder receives a total of 4 weekly downloads. As such, beez-confbuilder popularity was classified as not popular.
We found that beez-confbuilder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.