cloudcommerce 2.1.0 → 2.2.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/CHANGELOG.md +15 -0
- package/README.md +3 -7
- package/action.yml +37 -13
- package/ecomplus-stores/barra-doce/.github/workflows/build-and-deploy.yml +3 -2
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -4
- package/ecomplus-stores/tia-sonia/.github/workflows/build-and-deploy.yml +4 -2
- package/ecomplus-stores/tia-sonia/package.json +0 -2
- package/package.json +2 -2
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/ci/bunny-config-base.sh +68 -12
- package/packages/cli/ci/bunny-prepare-ab.sh +35 -26
- package/packages/cli/ci/bunny-remove-ab.sh +54 -0
- package/packages/cli/ci/bunny-setup.sh +103 -0
- package/packages/cli/config/firebase.json +0 -13
- package/packages/cli/lib/cli.js +4 -12
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/cli.ts +8 -12
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/lib/cron-ssr-save-views.js +76 -4
- package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/ssr/src/lib/cron-ssr-save-views.ts +78 -4
- package/packages/storefront/client.d.ts +2 -0
- package/packages/storefront/dist/client/_astro/{AccountPage.9BlGHXT3.js → AccountPage.89hLh9p2.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.55UgTcV0.js → CartSidebar.G25ZUnKP.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductDetails.ENLKdSz_.js → ProductDetails.ntFWLjla.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.lCBJky3e.js → ProductShelf.PPitdYxI.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.CNf5JDrU.js → ProductShelf.xSxmHkTe.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchModal.4osqtafp.js → SearchModal.R55jFaBZ.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchShowcase.hg6TWrz3.js → SearchShowcase.I1PPFu_n.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ShopHeader.xLMeJpqV.js → ShopHeader.OLf0l4Ot.js} +2 -2
- package/packages/storefront/dist/client/_astro/{_slug_.r344YGqG.css → _slug_.Hc-dqhcW.css} +1 -1
- package/packages/storefront/dist/client/_astro/customer-session.AcETMuhI.js +7 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.cPMfoOsn.js → firebase-app.VduCDgof.js} +1 -1
- package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
- package/packages/storefront/dist/client/_astro/{hoisted.J15ErMtK.js → hoisted.PxLuJZKI.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.KYhwGfsv.js → hoisted.WBjTfX6e.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.HGTzAuTI.js → hoisted.Wi6YpdWJ.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index-dd468b12.D5s8VdAL.js → index-dd468b12.fl8bpn8l.js} +3 -3
- package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
- package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
- package/packages/storefront/dist/client/_astro/{shopping-cart.ZdSCrjS6.js → shopping-cart.dJsZkyuD.js} +1 -1
- package/packages/storefront/dist/client/_astro/use-analytics.uqK_2k_k.js +1 -0
- package/packages/storefront/dist/client/_astro/{use-product-card.-9TsgDDW.js → use-product-card.WRVLjenR.js} +1 -1
- package/packages/storefront/dist/client/~fallback.html +98 -0
- package/packages/storefront/dist/client/~index.html +128 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_7UWmGIF6.mjs → CartSidebar_yYIzwp_R.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{SearchModal_MNdcYMws.mjs → SearchModal_GvRUZ6ce.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_.._h5R83hoK.mjs → _.._Lq3r7hpv.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_page__lWVlZyRe.mjs → _page__LqbeNfr1.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_jmelxnlw.mjs → account_4n4rpirV.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_xNulQtBO.mjs → assets-service_yXRChsFH.mjs} +11 -66
- package/packages/storefront/dist/server/chunks/{astro_tggR3S_9.mjs → astro_F4pl3toV.mjs} +1 -7
- package/packages/storefront/dist/server/chunks/{index_e3ytAL8v.mjs → index_SwXtE1IM.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_kUJIRL0c.mjs → node_Nzz44v5l.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__wihn0dYD.mjs → __z8Igc_-f.mjs} +102 -298
- package/packages/storefront/dist/server/chunks/pages/{_page__Sb1eYhpz.mjs → _page__-V1Q-Ymk.mjs} +3 -17
- package/packages/storefront/dist/server/chunks/pages/account_frSUn7gD.mjs +22 -0
- package/packages/storefront/dist/server/chunks/pages/{index_mQXYNYRg.mjs → index_QqJiJpFy.mjs} +4 -15
- package/packages/storefront/dist/server/chunks/pages/node_FoDIj_f7.mjs +257 -0
- package/packages/storefront/dist/server/chunks/pages/~fallback_t0lNhRm9.mjs +33 -0
- package/packages/storefront/dist/server/chunks/~fallback_EWqi0UyU.mjs +6 -0
- package/packages/storefront/dist/server/entry.mjs +8 -8
- package/packages/storefront/dist/server/images.dist.csv +30 -0
- package/packages/storefront/dist/server/images.src.csv +11 -0
- package/packages/storefront/dist/server/manifest_ZHJUD8_m.mjs +196 -0
- package/packages/storefront/dist/server/renderers.mjs +1 -1
- package/packages/storefront/dist/server/static-builds.csv +71 -0
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +1 -0
- package/packages/storefront/src/lib/state/use-analytics.ts +24 -6
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/ecomplus-stores/barra-doce/LICENSE.md +0 -230
- package/ecomplus-stores/tia-sonia/LICENSE.md +0 -230
- package/packages/storefront/dist/client/_astro/customer-session.hXdZh5Ii.js +0 -7
- package/packages/storefront/dist/client/_astro/use-analytics.tCrQbW8O.js +0 -1
- package/packages/storefront/dist/server/chunks/pages/account_-mULVQUB.mjs +0 -32
- package/packages/storefront/dist/server/chunks/pages/node_-qe5LuQh.mjs +0 -112
- package/packages/storefront/dist/server/chunks/pages/~fallback_ad_xyGHU.mjs +0 -58
- package/packages/storefront/dist/server/chunks/~fallback_EZqiEAFE.mjs +0 -6
- package/packages/storefront/dist/server/manifest_RrmXPEuL.mjs +0 -196
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.2.0](https://github.com/ecomplus/cloud-commerce/compare/v2.1.0...v2.2.0) (2024-01-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **cli:** New `ci/bunny-remove-ab.sh` script to clear A/B edge rules on experiment end ([d5c7fc9](https://github.com/ecomplus/cloud-commerce/commit/d5c7fc9d9b34a7e1dc4231c4eeb7b4d5e8adcb37))
|
|
11
|
+
* **cli:** New `ci/bunny-setup.sh` script to setup bunny.net CDN for ISR with perma-cache ([c4bfc14](https://github.com/ecomplus/cloud-commerce/commit/c4bfc14ba9af404bb66e39e585426ea1c1b2542f))
|
|
12
|
+
* **ssr:** Supporting ISR with bunny.net perma-cache ([0bfbf45](https://github.com/ecomplus/cloud-commerce/commit/0bfbf45e4f84ce23920910de02f99f22ce244cd1))
|
|
13
|
+
* **storefront:** Integrating branch based A/B tests with GA4 ([69def97](https://github.com/ecomplus/cloud-commerce/commit/69def9782516afbe77d42131a3def54c6a875031))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **cli:** Normalizing ci scripts with first arg project ID and second domain ([3c65466](https://github.com/ecomplus/cloud-commerce/commit/3c6546633edfcaedb415dee8acd1cbc5decd603f))
|
|
19
|
+
|
|
5
20
|
## [2.1.0](https://github.com/ecomplus/cloud-commerce/compare/v2.0.9...v2.1.0) (2024-01-26)
|
|
6
21
|
|
|
7
22
|
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# e-com.plus Open Cloud Commerce
|
|
2
2
|
|
|
3
|
-
Open
|
|
3
|
+
Open source eCommerce platform to use on top of headless commerce APIs, it includes:
|
|
4
4
|
- High performant and fully customizable [Astro](https://astro.build/) + [Vue](https://vuejs.org/) storefront;
|
|
5
5
|
- Storefront CMS and page builder;
|
|
6
6
|
- Analytics and A/B testing;
|
|
7
7
|
- Integrations for payments, shipping, ERPs, CRMs and others.
|
|
8
8
|
|
|
9
|
-
Easy deployment on [Firebase](https://firebase.google.com/), plug & play with **[
|
|
9
|
+
Easy deployment on [Firebase](https://firebase.google.com/), plug & play with **[e-com.plus APIs](https://developers.e-com.plus/)**.
|
|
10
10
|
|
|
11
11
|
## Concepts
|
|
12
12
|
|
|
@@ -19,7 +19,3 @@ Easy deployment on [Firebase](https://firebase.google.com/), plug & play with **
|
|
|
19
19
|
7. Easy third-party integrations.
|
|
20
20
|
|
|
21
21
|
> WIP 🚧
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
|
|
25
|
-
[Fair-code](http://faircode.io) distributed under [**Apache 2.0 with Commons Clause**](https://github.com/ecomplus/cloud-commerce/blob/main/LICENSE.md) license.
|
package/action.yml
CHANGED
|
@@ -155,7 +155,7 @@ runs:
|
|
|
155
155
|
~/.npm-global/bin
|
|
156
156
|
key: ${{ runner.os }}-npm-g-firebase-tools-13.0.3
|
|
157
157
|
|
|
158
|
-
- if:
|
|
158
|
+
- if: github.event_name == 'push' && steps.npm-g-cache.outputs.cache-hit != 'true'
|
|
159
159
|
shell: bash
|
|
160
160
|
run: npm i --location=global firebase-tools@13.0.3
|
|
161
161
|
|
|
@@ -335,22 +335,25 @@ runs:
|
|
|
335
335
|
fi
|
|
336
336
|
fi
|
|
337
337
|
|
|
338
|
-
- if: github.event_name == 'push' && contains(github.event.head_commit.message, '[
|
|
339
|
-
name:
|
|
338
|
+
- if: github.event_name == 'push' && contains(github.event.head_commit.message, '[run:')
|
|
339
|
+
name: Run script from `@cloudcommerce/cli/ci/`
|
|
340
340
|
shell: bash
|
|
341
341
|
env:
|
|
342
|
+
COMMIT_MSG: ${{ github.event.head_commit.message }}
|
|
342
343
|
ECOM_STORE_ID: ${{ env.ecom_store_id }}
|
|
343
344
|
GIT_BRANCH: ${{ env.git_branch }}
|
|
345
|
+
FIREBASE_SERVICE_ACCOUNT: ${{ inputs.firebase-service-account }}
|
|
344
346
|
BUNNYNET_API_KEY: ${{ inputs.bunnynet-api-key }}
|
|
345
347
|
run: |
|
|
346
|
-
if [
|
|
348
|
+
if [ -n "$BUNNYNET_API_KEY" ]; then
|
|
349
|
+
script_name="${COMMIT_MSG#*\[run:}"
|
|
350
|
+
script_name="${script_name%%\]*}"
|
|
351
|
+
project_id=$(echo "$FIREBASE_SERVICE_ACCOUNT" | jq -r .project_id 2>/dev/null)
|
|
347
352
|
domain=$(cat functions/ssr/content/settings.json | jq -r '.domain')
|
|
348
|
-
|
|
349
|
-
bash $GITHUB_ACTION_PATH/packages/cli/ci/bunny-config-base.sh $domain
|
|
350
|
-
fi
|
|
353
|
+
bash $GITHUB_ACTION_PATH/packages/cli/ci/$script_name.sh $project_id $domain
|
|
351
354
|
fi
|
|
352
355
|
|
|
353
|
-
- if: github.event_name == 'pull_request'
|
|
356
|
+
- if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
|
354
357
|
name: Build storefront static
|
|
355
358
|
shell: bash
|
|
356
359
|
env:
|
|
@@ -364,7 +367,9 @@ runs:
|
|
|
364
367
|
fi
|
|
365
368
|
npm --prefix "functions/ssr/" run build:static && npx cloudcommerce prepare
|
|
366
369
|
|
|
367
|
-
- if:
|
|
370
|
+
- if: |
|
|
371
|
+
github.event_name == 'pull_request' && github.event.action != 'closed'
|
|
372
|
+
&& env.git_branch != 'main'
|
|
368
373
|
name: Deploy Firebase Hosting PR preview
|
|
369
374
|
id: deploy-preview
|
|
370
375
|
uses: FirebaseExtended/action-hosting-deploy@v0
|
|
@@ -374,7 +379,9 @@ runs:
|
|
|
374
379
|
channelId: ${{ (startsWith(env.git_branch, 'main-') && env.git_branch) || null }}
|
|
375
380
|
expires: ${{ (startsWith(env.git_branch, 'main-') && '30d') || null }}
|
|
376
381
|
|
|
377
|
-
- if:
|
|
382
|
+
- if: |
|
|
383
|
+
github.event_name == 'pull_request' && github.event.action != 'closed'
|
|
384
|
+
&& startsWith(env.git_branch, 'main-')
|
|
378
385
|
name: Prepare bunny.net CDN for A/B testing
|
|
379
386
|
shell: bash
|
|
380
387
|
env:
|
|
@@ -383,9 +390,26 @@ runs:
|
|
|
383
390
|
BUNNYNET_API_KEY: ${{ inputs.bunnynet-api-key }}
|
|
384
391
|
CHANNEL_URL: ${{ steps.deploy-preview.outputs.details_url }}
|
|
385
392
|
run: |
|
|
386
|
-
if [
|
|
393
|
+
if [ -n "$BUNNYNET_API_KEY" ]; then
|
|
394
|
+
domain=$(cat functions/ssr/content/settings.json | jq -r '.domain')
|
|
395
|
+
if [ -n "$domain" ]; then
|
|
396
|
+
bash $GITHUB_ACTION_PATH/packages/cli/ci/bunny-prepare-ab.sh 1 $domain $CHANNEL_URL
|
|
397
|
+
fi
|
|
398
|
+
fi
|
|
399
|
+
|
|
400
|
+
- if: |
|
|
401
|
+
github.event_name == 'pull_request' && github.event.action == 'closed'
|
|
402
|
+
&& startsWith(env.git_branch, 'main-')
|
|
403
|
+
name: Clear A/B testing config on bunny.net CDN
|
|
404
|
+
shell: bash
|
|
405
|
+
env:
|
|
406
|
+
ECOM_STORE_ID: ${{ env.ecom_store_id }}
|
|
407
|
+
GIT_BRANCH: ${{ env.git_branch }}
|
|
408
|
+
BUNNYNET_API_KEY: ${{ inputs.bunnynet-api-key }}
|
|
409
|
+
run: |
|
|
410
|
+
if [ -n "$BUNNYNET_API_KEY" ]; then
|
|
387
411
|
domain=$(cat functions/ssr/content/settings.json | jq -r '.domain')
|
|
388
|
-
if [
|
|
389
|
-
bash $GITHUB_ACTION_PATH/packages/cli/ci/bunny-
|
|
412
|
+
if [ -n "$domain" ]; then
|
|
413
|
+
bash $GITHUB_ACTION_PATH/packages/cli/ci/bunny-remove-ab.sh 1 $domain
|
|
390
414
|
fi
|
|
391
415
|
fi
|
|
@@ -12,6 +12,7 @@ on:
|
|
|
12
12
|
- '.github/build-and-deploy'
|
|
13
13
|
- '.github/workflows/build-and-deploy.yml'
|
|
14
14
|
pull_request:
|
|
15
|
+
types: [opened, synchronize, reopened, closed]
|
|
15
16
|
paths:
|
|
16
17
|
- 'functions/ssr/**'
|
|
17
18
|
- '.firebaserc'
|
|
@@ -22,8 +23,8 @@ jobs:
|
|
|
22
23
|
name: Cloud Commerce build and deploy
|
|
23
24
|
runs-on: ubuntu-latest
|
|
24
25
|
if: |
|
|
25
|
-
github.event.head_commit.message != 'Initial commit'
|
|
26
|
-
!contains(github.event.head_commit.message, '[skip ci]')
|
|
26
|
+
github.event.head_commit.message != 'Initial commit'
|
|
27
|
+
&& !contains(github.event.head_commit.message, '[skip ci]')
|
|
27
28
|
steps:
|
|
28
29
|
- uses: actions/checkout@v4
|
|
29
30
|
with:
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.0
|
|
19
|
-
"@cloudcommerce/firebase": "^2.0
|
|
20
|
-
"@cloudcommerce/passport": "^2.0
|
|
18
|
+
"@cloudcommerce/feeds": "^2.1.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.1.0",
|
|
20
|
+
"@cloudcommerce/passport": "^2.1.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@cloudcommerce/api": "^2.0
|
|
22
|
-
"@cloudcommerce/firebase": "^2.0
|
|
23
|
-
"@cloudcommerce/ssr": "^2.0
|
|
21
|
+
"@cloudcommerce/api": "^2.1.0",
|
|
22
|
+
"@cloudcommerce/firebase": "^2.1.0",
|
|
23
|
+
"@cloudcommerce/ssr": "^2.1.0",
|
|
24
24
|
"@headlessui/vue": "^1.7.17"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@cloudcommerce/i18n": "^2.0
|
|
28
|
-
"@cloudcommerce/storefront": "^2.0
|
|
29
|
-
"@cloudcommerce/types": "^2.0
|
|
27
|
+
"@cloudcommerce/i18n": "^2.1.0",
|
|
28
|
+
"@cloudcommerce/storefront": "^2.1.0",
|
|
29
|
+
"@cloudcommerce/types": "^2.1.0",
|
|
30
30
|
"@iconify-json/mingcute": "^1.1.15",
|
|
31
31
|
"photoswipe": "^5.4.3"
|
|
32
32
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.0
|
|
19
|
-
"@cloudcommerce/firebase": "^2.0
|
|
20
|
-
"@cloudcommerce/modules": "^2.0
|
|
18
|
+
"@cloudcommerce/events": "^2.1.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.1.0",
|
|
20
|
+
"@cloudcommerce/modules": "^2.1.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -22,16 +22,14 @@
|
|
|
22
22
|
"functions/!(ssr)/**/*.ts": "eslint --fix"
|
|
23
23
|
},
|
|
24
24
|
"main": "functions/index.js",
|
|
25
|
-
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
26
|
-
"license": "Apache 2.0 with Commons Clause",
|
|
27
25
|
"bugs": {
|
|
28
26
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
29
27
|
},
|
|
30
28
|
"dependencies": {
|
|
31
|
-
"@cloudcommerce/cli": "^2.0
|
|
29
|
+
"@cloudcommerce/cli": "^2.1.0"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
34
|
-
"@cloudcommerce/eslint": "^2.0
|
|
32
|
+
"@cloudcommerce/eslint": "^2.1.0",
|
|
35
33
|
"husky": "^8.0.3",
|
|
36
34
|
"lint-staged": "^15.2.0"
|
|
37
35
|
}
|
|
@@ -12,6 +12,7 @@ on:
|
|
|
12
12
|
- '.github/build-and-deploy'
|
|
13
13
|
- '.github/workflows/build-and-deploy.yml'
|
|
14
14
|
pull_request:
|
|
15
|
+
types: [opened, synchronize, reopened, closed]
|
|
15
16
|
paths:
|
|
16
17
|
- 'functions/ssr/**'
|
|
17
18
|
- '.firebaserc'
|
|
@@ -22,8 +23,8 @@ jobs:
|
|
|
22
23
|
name: Cloud Commerce build and deploy
|
|
23
24
|
runs-on: ubuntu-latest
|
|
24
25
|
if: |
|
|
25
|
-
github.event.head_commit.message != 'Initial commit'
|
|
26
|
-
!contains(github.event.head_commit.message, '[skip ci]')
|
|
26
|
+
github.event.head_commit.message != 'Initial commit'
|
|
27
|
+
&& !contains(github.event.head_commit.message, '[skip ci]')
|
|
27
28
|
steps:
|
|
28
29
|
- uses: actions/checkout@v4
|
|
29
30
|
with:
|
|
@@ -75,3 +76,4 @@ jobs:
|
|
|
75
76
|
pagarmev5-public-key: ${{ secrets.PAGARMEV5_PUBLIC_KEY }}
|
|
76
77
|
tiktok-pixel-id: ${{ secrets.TIKTOK_PIXEL_ID }}
|
|
77
78
|
tiktok-access-token: ${{ secrets.TIKTOK_ACCESS_TOKEN }}
|
|
79
|
+
public-dotenv: ${{ secrets.PUBLIC_DOTENV }}
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
"setup:quiet": "cloudcommerce setup --no-deploy --no-commit"
|
|
18
18
|
},
|
|
19
19
|
"main": "functions/index.js",
|
|
20
|
-
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
21
|
-
"license": "Apache 2.0 with Commons Clause",
|
|
22
20
|
"bugs": {
|
|
23
21
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
22
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
|
|
6
6
|
"main": "packages/api/lib/index.js",
|
|
7
7
|
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vite": "^5.0.11",
|
|
37
37
|
"vitest": "^1.2.1",
|
|
38
38
|
"zx": "^7.2.3",
|
|
39
|
-
"@cloudcommerce/eslint": "2.
|
|
39
|
+
"@cloudcommerce/eslint": "2.2.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|