create-lore 0.12.0 → 0.12.2
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/SECURITY.md +1 -1
- package/bin/create-lore.js +7 -0
- package/package.json +1 -1
package/SECURITY.md
CHANGED
package/bin/create-lore.js
CHANGED
|
@@ -161,6 +161,13 @@ fs.writeFileSync(
|
|
|
161
161
|
fs.readFileSync(path.join(tplDir, 'memory-local.md'), 'utf8'),
|
|
162
162
|
);
|
|
163
163
|
|
|
164
|
+
// -- Write .env for docker compose project naming --
|
|
165
|
+
// docker compose reads .env from the project directory (where the command runs),
|
|
166
|
+
// not from the directory containing the compose file.
|
|
167
|
+
const envContent = fs.readFileSync(path.join(tplDir, 'env.template'), 'utf8')
|
|
168
|
+
.replace('{{name}}', projectName);
|
|
169
|
+
fs.writeFileSync(path.join(targetDir, '.env'), envContent);
|
|
170
|
+
|
|
164
171
|
// -- Initialize git --
|
|
165
172
|
execSync('git init -b main', { cwd: targetDir, stdio: 'pipe' });
|
|
166
173
|
|