@lottiefiles/react-lottie-player

v3.4.5
Lottie web player wrapper for React
lottie lottiefiles react

dev

rollup -c -w

lint

tsc --noEmit && eslint . --ext .ts,.tsx,.js

build

rollup -c

version

yarn changeset version

lint:fix

eslint . --ext .ts,.tsx,.js --fix

run-tests

while ! nc -z localhost 8080 ; do sleep 1 ; done && yarn run start-cypress && npx nyc report --reporter=text-summary

serve-app

cd ./cypress/react-testing-pages && yarn && yarn run start &

storybook

start-storybook -p 9009

build-tests

yarn run build-with-coverage && cp ./dist/lottie-react.js ./cypress/react-testing-pages/src/components/

postrun-tests

kill $(lsof -t -i:8080)

start-cypress

yarn run cypress run

prepublishOnly

yarn build

build-storybook

build-storybook

build-with-coverage

CODE_COVERAGE=true rollup -c

start-and-run-tests

yarn run build-tests && yarn run serve-app && yarn run-tests
npm i @lottiefiles/[email protected]

Metadata

  • MIT
  • Whatever
  • Jawish Hameed
  • released 5/2/2022

Downloads