@typeform/embed

v5.0.0
**Typeform/embed** is the core embed library that lets you embed typeforms to your website using vanilla JavaScript.
typeform embed form widget slider sidetab popover

dev

yarn build --watch

demo

yarn concurrently 'yarn dev' 'yarn demo-nextjs'

lint

eslint src --ext .js,.ts,.jsx,.tsx --max-warnings=0 && yarn prettier-check

test

jest

build

yarn webpack

clean

rm -rf ./build ./build-aws ./types

cy:open

yarn cypress open

preview

yarn concurrently 'CSS_URL="http://localhost:9022/css/" yarn dev' 'yarn preview:serve'

coverage

jest --coverage

prettier

prettier --write . --ignore-path .eslintignore

cy:visual

yarn cypress run --spec e2e/spec/visual/**/* --env testType=visual

demo-html

cd ../demo-html && yarn start

postbuild

yarn build:types && yarn build:unsupported

build:types

tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir types --skipLibCheck

cy:open:vrt

yarn cypress open --env testType=visual

demo-nextjs

cd ../demo-nextjs && yarn start

demo-static

yarn concurrently 'yarn dev' 'yarn demo-html'

release:aws

yarn release:aws:prepare && yarn release:aws:deploy

test:visual

start-server-and-test demo 9090 cy:visual

cy:open:func

yarn cy:open -c e2e.specPattern=./e2e/spec/functional/

post-release

yarn release:github && yarn release:aws

cy:functional

yarn cypress run --spec e2e/spec/functional/**/* --headless

preview:serve

yarn http-server -p 9022 -c-1 ./build

prettier-check

prettier --check . --ignore-path .eslintignore

release:github

npm config set @typeform:registry https://npm.pkg.github.com/ && npm publish

release-vanilla

npm config set @typeform:registry https://registry.npmjs.org/ && yarn semantic-release

release:preview

yarn release:aws:prepare && yarn release:preview:aws

test:functional

start-server-and-test demo 9090 cy:functional

build:unsupported

echo '"Package '@typeform/embed' requires TS version >=4.4.0".' > types/not-supported-ts-version.d.ts

release:aws:deploy

DEBUG=jarvis yarn run jarvis deploy --path ./build-aws --version next

release:aws:prepare

sh ./scripts/prepare-release.sh

release:preview:aws

DEBUG=jarvis yarn run jarvis deploy --path ./build-aws --preview --notify-preview
npm i @typeform/[email protected]

Metadata

  • MIT
  • >=10
  • Typeform
  • released 7/17/2024

Downloads