create-shopify-firebase-app 1.2.1 → 2.0.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.
Files changed (45) hide show
  1. package/README.md +9 -13
  2. package/lib/index.js +676 -370
  3. package/package.json +2 -2
  4. package/templates/js/functions/package.json +24 -0
  5. package/templates/js/functions/src/admin-api.js +292 -0
  6. package/templates/js/functions/src/auth.js +147 -0
  7. package/templates/js/functions/src/config.js +14 -0
  8. package/templates/js/functions/src/firebase.js +12 -0
  9. package/templates/js/functions/src/index.js +93 -0
  10. package/templates/js/functions/src/proxy.js +60 -0
  11. package/templates/js/functions/src/verify-token.js +39 -0
  12. package/templates/js/functions/src/webhooks.js +111 -0
  13. package/templates/{firebase.json → shared/firebase.json} +1 -0
  14. package/templates/shopify.app.toml +1 -1
  15. package/templates/ts/functions/src/admin-api.ts +290 -0
  16. package/templates/web/css/app.css +1287 -47
  17. package/templates/web/index.html +84 -49
  18. package/templates/web/js/app.js +177 -0
  19. package/templates/web/js/pages/home.js +90 -0
  20. package/templates/web/js/pages/polaris-demo.js +190 -0
  21. package/templates/web/js/pages/products.js +319 -0
  22. package/templates/web/js/pages/settings.js +241 -0
  23. package/templates/web/polaris.html +1149 -0
  24. package/templates/web/products.html +86 -0
  25. package/templates/web/settings.html +40 -0
  26. package/templates/functions/src/admin-api.ts +0 -125
  27. package/templates/web/js/bridge.js +0 -98
  28. /package/templates/{env.example → shared/env.example} +0 -0
  29. /package/templates/{extensions → shared/extensions}/theme-block/assets/app-block.css +0 -0
  30. /package/templates/{extensions → shared/extensions}/theme-block/assets/app-block.js +0 -0
  31. /package/templates/{extensions → shared/extensions}/theme-block/blocks/app-block.liquid +0 -0
  32. /package/templates/{extensions → shared/extensions}/theme-block/locales/en.default.json +0 -0
  33. /package/templates/{extensions → shared/extensions}/theme-block/shopify.extension.toml +0 -0
  34. /package/templates/{firestore.indexes.json → shared/firestore.indexes.json} +0 -0
  35. /package/templates/{firestore.rules → shared/firestore.rules} +0 -0
  36. /package/templates/{gitignore → shared/gitignore} +0 -0
  37. /package/templates/{functions → ts/functions}/package.json +0 -0
  38. /package/templates/{functions → ts/functions}/src/auth.ts +0 -0
  39. /package/templates/{functions → ts/functions}/src/config.ts +0 -0
  40. /package/templates/{functions → ts/functions}/src/firebase.ts +0 -0
  41. /package/templates/{functions → ts/functions}/src/index.ts +0 -0
  42. /package/templates/{functions → ts/functions}/src/proxy.ts +0 -0
  43. /package/templates/{functions → ts/functions}/src/verify-token.ts +0 -0
  44. /package/templates/{functions → ts/functions}/src/webhooks.ts +0 -0
  45. /package/templates/{functions → ts/functions}/tsconfig.json +0 -0
package/README.md CHANGED
@@ -86,19 +86,15 @@ The interactive CLI guides you through everything — creating your Shopify app,
86
86
  === Shopify Setup ===
87
87
 
88
88
  ? How would you like to connect your Shopify app?
89
- ❯ Create a new app we'll guide you through it
90
- I already have an app enter my credentials
91
-
92
- ℹ Opening Shopify Partner Dashboard...
93
-
94
- Follow these steps:
95
-
96
- 1. Sign in to your Partner account
97
- 2. Go to Apps → Create app → Create app manually
98
- 3. Enter app name: My App
99
- 4. Copy the Client ID and Client Secret
100
-
101
- ? Paste your Client ID (API Key): abc123...
89
+ ❯ Create a new app via Shopify CLI
90
+ Link an existing app via Shopify CLI
91
+ Enter credentials manually (Client ID + Secret)
92
+
93
+ ℹ Logging into Shopify CLI...
94
+ Logged into Shopify
95
+ ℹ Creating a new Shopify app...
96
+ (Shopify CLI handles app creation interactively)
97
+ Client ID: abc123...
102
98
  ? Paste your Client Secret: ********
103
99
  ? What API access does your app need?
104
100
  ❯ Read products read_products