@flutry/cli 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/new.js +4 -4
- package/package.json +1 -1
package/dist/commands/new.js
CHANGED
|
@@ -85,12 +85,12 @@ function buildEnv(answers, example) {
|
|
|
85
85
|
'PREFIX_API=',
|
|
86
86
|
'# Database',
|
|
87
87
|
`DB=${answers.database ? 'true' : 'false'}`,
|
|
88
|
+
`DB_HOST=${example ? '' : answers.dbHost}`,
|
|
89
|
+
`DB_PORT=${example ? '' : answers.dbPort}`,
|
|
88
90
|
`DB_NAME=${example ? '' : answers.dbName}`,
|
|
89
91
|
`DB_USER=${example ? '' : answers.dbUser}`,
|
|
90
92
|
`DB_PASS=${example ? '' : answers.dbPass}`,
|
|
91
|
-
`
|
|
92
|
-
`DB_PORT=${example ? '' : answers.dbPort}`,
|
|
93
|
-
`DB_TYPE=${answers.dbType}`,
|
|
93
|
+
`DB_DIALECT=${answers.dbType}`,
|
|
94
94
|
'# Secrets',
|
|
95
95
|
`SECRET_KEY=${secret('SECRET_KEY')}`,
|
|
96
96
|
`SECRET_SALT=${secret('SECRET_SALT')}`,
|
|
@@ -108,7 +108,7 @@ async function createProject(answers) {
|
|
|
108
108
|
if (await exists(targetDir))
|
|
109
109
|
throw new Error(`Folder "${answers.folderName}" already exists.`);
|
|
110
110
|
spinner.text = chalk_1.default.blue('Downloading project template');
|
|
111
|
-
await (0, degit_1.default)('https://github.com/Flutry-HQ/
|
|
111
|
+
await (0, degit_1.default)('https://github.com/Flutry-HQ/flutry.git', { cache: false, force: true }).clone(targetDir);
|
|
112
112
|
spinner.text = chalk_1.default.magenta('Applying project settings');
|
|
113
113
|
const packageJsonPath = path_1.default.join(targetDir, 'package.json');
|
|
114
114
|
const packageJson = JSON.parse(await fs_1.promises.readFile(packageJsonPath, 'utf8'));
|