deploy-stack 0.3.0 → 0.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-stack",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Provision production-ready AWS infrastructure and CI/CD pipelines in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -232,10 +232,16 @@ export async function mainStack() {
232
232
  // 9. Provide the Outro, Framework Warnings and Next Steps
233
233
  const frameworkWarnings = getFrameworkWarning(finalFramework);
234
234
 
235
+ const isGitInitialized = fsSync.existsSync(path.join(targetDir, '.git'));
236
+
235
237
  const cdStep = projectName === '.' ? '' : `1. cd ${projectName}\n `;
236
238
  const deployStepNum = projectName === '.' ? '1' : '2';
237
239
  const gitStepNum = projectName === '.' ? '2' : '3';
238
240
 
241
+ const gitInstructions = isGitInitialized
242
+ ? `git add .\n git commit -m "chore: add AWS infrastructure and CI/CD"\n git push`
243
+ : `git init\n git add .\n git commit -m "chore: add AWS infrastructure and CI/CD"\n git branch -M main\n git remote add origin https://github.com/your-username/your-repo.git\n git push -u origin main`;
244
+
239
245
  outro(`
240
246
  ${color.green('✅ Project provisioned successfully!')}
241
247
 
@@ -244,8 +250,10 @@ export async function mainStack() {
244
250
  Next steps:
245
251
  ${cdStep}${deployStepNum}. Deploy infrastructure:
246
252
  cd terraform && terraform init && terraform apply
247
- ${gitStepNum}. Push to GitHub:
248
- git init && git add . && git commit -m "Initial commit"
253
+
254
+ ${gitStepNum}. Push to GitHub to trigger CI/CD:
255
+ cd ..
256
+ ${gitInstructions}
249
257
 
250
258
  ${color.cyan('Once deployed, Terraform will output your new https://*.cloudfront.net URL.')}
251
259