initial commit
This commit is contained in:
parent
2f48c35a6f
commit
f97d4e5780
42
.env.custom
42
.env.custom
|
@ -1,21 +1,21 @@
|
||||||
VUE_APP_MAGENTO_API_URL=https://customapi-r5bdena-kkhydudga4ihy.us.magentosite.cloud
|
VITE_APP_MAGENTO_API_URL=https://customapi-r5bdena-kkhydudga4ihy.us.magentosite.cloud
|
||||||
VUE_APP_CRANE_URL=/shop
|
VITE_APP_CRANE_URL=/shop
|
||||||
VUE_APP_GATE_URL=/gate
|
VITE_APP_GATE_URL=/gate
|
||||||
VUE_APP_ME_URL=/retailer
|
VITE_APP_ME_URL=/retailer
|
||||||
VUE_APP_LOGIN_URL=/gate/sign-in
|
VITE_APP_LOGIN_URL=/gate/sign-in
|
||||||
VUE_APP_PERSONALIZE_URL=https://personalize-daily.crane.com/personalize
|
VITE_APP_PERSONALIZE_URL=https://personalize-daily.crane.com/personalize
|
||||||
VUE_APP_PROVISION_URL=http://manager-daily.crane.com/manager
|
VITE_APP_PROVISION_URL=http://manager-daily.crane.com/manager
|
||||||
VUE_APP_IMAGE_PATH_URL=https://staging.crane.com/media/catalog/product
|
VITE_APP_IMAGE_PATH_URL=https://staging.crane.com/media/catalog/product
|
||||||
VUE_APP_RETAILOR_ID=449057567-f789-420c-98b6-2e0443af73f5
|
VITE_APP_RETAILOR_ID=449057567-f789-420c-98b6-2e0443af73f5
|
||||||
VUE_APP_IMAGE_CATEGORY_PATH_URL=https://staging.crane.com
|
VITE_APP_IMAGE_CATEGORY_PATH_URL=https://staging.crane.com
|
||||||
VUE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
VITE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
||||||
VUE_APP_HOME_PAGE_URL=https://next.crane.com
|
VITE_APP_HOME_PAGE_URL=https://next.crane.com
|
||||||
VUE_APP_CC_CONNECTION_URL=https://www.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
VITE_APP_CC_CONNECTION_URL=https://www.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
||||||
VUE_APP_MAINTENANCE_MODE=false
|
VITE_APP_MAINTENANCE_MODE=false
|
||||||
VUE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
VITE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
||||||
VUE_APP_ASSETS_NODESLS_URL=https://assets-sls.crane.com
|
VITE_APP_ASSETS_NODESLS_URL=https://assets-sls.crane.com
|
||||||
VUE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
VITE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
||||||
VUE_APP_IMAGE_LIB_URL=https://imagelib-api.crane.com
|
VITE_APP_IMAGE_LIB_URL=https://imagelib-api.crane.com
|
||||||
VUE_APP_CRANE_ORDER_URL=https://order.crane.com
|
VITE_APP_CRANE_ORDER_URL=https://order.crane.com
|
||||||
VUE_APP_BASE_URL=https://www.crane.com
|
VITE_APP_BASE_URL=https://www.crane.com
|
||||||
VUE_APP_RP_AUTH_NAME=rp_auth_stg
|
VITE_APP_RP_AUTH_NAME=rp_auth_stg
|
48
.env.daily
48
.env.daily
|
@ -1,25 +1,31 @@
|
||||||
VUE_APP_MAGENTO_API_URL=https://m2-stg.crane.com
|
VITE_APP_MAGENTO_API_URL=https://m2-stg.crane.com
|
||||||
VUE_APP_CRANE_URL=/shop
|
VITE_APP_CRANE_URL=/shop
|
||||||
VUE_APP_GATE_URL=/gate
|
VITE_APP_GATE_URL=/gate
|
||||||
VUE_APP_ME_URL=/retailer
|
VITE_APP_ME_URL=/retailer
|
||||||
VUE_APP_LOGIN_URL=/gate/sign-in
|
VITE_APP_LOGIN_URL=/gate/sign-in
|
||||||
VUE_APP_PERSONALIZE_URL=https://personalize-daily.crane.com/personalize
|
VITE_APP_PERSONALIZE_URL=https://personalize-daily.crane.com/personalize
|
||||||
VUE_APP_PROVISION_URL=http://manager-daily.crane.com/manager
|
VITE_APP_PROVISION_URL=http://manager-daily.crane.com/manager
|
||||||
VUE_APP_IMAGE_PATH_URL=https://m2-stg.crane.com/media/catalog/product
|
VITE_APP_IMAGE_PATH_URL=https://m2-stg.crane.com/media/catalog/product
|
||||||
VUE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
VITE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
||||||
VUE_APP_IMAGE_CATEGORY_PATH_URL=https://m2-stg.crane.com
|
VITE_APP_IMAGE_CATEGORY_PATH_URL=https://m2-stg.crane.com
|
||||||
VUE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
VITE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
||||||
VUE_APP_HOME_PAGE_URL=https://www-daily.crane.com
|
VITE_APP_HOME_PAGE_URL=https://www-daily.crane.com
|
||||||
VUE_APP_CC_CONNECTION_URL=https://www.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
VITE_APP_CC_CONNECTION_URL=https://www.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
||||||
VUE_APP_MAINTENANCE_MODE=false
|
VITE_APP_MAINTENANCE_MODE=false
|
||||||
VUE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
VITE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
||||||
VUE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
VITE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
||||||
VUE_APP_CRANE_ORDER_URL=https://order.crane.com
|
VITE_APP_CRANE_ORDER_URL=https://order.crane.com
|
||||||
|
|
||||||
DEPLOY_S3_REGION=us-east-2
|
DEPLOY_S3_REGION=us-east-2
|
||||||
DEPLOY_S3_BUCKET=www-daily.crane.com
|
DEPLOY_S3_BUCKET=www-daily.crane.com
|
||||||
DEPLOY_CLOUDFRONT_ID=E28QEVKG98ZHYU
|
DEPLOY_CLOUDFRONT_ID=E28QEVKG98ZHYU
|
||||||
VUE_APP_ASSETS_NODESLS_URL=https://assets-sls.crane.com
|
VITE_APP_ASSETS_NODESLS_URL=https://assets-sls.crane.com
|
||||||
VUE_APP_IMAGE_LIB_URL=https://imagelib-api.crane.com
|
VITE_APP_IMAGE_LIB_URL=https://imagelib-api.crane.com
|
||||||
VUE_APP_BASE_URL=https://www.crane.com
|
VITE_APP_BASE_URL=https://www.crane.com
|
||||||
VUE_APP_RP_AUTH_NAME=rp_auth_stg
|
VITE_APP_RP_AUTH_NAME=rp_auth_stg
|
||||||
|
|
||||||
|
VITE_ACCESS_KEY_ID=AKIAsXBHFRMEXHWQCPJGN
|
||||||
|
VITE_SECRET_ACCESS_KEY=MPsiVn466VRgFKDLIm//Ys9/2GH/xgMvSjGecr4el
|
||||||
|
VITE_S3_REGION=us-east-1
|
||||||
|
VITE_S3_BUCKET=assets-edge-daily-website-bucket
|
||||||
|
VITE_CLOUDFRONT_ID=EJ6BUC5VUXA6Z
|
|
@ -1,25 +1,31 @@
|
||||||
VUE_APP_MAGENTO_API_URL=https://m2-stg.crane.com
|
VITE_APP_MAGENTO_API_URL=https://m2-stg.crane.com
|
||||||
VUE_APP_CRANE_URL=/shop
|
VITE_APP_CRANE_URL=/shop
|
||||||
VUE_APP_GATE_URL=/gate
|
VITE_APP_GATE_URL=/gate
|
||||||
VUE_APP_ME_URL=/b2b
|
VITE_APP_ME_URL=/b2b
|
||||||
VUE_APP_LOGIN_URL=/gate/sign-in
|
VITE_APP_LOGIN_URL=/gate/sign-in
|
||||||
VUE_APP_PERSONALIZE_URL=https://studio-stg.crane.com/personalize
|
VITE_APP_PERSONALIZE_URL=https://studio-stg.crane.com/personalize
|
||||||
VUE_APP_IMAGE_PATH_URL=https://m2-stg.crane.com/media/catalog/product
|
VITE_APP_IMAGE_PATH_URL=https://m2-stg.crane.com/media/catalog/product
|
||||||
VUE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
VITE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
||||||
VUE_APP_IMAGE_CATEGORY_PATH_URL=https://m2-stg.crane.com
|
VITE_APP_IMAGE_CATEGORY_PATH_URL=https://m2-stg.crane.com
|
||||||
VUE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
VITE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
||||||
|
|
||||||
VUE_APP_HOME_PAGE_URL=https://www-stg.crane.com
|
VITE_APP_HOME_PAGE_URL=https://www-stg.crane.com
|
||||||
VUE_APP_CC_CONNECTION_URL=https://www.staging.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
VITE_APP_CC_CONNECTION_URL=https://www.staging.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
||||||
VUE_APP_MAINTENANCE_MODE=false
|
VITE_APP_MAINTENANCE_MODE=false
|
||||||
VUE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
VITE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
||||||
VUE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
VITE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
||||||
VUE_APP_CRANE_ORDER_URL=https://ordertest.crane.com
|
VITE_APP_CRANE_ORDER_URL=https://ordertest.crane.com
|
||||||
|
|
||||||
DEPLOY_S3_REGION=us-east-1
|
DEPLOY_S3_REGION=us-east-1
|
||||||
DEPLOY_S3_BUCKET=retailer-edge-staging-website-bucket
|
DEPLOY_S3_BUCKET=retailer-edge-staging-website-bucket
|
||||||
DEPLOY_CLOUDFRONT_ID=E1QLFKCOZUDC8P
|
DEPLOY_CLOUDFRONT_ID=E1QLFKCOZUDC8P
|
||||||
VUE_APP_ASSETS_NODESLS_URL=https://assets-stg-sls.crane.com
|
VITE_APP_ASSETS_NODESLS_URL=https://assets-stg-sls.crane.com
|
||||||
VUE_APP_IMAGE_LIB_URL=https://imagelib-stg-api.crane.com
|
VITE_APP_IMAGE_LIB_URL=https://imagelib-stg-api.crane.com
|
||||||
VUE_APP_BASE_URL=https://retailer-stg.crane.com
|
VITE_APP_BASE_URL=https://retailer-stg.crane.com
|
||||||
VUE_APP_RP_AUTH_NAME=rp_auth_stg
|
VITE_APP_RP_AUTH_NAME=rp_auth_stg
|
||||||
|
|
||||||
|
VITE_ACCESS_KEY_ID=AKIAsXBHFRMEXHWQCPJGN
|
||||||
|
VITE_SECRET_ACCESS_KEY=MPsiVn466VRgFKDLIm//Ys9/2GH/xgMvSjGecr4el
|
||||||
|
VITE_S3_REGION=us-east-1
|
||||||
|
VITE_S3_BUCKET=assets-edge-daily-website-bucket
|
||||||
|
VITE_CLOUDFRONT_ID=EJ6BUC5VUXA6Z
|
|
@ -1,26 +1,26 @@
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
VUE_APP_MAGENTO_API_URL=https://m2.crane.com
|
VITE_APP_MAGENTO_API_URL=https://m2.crane.com
|
||||||
VUE_APP_CRANE_URL=/shop
|
VITE_APP_CRANE_URL=/shop
|
||||||
VUE_APP_GATE_URL=/gate
|
VITE_APP_GATE_URL=/gate
|
||||||
VUE_APP_ME_URL=/b2b
|
VITE_APP_ME_URL=/b2b
|
||||||
VUE_APP_LOGIN_URL=/gate/sign-in
|
VITE_APP_LOGIN_URL=/gate/sign-in
|
||||||
VUE_APP_PERSONALIZE_URL=https://studio.crane.com/personalize
|
VITE_APP_PERSONALIZE_URL=https://studio.crane.com/personalize
|
||||||
VUE_APP_IMAGE_PATH_URL=https://m2.crane.com/media/catalog/product
|
VITE_APP_IMAGE_PATH_URL=https://m2.crane.com/media/catalog/product
|
||||||
VUE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
VITE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
||||||
VUE_APP_IMAGE_CATEGORY_PATH_URL=https://m2.crane.com
|
VITE_APP_IMAGE_CATEGORY_PATH_URL=https://m2.crane.com
|
||||||
VUE_APP_NODESLS_API_URL=https://imagelib-sls.crane.com
|
VITE_APP_NODESLS_API_URL=https://imagelib-sls.crane.com
|
||||||
|
|
||||||
VUE_APP_HOME_PAGE_URL=https://retailer.crane.com
|
VITE_APP_HOME_PAGE_URL=https://retailer.crane.com
|
||||||
VUE_APP_CC_CONNECTION_URL=https://www.staging.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
VITE_APP_CC_CONNECTION_URL=https://www.staging.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
||||||
VUE_APP_MAINTENANCE_MODE=false
|
VITE_APP_MAINTENANCE_MODE=false
|
||||||
VUE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
VITE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
||||||
VUE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
VITE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
||||||
VUE_APP_CRANE_ORDER_URL=https://ordertest.crane.com
|
VITE_APP_CRANE_ORDER_URL=https://ordertest.crane.com
|
||||||
|
|
||||||
DEPLOY_S3_REGION=us-east-1
|
DEPLOY_S3_REGION=us-east-1
|
||||||
DEPLOY_S3_BUCKET=retailer-edge-production-website-bucket
|
DEPLOY_S3_BUCKET=retailer-edge-production-website-bucket
|
||||||
DEPLOY_CLOUDFRONT_ID=E1WSOW180GVD3S
|
DEPLOY_CLOUDFRONT_ID=E1WSOW180GVD3S
|
||||||
VUE_APP_ASSETS_NODESLS_URL=https://assets-sls.crane.com
|
VITE_APP_ASSETS_NODESLS_URL=https://assets-sls.crane.com
|
||||||
VUE_APP_IMAGE_LIB_URL=https://imagelib-api.crane.com
|
VITE_APP_IMAGE_LIB_URL=https://imagelib-api.crane.com
|
||||||
VUE_APP_BASE_URL=https://retailer.crane.com
|
VITE_APP_BASE_URL=https://retailer.crane.com
|
||||||
VUE_APP_RP_AUTH_NAME=rp_auth_prod
|
VITE_APP_RP_AUTH_NAME=rp_auth_prod
|
40
.env.staging
40
.env.staging
|
@ -1,26 +1,26 @@
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
VUE_APP_MAGENTO_API_URL=https://m2-stg.crane.com
|
VITE_APP_MAGENTO_API_URL=https://m2-stg.crane.com
|
||||||
VUE_APP_CRANE_URL=/shop
|
VITE_APP_CRANE_URL=/shop
|
||||||
VUE_APP_GATE_URL=/gate
|
VITE_APP_GATE_URL=/gate
|
||||||
VUE_APP_ME_URL=/b2b
|
VITE_APP_ME_URL=/b2b
|
||||||
VUE_APP_LOGIN_URL=/gate/sign-in
|
VITE_APP_LOGIN_URL=/gate/sign-in
|
||||||
VUE_APP_PERSONALIZE_URL=https://studio-stg.crane.com/personalize
|
VITE_APP_PERSONALIZE_URL=https://studio-stg.crane.com/personalize
|
||||||
VUE_APP_IMAGE_PATH_URL=https://m2-stg.crane.com/media/catalog/product
|
VITE_APP_IMAGE_PATH_URL=https://m2-stg.crane.com/media/catalog/product
|
||||||
VUE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
VITE_APP_RETAILOR_ID=49057567-f789-420c-98b6-2e0443af73f5
|
||||||
VUE_APP_IMAGE_CATEGORY_PATH_URL=https://m2-stg.crane.com
|
VITE_APP_IMAGE_CATEGORY_PATH_URL=https://m2-stg.crane.com
|
||||||
VUE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
VITE_APP_NODESLS_API_URL=https://imagelib-sls-stg.crane.com
|
||||||
|
|
||||||
VUE_APP_HOME_PAGE_URL=https://www-stg.crane.com
|
VITE_APP_HOME_PAGE_URL=https://www-stg.crane.com
|
||||||
VUE_APP_CC_CONNECTION_URL=https://www.staging.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
VITE_APP_CC_CONNECTION_URL=https://www.staging.personalized-stationery.com/CranesConnectionRedesign/Personalize.aspx?
|
||||||
VUE_APP_MAINTENANCE_MODE=false
|
VITE_APP_MAINTENANCE_MODE=false
|
||||||
VUE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
VITE_APP_MAINTENANCE_PAGE_URL=/maintenance
|
||||||
VUE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
VITE_APP_IMAGE_CATEGORY_PARAMS=?height=600&width=600
|
||||||
VUE_APP_CRANE_ORDER_URL=https://ordertest.crane.com
|
VITE_APP_CRANE_ORDER_URL=https://ordertest.crane.com
|
||||||
|
|
||||||
DEPLOY_S3_REGION=us-east-1
|
DEPLOY_S3_REGION=us-east-1
|
||||||
DEPLOY_S3_BUCKET=retailer-edge-staging-website-bucket
|
DEPLOY_S3_BUCKET=retailer-edge-staging-website-bucket
|
||||||
DEPLOY_CLOUDFRONT_ID=E1QLFKCOZUDC8P
|
DEPLOY_CLOUDFRONT_ID=E1QLFKCOZUDC8P
|
||||||
VUE_APP_ASSETS_NODESLS_URL=https://assets-stg-sls.crane.com
|
VITE_APP_ASSETS_NODESLS_URL=https://assets-stg-sls.crane.com
|
||||||
VUE_APP_IMAGE_LIB_URL=https://imagelib-stg-api.crane.com
|
VITE_APP_IMAGE_LIB_URL=https://imagelib-stg-api.crane.com
|
||||||
VUE_APP_BASE_URL=https://retailer-stg.crane.com
|
VITE_APP_BASE_URL=https://retailer-stg.crane.com
|
||||||
VUE_APP_RP_AUTH_NAME=rp_auth_stg
|
VITE_APP_RP_AUTH_NAME=rp_auth_stg
|
65
package.json
65
package.json
|
@ -3,56 +3,55 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve --port 8092",
|
"serve": "vite serve --port 8092",
|
||||||
"serve:daily": "vue-cli-service serve --mode daily --port 8092",
|
|
||||||
"serve:custom": "vue-cli-service serve --mode custom --port 8092",
|
"serve:daily": "NODE_ENV=staging vite --mode development --port 8092",
|
||||||
"serve:development": "vue-cli-service serve --mode development --port 8092",
|
"serve:custom": "vite serve --mode custom --port 8092",
|
||||||
"serve:staging": "vue-cli-service serve --mode staging --port 8092",
|
"serve:development": "vite serve --mode development --port 8092",
|
||||||
"serve:production": "vue-cli-service serve --mode production --port 8092",
|
"serve:staging": "vite serve --mode staging --port 8092",
|
||||||
|
"serve:production": "vite serve --mode production --port 8092",
|
||||||
"copy:seo-files": "node copySeoFiles.js",
|
"copy:seo-files": "node copySeoFiles.js",
|
||||||
"copy:cache-files": "node copyCacheFiles.js",
|
"copy:cache-files": "node copyCacheFiles.js",
|
||||||
"copy:git-info": "node copyGitInfo.js",
|
"copy:git-info": "node copyGitInfo.js",
|
||||||
"index-catalog": "node indexCatalog.js",
|
"index-catalog": "node indexCatalog.js",
|
||||||
"build": "vue-cli-service build",
|
"build": "vite build",
|
||||||
"build:daily": "NODE_ENV=production vue-cli-service build --mode daily",
|
"build:daily": "NODE_ENV=production vite build --mode daily",
|
||||||
"build:staging": "NODE_ENV=production vue-cli-service build --mode staging",
|
"build:staging": "NODE_ENV=production vite build --mode staging",
|
||||||
"build:production": "NODE_ENV=production vue-cli-service build --mode production",
|
"build:production": "NODE_ENV=production vite build --mode production",
|
||||||
"deploy:daily": "AWS_PROFILE=crane vue-cli-service s3-deploy --mode daily",
|
"deploy:daily": "AWS_PROFILE=crane vite s3-deploy --mode daily",
|
||||||
"deploy:production": "AWS_PROFILE=crane vue-cli-service s3-deploy --mode production",
|
"deploy:production": "AWS_PROFILE=crane vite s3-deploy --mode production",
|
||||||
"deploy:staging": "AWS_PROFILE=crane vue-cli-service s3-deploy --mode staging",
|
"deploy:staging": "AWS_PROFILE=crane vite s3-deploy --mode staging",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vite lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.4.4",
|
"core-js": "^3.8.3",
|
||||||
"fuse.js": "^6.4.2",
|
"fuse.js": "^6.4.2",
|
||||||
"js-base64": "^2.5.1",
|
"js-base64": "^2.5.1",
|
||||||
"lodash-humps": "^3.1.5",
|
"lodash-humps": "^3.1.5",
|
||||||
"vue": "^2.6.10",
|
"vue": "^3.2.47",
|
||||||
"vue-cookies": "^1.5.13",
|
"vue3-cookies": "^1.0.6",
|
||||||
"vue-meta": "^2.4.0",
|
"vue-meta": "^2.4.0",
|
||||||
"vue-router": "^3.2.0",
|
"vue-router": "4",
|
||||||
"vue-tel-input": "^4.4.0",
|
"vue-tel-input": "^4.4.0",
|
||||||
"vue2-google-maps": "^0.10.7",
|
"vue3-google-map": "^0.14.0",
|
||||||
"vueperslides": "^2.8.2",
|
"vueperslides": "^2.8.2",
|
||||||
"vuetify": "^2.1.0",
|
"vuetify": "^3.0.0-beta.11",
|
||||||
"vuex": "^3.1.2",
|
"@vuetify/vite-plugin": "^1.0.0-alpha.11",
|
||||||
|
"vuex": "^4.0.2",
|
||||||
"vuex-map-fields": "^1.3.6"
|
"vuex-map-fields": "^1.3.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "^4.1.0",
|
|
||||||
"@vue/cli-plugin-eslint": "^4.1.0",
|
|
||||||
"@vue/cli-service": "^4.1.0",
|
|
||||||
"babel-eslint": "^10.0.3",
|
"babel-eslint": "^10.0.3",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-plugin-vue": "^5.0.0",
|
"eslint-plugin-vue": "^8.0.3",
|
||||||
"git-commit-info-webpack-plugin": "^1.0.3",
|
"git-commit-info-webpack-plugin": "^1.0.3",
|
||||||
"sass": "^1.19.0",
|
"sass": "^1.62.0",
|
||||||
"sass-loader": "^8.0.0",
|
"sass-loader": "^13.2.2",
|
||||||
"vue-cli-plugin-critical": "^1.1.0",
|
"vite": "^4.2.1",
|
||||||
"vue-cli-plugin-s3-deploy": "^3.0.0",
|
"vite-plugin-aws3": "^0.3.0",
|
||||||
"vue-cli-plugin-vuetify": "^2.0.3",
|
"vue-template-compiler": "^2.7.14",
|
||||||
"vue-template-compiler": "^2.6.10",
|
"vue-tsc": "^1.2.0",
|
||||||
"vuetify-loader": "^1.3.0"
|
"vuetify-loader": "^1.9.2"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
continue.</strong>
|
continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.js"></script>
|
||||||
<script src="/static/js/magentoCmsCache.js"></script>
|
<script src="/static/js/magentoCmsCache.js"></script>
|
||||||
<script src="/static/js/craneRetailerCatalog.js"></script>
|
<script src="/static/js/craneRetailerCatalog.js"></script>
|
||||||
|
|
||||||
|
|
115
vue.config.js
115
vue.config.js
|
@ -1,64 +1,65 @@
|
||||||
const GitCommitInfoWebpackPlugin = require("git-commit-info-webpack-plugin");
|
|
||||||
|
|
||||||
var fs = require('fs');
|
|
||||||
module.exports = {
|
import { defineConfig, loadEnv } from 'vite';
|
||||||
assetsDir: 'static',
|
import vue from '@vitejs/plugin-vue';
|
||||||
transpileDependencies: [
|
import vuetify from 'vite-plugin-vuetify';
|
||||||
"vuetify"
|
import viteAws from 'vite-plugin-aws3'
|
||||||
],
|
|
||||||
configureWebpack: {
|
|
||||||
plugins: [
|
import path from 'path'
|
||||||
new GitCommitInfoWebpackPlugin({
|
|
||||||
pathToFile: './',
|
// https://vitejs.dev/config/
|
||||||
filename: 'git_info.json'
|
export default ({ mode }) => {
|
||||||
})
|
// Load app-level env vars to node-level env vars.
|
||||||
]
|
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
|
||||||
|
|
||||||
|
const accessKeyId = process.env.VITE_ACCESS_KEY_ID;
|
||||||
|
const secretAccessKey = process.env.VITE_SECRET_ACCESS_KEY;
|
||||||
|
const region = process.env.VITE_S3_REGION;
|
||||||
|
const bucket = process.env.VITE_S3_BUCKET;
|
||||||
|
const cloudFrontId = process.env.VITE_CLOUDFRONT_ID;
|
||||||
|
console.log(accessKeyId, secretAccessKey, region,bucket)
|
||||||
|
|
||||||
|
return defineConfig({
|
||||||
|
// base: '/static',
|
||||||
|
// publicDir:'static',
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
"./runtimeConfig": "./runtimeConfig.browser",
|
||||||
|
'@': path.resolve(__dirname, './src')
|
||||||
},
|
},
|
||||||
chainWebpack: (config) => {
|
|
||||||
// Remove the following lines to add Vue Prefetch and Preload on index.html
|
|
||||||
// https://cli.vuejs.org/guide/html-and-static-assets.html#disable-index-generation
|
|
||||||
config.plugins.delete('preload')
|
|
||||||
config.plugins.delete('prefetch')
|
|
||||||
},
|
|
||||||
devServer: {
|
|
||||||
host: 'local.com',
|
|
||||||
https: {
|
|
||||||
key: fs.readFileSync('./server.key'),
|
|
||||||
cert: fs.readFileSync('./server.cert')
|
|
||||||
},
|
|
||||||
historyApiFallback: {
|
|
||||||
rewrites: [
|
|
||||||
//{ from: /\/gate/, to: '/gate.html' },
|
|
||||||
//{ from: /\/retailer/, to: '/retailer.html' },
|
|
||||||
{ from: /\//, to: '/index.html' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
pluginOptions: {
|
plugins: [
|
||||||
s3Deploy: {
|
vue(),
|
||||||
registry: undefined,
|
vuetify({ styles: 'expose' ,autoImport: true}),
|
||||||
awsProfile: 'crane',
|
viteAws({
|
||||||
region: process.env.DEPLOY_S3_REGION,
|
// exclude: /.*\.img/,
|
||||||
bucket: process.env.DEPLOY_S3_BUCKET,
|
// include: /.*\.js$/,
|
||||||
createBucket: false,
|
uploadEnabled: true,
|
||||||
staticHosting: false,
|
s3: {
|
||||||
staticIndexPage: 'index.html',
|
profile: 'crane',
|
||||||
staticErrorPage: 'index.html',
|
region: 'us-east-1',
|
||||||
assetPath: 'dist',
|
bucket: bucket,
|
||||||
assetMatch: '**',
|
|
||||||
deployPath: '/',
|
|
||||||
acl: 'public-read',
|
|
||||||
pwa: false,
|
|
||||||
enableCloudfront: true,
|
|
||||||
cloudfrontId: process.env.DEPLOY_CLOUDFRONT_ID,
|
|
||||||
cloudfrontMatchers: '/*',
|
|
||||||
uploadConcurrency: 5,
|
|
||||||
pluginVersion: '3.0.0'
|
|
||||||
},
|
},
|
||||||
critical: {
|
cloudFront: {
|
||||||
width: 375,
|
distributionId: cloudFrontId,
|
||||||
height: 565
|
paths: ['/*'],
|
||||||
}
|
},
|
||||||
|
basePath: 'production',
|
||||||
|
}),
|
||||||
|
|
||||||
|
],
|
||||||
|
server: {
|
||||||
|
watch: {
|
||||||
|
usePolling: true
|
||||||
|
},
|
||||||
|
host: 'local.crane.com',
|
||||||
|
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
manifest: true,
|
||||||
|
chunkSizeWarningLimit: 2048
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue