@atlashub/smartstack-cli 4.59.0 → 4.60.0

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/index.js CHANGED
@@ -117204,7 +117204,7 @@ ${projectName}/
117204
117204
  \u2502 \u2514\u2500\u2500 ${projectName}.Api/ # Web API controllers and configuration
117205
117205
  \u251C\u2500\u2500 web/
117206
117206
  \u2502 \u2514\u2500\u2500 ${projectName.toLowerCase()}-web/ # React frontend (Vite + TypeScript + Tailwind)
117207
- \u251C\u2500\u2500 docker-images/ # Dockerfiles (backend + frontend)
117207
+ \u251C\u2500\u2500 docker-images/ # Dockerfiles + docker-compose (backend + frontend)
117208
117208
  \u2514\u2500\u2500 tests/ # Unit and integration tests
117209
117209
  \`\`\`
117210
117210
 
@@ -117740,6 +117740,19 @@ async function createDockerFiles(config, state, dryRun) {
117740
117740
  logSafeWriteResult(dockerignoreRelPath, dockerignoreResult);
117741
117741
  recordFile(state, "docker", dockerignoreRelPath, dockerignoreResult.hash);
117742
117742
  }
117743
+ const dockerCompose = await loadTemplate("docker-compose.yml.template", projectName);
117744
+ const composeRelPath = "docker-images/docker-compose.yml";
117745
+ if (dryRun) {
117746
+ logger.info(`Would create ${composeRelPath}`);
117747
+ } else {
117748
+ const composeResult = await safeWriteFile(
117749
+ (0, import_path7.join)(projectDir, composeRelPath),
117750
+ dockerCompose,
117751
+ findKnownHash(state, "docker", composeRelPath)
117752
+ );
117753
+ logSafeWriteResult(composeRelPath, composeResult);
117754
+ recordFile(state, "docker", composeRelPath, composeResult.hash);
117755
+ }
117743
117756
  logger.success("Docker configuration created");
117744
117757
  }
117745
117758
  function checkGitIdentity(cwd) {
@@ -118185,6 +118198,7 @@ var initCommand = new Command("init").description("Initialize a new SmartStack p
118185
118198
  ` 3. Start dev server: ${source_default.cyan("npm run dev")}`,
118186
118199
  "",
118187
118200
  source_default.yellow("Docker:"),
118201
+ ` Build & run: ${source_default.cyan("docker compose -f docker-images/docker-compose.yml up --build")}`,
118188
118202
  ` Build backend: ${source_default.cyan(`docker build -t smartstack-${projectNameLower}-backend:latest -f docker-images/Dockerfile.backend .`)}`,
118189
118203
  ` Build frontend: ${source_default.cyan(`docker build -t smartstack-${projectNameLower}-frontend:latest -f docker-images/Dockerfile.frontend .`)}`,
118190
118204
  "",
@@ -125378,6 +125392,11 @@ async function syncDockerFiles(projectDir, baseNamespace, dryRun) {
125378
125392
  template: "dockerignore.template",
125379
125393
  dest: (0, import_path8.join)(projectDir, ".dockerignore"),
125380
125394
  label: ".dockerignore"
125395
+ },
125396
+ {
125397
+ template: "docker-compose.yml.template",
125398
+ dest: (0, import_path8.join)(projectDir, "docker-images", "docker-compose.yml"),
125399
+ label: "docker-images/docker-compose.yml"
125381
125400
  }
125382
125401
  ];
125383
125402
  for (const file of files) {