@iobroker/create-adapter
Version:
Command line utility to create customized ioBroker adapters
16 lines • 480 B
JavaScript
;
const templateFunction = answers => {
const usePrettier = answers.tools && answers.tools.indexOf("Prettier") > -1;
if (!usePrettier)
return;
const useTypeScript = answers.language === "TypeScript";
const template = `
package.json
package-lock.json
${useTypeScript ? "build/" : ""}
`;
return template.trim();
};
templateFunction.customPath = ".prettierignore";
module.exports = templateFunction;
//# sourceMappingURL=_prettierignore.js.map