Zizzamia/perfume.js

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "perfume.js",
  "version": "9.4.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": "eslint -c .eslintrc.js --ext .ts src",
    "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",
    "prettier": "prettier --write src & prettier --write __tests__",
    "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",
      "stepsTestConstants.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
  },
  "dependencies": {
    "web-vitals": "^3.5.0"
  },
  "devDependencies": {
    "@rollup/plugin-commonjs": "23.0.2",
    "@rollup/plugin-node-resolve": "15.0.1",
    "@types/jest": "29.2.2",
    "@types/node": "18.11.9",
    "@typescript-eslint/eslint-plugin": "^5.42.0",
    "@typescript-eslint/eslint-plugin-tslint": "^5.42.0",
    "@typescript-eslint/parser": "^5.42.0",
    "colors": "1.4.0",
    "commitizen": "^4.2.5",
    "coveralls": "3.1.1",
    "eslint": "^8.26.0",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-jsdoc": "^39.6.2",
    "eslint-plugin-prefer-arrow": "^1.2.3",
    "eslint-plugin-react": "^7.31.10",
    "husky": "^8.0.1",
    "jest": "^29.2.2",
    "jest-environment-jsdom": "^29.2.2",
    "lint-staged": "13.0.3",
    "prettier": "^2.7.1",
    "rimraf": "3.0.2",
    "rollup": "^2.68.0",
    "rollup-plugin-commonjs": "^10.1.0",
    "rollup-plugin-node-resolve": "^5.2.0",
    "rollup-plugin-sourcemaps": "0.6.3",
    "rollup-plugin-terser": "^7.0.2",
    "ts-jest": "^29.0.3",
    "ts-node": "10.9.1",
    "typescript": "4.8.4",
    "validate-commit-msg": "^1.1.3"
  }
}