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.

119 lines
4.1 KiB

  1. {
  2. "name": "@popperjs/core",
  3. "version": "2.11.5",
  4. "description": "Tooltip and Popover Positioning Engine",
  5. "main": "dist/cjs/popper.js",
  6. "main:umd": "dist/umd/popper.js",
  7. "module": "lib/index.js",
  8. "unpkg": "dist/umd/popper.min.js",
  9. "author": "Federico Zivolo <federico.zivolo@gmail.com>",
  10. "license": "MIT",
  11. "repository": "github:popperjs/popper-core",
  12. "keywords": [
  13. "tooltip",
  14. "popover",
  15. "dropdown",
  16. "popup",
  17. "popper",
  18. "positioning engine"
  19. ],
  20. "funding": {
  21. "type": "opencollective",
  22. "url": "https://opencollective.com/popperjs"
  23. },
  24. "files": [
  25. "index.d.ts",
  26. "/dist",
  27. "/lib"
  28. ],
  29. "sideEffects": false,
  30. "scripts": {
  31. "clean": "rimraf lib && rimraf dist && rimraf test/visual/dist",
  32. "test": "yarn test:unit && yarn test:functional",
  33. "test:unit": "jest --coverage src",
  34. "test:functional": "DEV_PORT=`get-port` jest tests/functional",
  35. "test:flow": "flow",
  36. "test:typescript": "tsc --project tests/typescript/tsconfig.json",
  37. "test:eslint": "eslint .",
  38. "dev": "NODE_ENV=dev concurrently 'yarn serve' 'yarn build:dev --watch'",
  39. "serve": "serve -l ${DEV_PORT:-5000} tests/visual",
  40. "build": "yarn clean && yarn build:es && yarn build:esbrowser && yarn build:bundles && yarn build:flow && yarn build:typescript",
  41. "build:es": "babel src -d lib --ignore '**/*.test.js','**/__mocks__'",
  42. "build:esbrowser": "BROWSER_COMPAT=true yarn build:es -d dist/esm",
  43. "build:bundles": "rollup -c .config/rollup.config.js",
  44. "build:dev": "NODE_ENV=dev babel src -d tests/visual/dist",
  45. "build:flow": "flow-copy-source --ignore \"**/*.test.js\" src lib && replace-in-files --string=__DEV__ --replacement=false 'lib/**/*.flow'",
  46. "build:typescript": "rimraf dist/typescript; flow-to-ts \"src/**/*.js\" --write --inline-utility-types; tsc-silent --project .config/tsconfig.json --createSourceFile .config/createSourceFile.js --suppress @; rimraf \"src/**/*.ts\"",
  47. "prepublishOnly": "yarn build && pinst --disable",
  48. "prepare": "husky install .config/husky",
  49. "postpublish": "pinst --enable"
  50. },
  51. "prettier": {
  52. "semi": true,
  53. "trailingComma": "es5",
  54. "singleQuote": true,
  55. "proseWrap": "always"
  56. },
  57. "babel": {
  58. "extends": "./.config/babel.config"
  59. },
  60. "jest": {
  61. "preset": "./.config/jest.config"
  62. },
  63. "eslintConfig": {
  64. "extends": "./.config/eslint.config"
  65. },
  66. "husky": {
  67. "hooks": {
  68. "pre-commit": "pretty-quick --staged"
  69. }
  70. },
  71. "devDependencies": {
  72. "@ampproject/rollup-plugin-closure-compiler": "^0.26.0",
  73. "@atomico/rollup-plugin-sizes": "^1.1.4",
  74. "@babel/cli": "^7.12.17",
  75. "@babel/core": "^7.12.17",
  76. "@babel/plugin-transform-flow-strip-types": "^7.12.13",
  77. "@babel/plugin-transform-runtime": "^7.12.17",
  78. "@babel/preset-env": "^7.12.17",
  79. "@fezvrasta/tsc-silent": "^1.3.0",
  80. "@khanacademy/flow-to-ts": "^0.3.0",
  81. "@rollup/plugin-babel": "^5.3.0",
  82. "@rollup/plugin-replace": "^2.3.4",
  83. "babel-eslint": "^10.0.3",
  84. "babel-jest": "^26.6.3",
  85. "babel-plugin-add-import-extension": "^1.4.4",
  86. "babel-plugin-annotate-pure-calls": "^0.4.0",
  87. "babel-plugin-dev-expression": "^0.2.2",
  88. "babel-plugin-inline-replace-variables": "^1.3.1",
  89. "babel-plugin-transform-inline-environment-variables": "^0.4.3",
  90. "concurrently": "^5.3.0",
  91. "dotenv": "^8.2.0",
  92. "eslint": "^7.20.0",
  93. "eslint-plugin-flowtype": "^5.2.2",
  94. "eslint-plugin-import": "^2.22.1",
  95. "eslint-plugin-unused-imports": "^1.1.0",
  96. "flow-bin": "^0.139.0",
  97. "flow-copy-source": "^2.0.9",
  98. "get-port-cli": "^2.0.0",
  99. "husky": "^5.0.9",
  100. "jest": "^26.6.3",
  101. "jest-environment-jsdom-sixteen": "^1.0.3",
  102. "jest-environment-puppeteer": "^4.4.0",
  103. "jest-image-snapshot": "^4.3.0",
  104. "jest-puppeteer": "^4.4.0",
  105. "pinst": "^2.1.4",
  106. "poster": "^0.0.9",
  107. "prettier": "^2.2.1",
  108. "pretty-quick": "^3.1.0",
  109. "puppeteer": "^10.4.0",
  110. "replace-in-files-cli": "^1.0.0",
  111. "rollup": "^2.39.0",
  112. "rollup-plugin-flow-entry": "^0.3.3",
  113. "rollup-plugin-license": "^2.2.0",
  114. "rollup-plugin-terser": "^7.0.2",
  115. "rollup-plugin-visualizer": "^4.2.0",
  116. "serve": "^11.3.2",
  117. "typescript": "^4.1.5"
  118. }
  119. }