(opts = {})
| 83 | }; |
| 84 | |
| 85 | const createI18n = (opts = {}) => { |
| 86 | const enPath = 'src/locale/en.js'; |
| 87 | const tmpEn = getTemplateFileContent(enPath); |
| 88 | const dstEn = resolveRoot(enPath); |
| 89 | ensureDir(dstEn); |
| 90 | fs.writeFileSync(dstEn, template(tmpEn)(opts)); |
| 91 | }; |
| 92 | |
| 93 | const createPackage = (opts = {}) => { |
| 94 | const filepath = 'package.json'; |
no test coverage detected