web-vitals

v4.2.3
Easily measure performance metrics in JavaScript
crux performance metrics Core Web Vitals CLS FCP FID INP LCP and 2 more...

dev

run-p watch test:server

lint

eslint "*.js" "src/**/*.ts" "test/**/*.js"

test

npm-run-all build test:unit -p -r test:e2e test:server

build

run-s clean build:ts build:js

clean

rm -rf dist tsconfig.tsbuildinfo

start

run-s build:ts test:server watch

watch

run-p watch:*

format

prettier "**/*.{cjs,css,html,js,json,md,ts,yml,yaml}" --write --ignore-path .gitignore

prepare

husky install

version

run-s build

build:js

rollup -c

build:ts

tsc -b

lint:fix

eslint --fix "*.js" "src/**/*.ts" "test/**/*.js"

test:e2e

wdio wdio.conf.cjs

watch:js

rollup -c -w

watch:ts

tsc -b -w

test:unit

node --test test/unit/*test.js

postversion

git push --follow-tags

test:server

node test/server.js

format:check

prettier "**/*.{cjs,css,html,js,json,html,md,ts,yml,yaml}" --check --ignore-path .gitignore

release:major

npm version major -m 'Release v%s' && npm publish

release:minor

npm version minor -m 'Release v%s' && npm publish

release:patch

npm version patch -m 'Release v%s' && npm publish

Metadata

Downloads