web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.6 KiB

  1. {
  2. "name": "web-vitals",
  3. "version": "1.1.1",
  4. "description": "Easily measure performance metrics in JavaScript",
  5. "main": "dist/web-vitals.umd.js",
  6. "module": "dist/web-vitals.js",
  7. "typings": "dist/modules/index.d.ts",
  8. "files": [
  9. "base.js",
  10. "base.d.ts",
  11. "dist",
  12. "src"
  13. ],
  14. "scripts": {
  15. "build": "run-s clean build:ts build:js",
  16. "build:ts": "tsc -b",
  17. "build:js": "rollup -c",
  18. "clean": "rm -rf dist tsconfig.tsbuildinfo",
  19. "dev": "run-p watch test:server",
  20. "lint": "eslint \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
  21. "lint:fix": "eslint --fix \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
  22. "postversion": "git push --follow-tags",
  23. "release:major": "npm version major -m 'Release v%s' && npm publish",
  24. "release:minor": "npm version minor -m 'Release v%s' && npm publish",
  25. "release:patch": "npm version patch -m 'Release v%s' && npm publish",
  26. "test": "npm-run-all build -p -r test:*",
  27. "test:e2e": "wdio wdio.conf.js",
  28. "test:server": "node test/server.js",
  29. "start": "run-p watch test:server",
  30. "watch": "run-p watch:*",
  31. "watch:ts": "tsc -b -w",
  32. "watch:js": "rollup -c -w",
  33. "version": "run-s build",
  34. "prepare": "husky install"
  35. },
  36. "keywords": [
  37. "crux",
  38. "performance",
  39. "metrics",
  40. "CLS",
  41. "FCP",
  42. "FID",
  43. "LCP",
  44. "TTFB"
  45. ],
  46. "author": {
  47. "name": "Philip Walton",
  48. "email": "philip@philipwalton.com",
  49. "url": "http://philipwalton.com"
  50. },
  51. "license": "Apache-2.0",
  52. "repository": {
  53. "type": "git",
  54. "url": "https://github.com/GoogleChrome/web-vitals.git"
  55. },
  56. "bugs": {
  57. "url": "https://github.com/GoogleChrome/web-vitals/issues"
  58. },
  59. "husky": {
  60. "hooks": {
  61. "pre-commit": "npm run lint"
  62. }
  63. },
  64. "devDependencies": {
  65. "@babel/core": "^7.13.10",
  66. "@babel/preset-env": "^7.13.10",
  67. "@rollup/plugin-replace": "^2.4.1",
  68. "@typescript-eslint/eslint-plugin": "^4.17.0",
  69. "@typescript-eslint/parser": "^4.17.0",
  70. "@wdio/cli": "^7.1.2",
  71. "@wdio/local-runner": "^7.1.2",
  72. "@wdio/mocha-framework": "^7.1.2",
  73. "@wdio/selenium-standalone-service": "^7.1.1",
  74. "@wdio/spec-reporter": "^7.1.1",
  75. "babel-eslint": "^10.1.0",
  76. "body-parser": "^1.19.0",
  77. "chromedriver": "^89.0.0",
  78. "eslint": "^7.22.0",
  79. "eslint-config-google": "^0.14.0",
  80. "express": "^4.17.1",
  81. "fs-extra": "^9.1.0",
  82. "husky": "^5.1.3",
  83. "npm-run-all": "^4.1.5",
  84. "nunjucks": "^3.2.3",
  85. "rollup": "^2.41.2",
  86. "rollup-plugin-babel": "^4.4.0",
  87. "rollup-plugin-terser": "^7.0.2",
  88. "typescript": "^4.2.3",
  89. "wdio-chromedriver-service": "^7.0.0"
  90. }
  91. }