@iobroker/create-adapter
Version:
Command line utility to create customized ioBroker adapters
35 lines (31 loc) • 642 B
JavaScript
;
const templateFunction = answers => {
const useNyc = answers.tools && answers.tools.indexOf("code coverage") > -1;
const useTypeScript = answers.language === "TypeScript";
const template = `
.git
.idea
*.code-workspace
node_modules
nbproject
${useTypeScript ? (`
# Sourcemaps
maps/
`) : ""}
# npm package files
iobroker.*.tgz
Thumbs.db
${useNyc ? `
# NYC coverage files
coverage
.nyc*
` : ""}
# i18n intermediate files
admin/i18n/flat.txt
admin/i18n/*/flat.txt
`;
return template.trim();
};
templateFunction.customPath = ".gitignore";
module.exports = templateFunction;
//# sourceMappingURL=_gitignore.js.map