@typeform/embed
v5.1.0 typeform embed form widget slider sidetab popover
clean
rm -rf ./build ./build-aws ./types
build
yarn webpack
build:types
tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir types --skipLibCheck
build:unsupported
echo '"Package '@typeform/embed' requires TS version >=4.4.0".' > types/not-supported-ts-version.d.ts
postbuild
yarn build:types && yarn build:unsupported
dev
yarn build --watch
preview
yarn concurrently 'CSS_URL="http://localhost:9022/css/" yarn dev' 'yarn preview:serve'
preview:serve
yarn http-server -p 9022 -c-1 ./build
demo-nextjs
cd ../demo-nextjs && yarn start
demo-html
cd ../demo-html && yarn start
demo
yarn concurrently 'yarn dev' 'yarn demo-nextjs'
demo-static
yarn concurrently 'yarn dev' 'yarn demo-html'
lint
eslint src --ext .js,.ts,.jsx,.tsx --max-warnings=0 && yarn prettier-check
prettier-check
prettier --check . --ignore-path .eslintignore
prettier
prettier --write . --ignore-path .eslintignore
test
jest
test:coverage
jest --coverage
cy:open
yarn cypress open
cy:open:vrt
yarn cypress open --env testType=visual
cy:open:func
yarn cy:open -c e2e.specPattern=./e2e/spec/functional/
cy:functional
yarn cypress run --spec e2e/spec/functional/**/* --headless
cy:visual
yarn cypress run --spec e2e/spec/visual/**/* --env testType=visual
test:functional
start-server-and-test demo 9090 cy:functional
test:visual
start-server-and-test demo 9090 cy:visual
release-vanilla
npm config set @typeform:registry https://registry.npmjs.org/ && yarn semantic-release
post-release
yarn release:github && yarn release:aws
release:github
npm config set @typeform:registry https://npm.pkg.github.com/ && npm publish
release:aws
yarn release:aws:prepare && yarn release:aws:deploy
release:aws:prepare
sh ./scripts/prepare-release.sh
release:aws:deploy
DEBUG=jarvis yarn run jarvis deploy --path ./build-aws --version next
release:preview
yarn release:aws:prepare && yarn release:preview:aws
release:preview:aws
DEBUG=jarvis yarn run jarvis deploy --path ./build-aws --preview --notify-preview