Zizzamia/perfume.js

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "perfume.js",
  "version": "7.1.0",
  "description": "Web performance library for measuring all User-centric performance metrics, including the latest Web Vitals.",
  "keywords": [
    "performance",
    "performance-metrics",
    "metrics",
    "navigation-timing",
    "time-to-first-byte",
    "ttfb",
    "navigator-interface",
    "resource-timing",
    "service-worker-status",
    "storageManager-interface",
    "first-paint",
    "fp",
    "first-contentful-paint",
    "fcp",
    "first-input-delay",
    "fid",
    "largest-contentful-paint",
    "lcp",
    "cumulative-layout-shift",
    "cls",
    "total-blocking-time",
    "tbt",
    "element-timing",
    "web-vitals"
  ],
  "iife": "dist/perfume.iife.min.js",
  "main": "dist/perfume.min.js",
  "module": "dist/perfume.esm.min.js",
  "unpkg": "dist/perfume.umd.min.js",
  "typings": "dist/types/perfume.d.ts",
  "files": [
    "angular",
    "dist"
  ],
  "author": "Leonardo Zizzamia",
  "repository": {
    "type": "git",
    "url": "https://github.com/Zizzamia/perfume.js.git"
  },
  "license": "MIT",
  "engines": {
    "node": ">=10.0.0"
  },
  "scripts": {
    "lint": "tslint --project tsconfig.json -t codeFrame 'src/perfume.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",
    "ci": "npm run test:prod && npm run build"
  },
  "lint-staged": {
    "{src,__tests__}/**/*.ts": [
      "git add"
    ]
  },
  "jest": {
    "transform": {
      ".(ts|tsx)": "ts-jest"
    },
    "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
    "testPathIgnorePatterns": [
      "_mock.ts",
      "/docs/",
      "/node_modules/"
    ],
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js"
    ],
    "globals": {
      "window": true
    },
    "coveragePathIgnorePatterns": [
      "/docs/",
      "/node_modules/",
      "/test/"
    ],
    "coverageThreshold": {
      "global": {
        "branches": 92,
        "functions": 95,
        "lines": 95,
        "statements": 95
      }
    },
    "collectCoverage": true
  },
  "devDependencies": {
    "@angular/core": "8.1.0",
    "@types/jest": "24.0.23",
    "@types/node": "12.12.8",
    "colors": "1.4.0",
    "commitizen": "^4.2.4",
    "coveralls": "3.0.7",
    "husky": "^3.0.9",
    "jest": "24.9.0",
    "lint-staged": "9.4.3",
    "prettier": "1.19.1",
    "rimraf": "2.6.3",
    "rollup": "1.27.0",
    "rollup-plugin-commonjs": "10.1.0",
    "rollup-plugin-node-resolve": "5.2.0",
    "rollup-plugin-sourcemaps": "0.4.2",
    "rollup-plugin-terser": "^7.0.0",
    "ts-jest": "^26.3.0",
    "ts-node": "8.5.2",
    "tslint": "5.20.1",
    "tslint-config-airbnb": "5.11.2",
    "tslint-config-prettier": "1.18.0",
    "tslint-plugin-prettier": "2.0.1",
    "typescript": "3.7.2",
    "validate-commit-msg": "1.1.2"
  }
}