perfume.js

v0.1.0
Perfume is a tiny JavaScript library for measuring Short/Long Script, First Meaningful Paint, TTI (Time to Interactivity), annotating them to the DevTools timeline and reporting the results to Google Analytics.

lint

tslint -t codeFrame 'src/**/*.ts' '__tests__/**/*.ts'

prebuild

rimraf dist

build

tsc && tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts

start

tsc -w & rollup -c rollup.config.ts -w

test

jest

test:watch

jest --watch

test:prod

npm run lint && npm run test -- --coverage --no-cache

report-coverage

cat ./coverage/lcov.info | coveralls

commit

git-cz

commitmsg

validate-commit-msg

precommit

lint-staged

prepush

npm run test:prod && npm run build

Metadata

  • MIT
  • >=6.0.0
  • Leonardo Zizzamia
  • released 12/28/2017

Downloads

Maintainers