UNPKG

@iobroker/create-adapter

Version:

Command line utility to create customized ioBroker adapters

23 lines 789 B
"use strict"; const templateFunction = answers => { const useReleaseScript = answers.releaseScript === "yes"; if (!useReleaseScript) { return; } const useTypeScript = answers.language === "TypeScript"; const useAdminReact = answers.adminUi === "react"; const useTabReact = answers.tabReact === "yes"; const useReact = useAdminReact || useTabReact; const template = { plugins: ["iobroker", "license", "manual-review"], }; if (useTypeScript || useReact) { template.exec = { before_commit: "npm run build", }; } return JSON.stringify(template, undefined, "\t"); }; templateFunction.customPath = ".releaseconfig.json"; module.exports = templateFunction; //# sourceMappingURL=_releaseconfig.json.js.map