Skip to content

Commit

Permalink
Merge pull request #28 from ekumenlabs/create-cname-on-deploy
Browse files Browse the repository at this point in the history
Create CNAME file when building production environment
  • Loading branch information
mattborghi authored Feb 7, 2022
2 parents 01a86f4 + c5982c8 commit be1275e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit be1275e

Please sign in to comment.