Skip to content

Commit

Permalink
feat(TU-7813): Add index.html to ./dist directory (#9)
Browse files Browse the repository at this point in the history
It will be served on https://btn.typeform.com/ and redirects to the
Github repository.
  • Loading branch information
mathio authored Jan 18, 2024
1 parent d2b9fd8 commit 94ad9b8
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 @@ -9,7 +9,8 @@
"scripts": {
"build": "esbuild index=src/index.ts button=src/browser.ts --bundle --format=esm --minify --sourcemap",
"watch": "yarn build --watch",
"dist": "yarn build --outdir=dist",
"add-dist-index": "echo \"<!DOCTYPE html><html><head><meta http-equiv='refresh' content='1; url=https://github.com/Typeform/button' /></head><body><p>Please follow <a href='https://github.com/Typeform/button'>this link</a> for button SDK.</p></body></html>\" > ./dist/index.html",
"dist": "yarn build --outdir=dist && yarn add-dist-index",
"start": "yarn watch --serve=1337 --servedir=demo --outdir=demo/dist",
"lint": "eslint src --ext .js,.ts,.jsx,.tsx --max-warnings=0 && yarn prettier-check",
"prettier-check": "prettier --check . --ignore-path .eslintignore",
Expand Down

0 comments on commit 94ad9b8

Please sign in to comment.