UNPKG

perf-marks

Version:

The simplest and lightweight solution for User Timing API in Javascript.

141 lines (140 loc) 4.12 kB
{ "name": "perf-marks", "version": "1.14.2", "author": "Will Mendes <willmendesneto@gmail.com>", "description": "The simplest and lightweight solution for User Timing API in Javascript.", "repository": { "type": "git", "url": "https://github.com/willmendesneto/perf-marks.git" }, "sideEffects": false, "license": "MIT", "browser": "dist/umd/perf-marks.js", "jsnext:main": "dist/esm/index.js", "module": "dist/esm/index.js", "main": "dist/cjs/index.js", "es2015": "dist/es2015/index.js", "es2020": "dist/es2020/index.js", "cjs": "dist/cjs/index.js", "types": "dist/cjs/index.d.ts", "keywords": [ "perf-marks", "performance", "user timing api", "timing", "api" ], "dependencies": { "tslib": "^2.1.0" }, "devDependencies": { "@types/jest": "^26.0.20", "@types/node": "^14.14.27", "@typescript-eslint/eslint-plugin": "^4.15.0", "@typescript-eslint/parser": "^4.15.0", "bundlesize": "^0.18.1", "changelog-verify": "^1.1.0", "coveralls": "^3.1.0", "depcheck": "^1.2.0", "eslint": "^7.19.0", "eslint-config-prettier": "^7.2.0", "eslint-plugin-compat": "^3.9.0", "eslint-plugin-prettier": "^3.3.1", "husky": "^5.0.9", "jest": "^26.4.2", "jsdom": "^16.4.0", "lint-staged": "^10.5.4", "npm-run-all": "^4.1.5", "prettier": "^2.1.2", "rollup": "^2.39.0", "rollup-plugin-node-resolve": "^5.2.0", "ts-jest": "^26.5.1", "ts-node": "^9.0.0", "typescript": "^4.1.5", "typings": "^2.1.1", "uglify-js": "^3.12.7", "usertiming": "^0.1.8", "version-changelog": "^3.1.0" }, "engines": { "node": ">=12" }, "scripts": { "compile": "tsc", "clean": "rm -rf ./dist ./.jest ./coverage ./lib", "build": "yarn clean && npm-run-all --parallel build:es2015 build:cjs build:esm build:es2020 && yarn build:umd", "build:umd": "rollup --config && yarn build:umd:min", "build:umd:min": "uglifyjs --compress --mangle --comments -o dist/umd/perf-marks.min.js -- dist/umd/perf-marks.js && gzip dist/umd/perf-marks.min.js -c > dist/umd/perf-marks.min.js.gz", "build:es2020": "tsc --module esnext --target es2020 --outDir dist/es2020", "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", "build:esm": "tsc --module esnext --target es5 --outDir dist/esm", "build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs", "depcheck": "depcheck", "test": "jest", "pretest:ci": "yarn lint && yarn depcheck", "test:ci": "jest --coverage --coverageReporters=text-lcov | coveralls", "check-coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage", "bundlesize": "bundlesize", "lint": "eslint '{scripts,src}/**/*.[tj]s'", "lint:fix": "prettier --no-editorconfig --write", "version": "version-changelog CHANGELOG.md && changelog-verify CHANGELOG.md && git add CHANGELOG.md" }, "bundlesize": [ { "path": "./dist/esm/index.js", "maxSize": "132B" }, { "path": "./dist/es2015/index.js", "maxSize": "132B" }, { "path": "./dist/cjs/index.js", "maxSize": "224B" }, { "path": "./dist/umd/perf-marks.js", "maxSize": "3.5KB" }, { "path": "./dist/umd/perf-marks.min.js", "maxSize": "1.44KB" }, { "path": "./dist/cjs/entrypoints/marks.js", "maxSize": "167B" }, { "path": "./dist/cjs/entrypoints/entries.js", "maxSize": "167B" }, { "path": "./dist/cjs/entrypoints/utils.js", "maxSize": "205B" }, { "path": "./dist/cjs/entrypoints/profiler.js", "maxSize": "167B" } ], "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,ts}": [ "prettier --no-editorconfig --write", "git add" ] }, "browserslist": [ "last 1 chrome versions", "last 1 edge versions", "last 1 firefox versions", "last 1 safari versions", "last 1 and_chr versions", "last 1 ios_saf versions", "ie 11" ] }