UNPKG

@practica/create-node-app

Version:

Create Node.js app that is packed with best practices AND strive for simplicity

20 lines (19 loc) 642 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.factorDefaultOptions = void 0; const factorDefaultOptions = (overrides) => { const defaults = { appName: "default-app-name", webFramework: "fastify", DBType: "pg", ORM: "sequelize", mainMicroserviceName: "microservice-example-1", emitBestPracticesHints: true, targetDirectory: process.cwd(), installDependencies: false, overrideIfExists: true, }; const result = Object.assign(defaults, overrides); return result; }; exports.factorDefaultOptions = factorDefaultOptions;