package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "name": "polished",
  3. "version": "4.3.1",
  4. "description": "A lightweight toolset for writing styles in Javascript.",
  5. "license": "MIT",
  6. "author": "Brian Hough <hello@brianhough.co> (https://polished.js.org)",
  7. "homepage": "https://polished.js.org",
  8. "bugs": "https://github.com/styled-components/polished/issues",
  9. "repository": {
  10. "type": "git",
  11. "url": "git+https://github.com/styled-components/polished.git"
  12. },
  13. "keywords": [
  14. "styled-components",
  15. "polished",
  16. "emotion",
  17. "glamor",
  18. "css-in-js",
  19. "inline-styles",
  20. "react",
  21. "flow",
  22. "typescript",
  23. "color manipulate",
  24. "color manipulation",
  25. "curried color manipulation",
  26. "color",
  27. "colour"
  28. ],
  29. "main": "dist/polished.cjs.js",
  30. "module": "dist/polished.esm.js",
  31. "types": "lib/index.d.ts",
  32. "sideEffects": false,
  33. "scripts": {
  34. "build": "yarn build:lib && yarn build:dist && yarn build:flow && yarn build:docs && yarn build:typescript",
  35. "prebuild:lib": "shx rm -rf lib/*",
  36. "build:lib": "cross-env BABEL_ENV=cjs babel --out-dir lib src --ignore test.js",
  37. "prebuild:umd": "shx rm -rf dist/*",
  38. "prebuild:dist": "shx rm -rf dist/*",
  39. "build:dist": "rollup -c",
  40. "build:docs": "yarn build:docs:site",
  41. "prebuild:docs:site": "shx rm -rf docs/*",
  42. "build:docs:site": "documentation build src/** -t docs-theme --github -o docs -f html -c ./.documentation.json",
  43. "postbuild:docs:site": "shx cp CNAME docs/CNAME && shx cp dist/polished.js docs/assets/",
  44. "build:watch": "npm-watch",
  45. "build:flow": "flow-copy-source -v -i '{**/test/*.js,**/*.test.js}' src lib",
  46. "build:typescript": "tsgen \"lib/**/*.js.flow\" --ignore \"lib/**/_*.js.flow\"",
  47. "test": "jest src",
  48. "typescript": "tsc ./typescript-test.ts --noEmit --target es6 --module es2015 --moduleResolution node --allowJs",
  49. "lint": "eslint src",
  50. "flow": "flow check && flow batch-coverage src/ --show-all --strip-root",
  51. "docs": "pushstate-server -d docs",
  52. "prepare": "yarn build && yarn typescript && husky install",
  53. "semantic-release": "semantic-release"
  54. },
  55. "lint-staged": {
  56. "src/**/*.js": [
  57. "prettier --write",
  58. "eslint --fix"
  59. ]
  60. },
  61. "watch": {
  62. "build:docs": "src/**/*.js",
  63. "build:lib": "src/**/*.js"
  64. },
  65. "dependencies": {
  66. "@babel/runtime": "^7.17.8"
  67. },
  68. "devDependencies": {
  69. "@babel/cli": "^7.17.6",
  70. "@babel/core": "^7.17.8",
  71. "@babel/eslint-parser": "^7.17.0",
  72. "@babel/plugin-transform-runtime": "^7.17.0",
  73. "@babel/polyfill": "^7.12.1",
  74. "@babel/preset-env": "^7.16.11",
  75. "@babel/preset-flow": "^7.16.7",
  76. "@rollup/plugin-babel": "^5.3.1",
  77. "@rollup/plugin-node-resolve": "^13.1.3",
  78. "@rollup/plugin-replace": "^4.0.0",
  79. "babel-eslint": "^10.1.0",
  80. "babel-jest": "^27.5.1",
  81. "babel-plugin-add-module-exports": "^1.0.2",
  82. "babel-plugin-preval": "5.1.0",
  83. "cross-env": "^7.0.3",
  84. "cz-conventional-changelog": "^3.1.0",
  85. "documentation": "12.3.0",
  86. "eslint": "^8.56.0",
  87. "eslint-config-airbnb-base": "^15.0.0",
  88. "eslint-plugin-import": "^2.29.1",
  89. "flow-bin": "^0.133.0",
  90. "flow-copy-source": "^2.0.8",
  91. "husky": "^7.0.4",
  92. "jest": "^27.5.1",
  93. "lint-staged": "^12.3.7",
  94. "npm-watch": "^0.11.0",
  95. "prettier": "^3.2.4",
  96. "pushstate-server": "^3.1.0",
  97. "ramda": "^0.29.1",
  98. "rollup": "^2.70.1",
  99. "rollup-plugin-sourcemaps": "^0.6.3",
  100. "rollup-plugin-terser": "^7.0.2",
  101. "semantic-release": "^19.0.2",
  102. "shx": "^0.3.4",
  103. "tsgen": "1.3.0",
  104. "typescript": "4.6.3",
  105. "validate-commit-msg": "^2.14.0"
  106. },
  107. "config": {
  108. "commitizen": {
  109. "path": "./node_modules/cz-conventional-changelog"
  110. }
  111. },
  112. "jest": {
  113. "coverageDirectory": "./coverage/",
  114. "collectCoverage": true,
  115. "testURL": "http://localhost/",
  116. "verbose": true,
  117. "testEnvironment": "jsdom"
  118. },
  119. "collective": {
  120. "type": "opencollective",
  121. "url": "https://opencollective.com/polished"
  122. },
  123. "engines": {
  124. "node": ">=10"
  125. }
  126. }