cloudcommerce 0.0.90 → 0.0.92

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 CHANGED
@@ -2,6 +2,15 @@
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
+ ### [0.0.92](https://github.com/ecomplus/cloud-commerce/compare/v0.0.91...v0.0.92) (2022-09-23)
6
+
7
+ ### [0.0.91](https://github.com/ecomplus/cloud-commerce/compare/v0.0.90...v0.0.91) (2022-09-23)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **cli:** Update default `firebase.json` isolating storefront deps for SSR deploy ([7b491b1](https://github.com/ecomplus/cloud-commerce/commit/7b491b13dbef4512c48ba4b4cb8835d84040b458))
13
+
5
14
  ### [0.0.90](https://github.com/ecomplus/cloud-commerce/compare/v0.0.89...v0.0.90) (2022-09-23)
6
15
 
7
16
  ### [0.0.89](https://github.com/ecomplus/cloud-commerce/compare/v0.0.88...v0.0.89) (2022-09-23)
package/action.yml CHANGED
@@ -45,6 +45,9 @@ runs:
45
45
  npm ci --omit=dev
46
46
  cd ..
47
47
  done
48
+ cd ssr/storefront
49
+ npm ci
50
+ cd ../..
48
51
 
49
52
  - if: github.event_name == 'push'
50
53
  name: Deploy to Firebase live
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
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>",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
6
6
  "main": "lib/correios.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-shipping",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce app for custom shipping methods",
6
6
  "main": "lib/custom-shipping.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "lib/discounts.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-frenet",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
6
6
  "main": "lib/frenet.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce app for Tiny ERP",
6
6
  "main": "lib/tiny-erp.js",
7
7
  "repository": {
@@ -25,13 +25,17 @@
25
25
  "codebase": "passport"
26
26
  },
27
27
  {
28
- "predeploy": "npm --prefix \"$RESOURCE_DIR\" run build && npm run build -- --codebase ssr",
28
+ "predeploy": "npm --prefix \"$RESOURCE_DIR/storefront\" run build && npm run build -- --codebase ssr",
29
29
  "source": "functions/ssr",
30
- "codebase": "ssr"
30
+ "codebase": "ssr",
31
+ "ignore": [
32
+ "storefront/**/!(entry.mjs)",
33
+ "functions/ssr/storefront/**/!(entry.mjs)"
34
+ ]
31
35
  }
32
36
  ],
33
37
  "hosting": {
34
- "public": "functions/ssr/dist/client",
38
+ "public": "functions/ssr/storefront/dist/client",
35
39
  "ignore": [
36
40
  "firebase.json",
37
41
  "**/.*",
@@ -56,7 +60,7 @@
56
60
  "region": "southamerica-east1"
57
61
  },
58
62
  {
59
- "source": "**/!(*(*.)js|*(*.)css|*(*.)ico|*(*.)png|*(*.)gif|*(*.)jpg|*(*.)jpeg|*(*.)webp|*(*.)avif|*(*.)svg|*(*.)woff|*(*.)woff2|*(*.)otf|*(*.)ttf|*(*.)eot)",
63
+ "source": "**/!(*(*.)ico|*(*.)png|*(*.)map)",
60
64
  "function": "ssr",
61
65
  "region": "southamerica-east1"
62
66
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/config",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce base config",
6
6
  "main": "lib/config.js",
7
7
  "exports": {
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
2
  import '@cloudcommerce/firebase/lib/init';
3
-
4
3
  export * from '@cloudcommerce/app-tiny-erp';
5
- // # sourceMappingURL=firebase.js.map
4
+ //# sourceMappingURL=firebase.js.map
@@ -1,2 +1,2 @@
1
1
  import './firebase.js';
2
- // # sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/events",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/modules",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce modules API",
6
6
  "main": "lib/index.cjs",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/passport",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce customers authentication (passport) API",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/ssr",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -23,20 +23,24 @@
23
23
  "build": "sh ../../scripts/build-lib.sh"
24
24
  },
25
25
  "dependencies": {
26
- "@astrojs/image": "^0.7.1",
27
26
  "@astrojs/node": "^1.0.1",
28
- "@astrojs/vue": "^1.0.2",
29
27
  "@cloudcommerce/api": "workspace:*",
30
28
  "@cloudcommerce/firebase": "workspace:*",
31
29
  "@ecomplus/utils": "^1.4.1",
32
- "astro": "^1.3.0",
33
30
  "color": "^4.2.3",
34
31
  "compression": "^1.7.4",
35
- "dotenv": "^16.0.2",
36
32
  "firebase-admin": "^11.0.1",
37
33
  "firebase-functions": "^3.23.0",
34
+ "html-escaper": "^3.0.3",
38
35
  "image-size": "^1.0.2",
36
+ "kleur": "^4.1.5",
37
+ "mime": "^3.0.0",
38
+ "path-browserify": "^1.0.1",
39
+ "path-to-regexp": "^6.2.1",
40
+ "sharp": "^0.31.0",
41
+ "slash": "^4.0.0",
39
42
  "source-map-support": "^0.5.21",
43
+ "string-width": "^5.1.2",
40
44
  "vue": "^3.2.39"
41
45
  },
42
46
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -1,4 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
- rm -rf content && ln -s ../../store/functions/ssr/content content
4
- rm -rf public && ln -s ../../store/functions/ssr/public public
3
+ rm -rf content && ln -s ../../store/functions/ssr/storefront/content content
4
+ rm -rf public && ln -s ../../store/functions/ssr/storefront/public public
@@ -1,4 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
- rm content && cp -r ../../store/functions/ssr/content ./
4
- rm public && cp -r ../../store/functions/ssr/public ./
3
+ rm content && cp -r ../../store/functions/ssr/storefront/content ./
4
+ rm public && cp -r ../../store/functions/ssr/storefront/public ./
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
@@ -5,3 +5,4 @@ packages:
5
5
  - 'store'
6
6
  - 'store/*'
7
7
  - 'store/functions/*'
8
+ - 'store/functions/ssr/storefront'