From c5982c82cd9bb577738a7f47bd488bd03c2f6329 Mon Sep 17 00:00:00 2001 From: Matias Borghi Date: Mon, 7 Feb 2022 15:35:42 -0300 Subject: [PATCH] [EKUCODE] create CNAME file when builing for production env --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d303912a6..48ed2dbd6b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "cross-env APP_ENV=development webpack serve --env mode=dev --env isDevServer --mode development --config ./webpack.config.js", "build": "webpack --mode production", "build:staging": "rm -rf dist/ && APP_ENV=staging npm run build && ./deploy/copy_to_dist.sh", - "build:production": "npm i && rm -rf dist/ && APP_VERSION=$(npm run inc_version --silent) APP_ENV=production npm run build && ./deploy/copy_to_dist.sh", + "build:production": "npm i && rm -rf dist/ && APP_VERSION=$(npm run inc_version --silent) APP_ENV=production npm run build && npm run cname && ./deploy/copy_to_dist.sh", "deploy:production": "npm run build:production && gh-pages -d dist --message '[EKUDEPLOY] Deployed to Github Pages'", "inc_version": "echo $((`cat .patch-version` + 1)) > .patch-version && echo \"$(node -p -e \"require('./package.json').version.match(/^\\d+\\.\\d+/)[0]\").$(cat .patch-version)\"", "perf:serve": "cross-env APP_ENV=perf parcel src/index-perf.html", @@ -18,6 +18,7 @@ "gramjs:lint:fix": "eslint ./src/lib/gramjs --ignore-path=src/lib/gramjs/.eslintignore --fix", "test": "cross-env APP_ENV=test jest --verbose --forceExit", "test:verbose": "cross-env APP_ENV=test jest --verbose", + "cname": "echo \"webogram.ekumenlabs.com\" > dist/CNAME", "prepare": "husky install" }, "engines": {