@lit-labs/virtualizer

v0.5.0
Virtual scrolling for lit-html and LitElement

lint

tslint --project ./

test

karma start karma.conf.js

bench

tach --root=../.. --browser=chrome-headless test/benchmarks/${BENCH:-basic}.html --measure=fcp

build

tsc & copyfiles -u 2 src/lib/uni-virtualizer/lib/polyfills/resize-observer-polyfill/ResizeObserver.es.js lib

clean

rm -r node_modules/

prepare

npm run build

checksize

rollup -c; rm lit-virtualizer.bundled.js lit-virtualizer-with-polyfills.bundled.js

bench:debug

tach --root=../.. test/benchmarks/${BENCH:-basic}.html --measure=fcp

bench:scroll

tach --force-clean-npm-install --config=test/benchmarks/scrollingBenchmarks.json

test:screenshot

cd test/screenshot && rollup -c && mocha screenshot.js

generate-screenshots

cd test/screenshot && rollup -c && mocha screenshot.js --generate-screenshots
npm i @lit-labs/[email protected]

Metadata

Downloads