UNPKG

rdxgen

Version:

redux boilerplate generator for reducers and actions and many more via templates for @ngrx or redux based projects!

46 lines (44 loc) 1.02 kB
const path = require('path'); module.exports = { savedAnswersPath: `${process.cwd()}/rdxgen.json`, overrideTemplatesPath: `${process.cwd()}/rdxgen`, templatePaths: { ts: path.join(__dirname, `../templates/ts`), js: path.join(__dirname, `../templates/js`) }, defaultQuestions: [ { type: 'input', name: 'name', message: 'Name of the new reducer (Product Categories):', }, { type: 'input', name: 'path', message: 'Path of the store (src/stores):', }, { type: 'input', name: 'actions', message: 'Enter the space-separated action names (GET SET ...):', }, { type: 'input', name: 'OkSuffix', message: 'Success suffix:', }, { type: 'input', name: 'ErrSuffix', message: 'Error suffix:', }, ], prettierFallbackConf: { bracketSpacing: true, jsxBracketSameLine: true, printWidth: 80, singleQuote: true, trailingComma: 'es5', parser: 'babel', }, };