create-tosijs-platform-app 1.0.1 โ 1.0.4
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/create-tosijs-platform-app.js +18 -12
- package/package.json +1 -1
|
@@ -316,8 +316,9 @@ async function main() {
|
|
|
316
316
|
|
|
317
317
|
console.log('๐งน Cleaning up...')
|
|
318
318
|
fs.rmSync(path.join(projectPath, '.git'), { recursive: true })
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
// Remove create-script directory (utility scripts are in scripts/)
|
|
320
|
+
if (fs.existsSync(path.join(projectPath, 'create-script'))) {
|
|
321
|
+
fs.rmSync(path.join(projectPath, 'create-script'), { recursive: true })
|
|
321
322
|
}
|
|
322
323
|
|
|
323
324
|
// Configure initial_state: update owner role with admin email
|
|
@@ -632,7 +633,12 @@ setup()
|
|
|
632
633
|
}
|
|
633
634
|
console.log('\nโ'.repeat(60))
|
|
634
635
|
|
|
635
|
-
console.log('\n
|
|
636
|
+
console.log('\n๐ To deploy your site:\n')
|
|
637
|
+
console.log(` cd ${projectName}`)
|
|
638
|
+
console.log(` bun initial-deploy`)
|
|
639
|
+
console.log('\nโ'.repeat(60))
|
|
640
|
+
|
|
641
|
+
console.log('\n๐ Detailed Steps:\n')
|
|
636
642
|
|
|
637
643
|
if (hasBlazePlan === false) {
|
|
638
644
|
console.log('โ ๏ธ FIRST: Upgrade to Blaze Plan (REQUIRED)')
|
|
@@ -671,21 +677,21 @@ setup()
|
|
|
671
677
|
console.log(` โข โ ๏ธ UPGRADE TO BLAZE PLAN (required for Cloud Functions)`)
|
|
672
678
|
}
|
|
673
679
|
|
|
674
|
-
console.log(
|
|
680
|
+
console.log(
|
|
681
|
+
`\n3. Run initial deployment (builds, deploys, and seeds database):`
|
|
682
|
+
)
|
|
675
683
|
console.log(` cd ${projectName}`)
|
|
676
|
-
console.log(` bun deploy
|
|
684
|
+
console.log(` bun initial-deploy`)
|
|
677
685
|
|
|
678
|
-
console.log(`\n4.
|
|
679
|
-
console.log(`
|
|
686
|
+
console.log(`\n4. Run setup to grant yourself owner access:`)
|
|
687
|
+
console.log(` node setup.js`)
|
|
680
688
|
|
|
681
689
|
console.log(`\n5. Visit your site and sign in with ${adminEmail}`)
|
|
682
690
|
console.log(` https://${firebaseProjectId}.web.app`)
|
|
683
691
|
|
|
684
|
-
console.log(`\n6.
|
|
685
|
-
console.log(`
|
|
686
|
-
|
|
687
|
-
console.log(`\n7. Start local development:`)
|
|
688
|
-
console.log(` bun start`)
|
|
692
|
+
console.log(`\n6. Start local development:`)
|
|
693
|
+
console.log(` bun start # Uses production Firebase`)
|
|
694
|
+
console.log(` bun start-emulated # Uses local emulators`)
|
|
689
695
|
console.log(` Visit https://localhost:8020`)
|
|
690
696
|
|
|
691
697
|
console.log('\nโ'.repeat(60))
|