899b05d508236f21b8dbc28e9fa3a2ac317ab4f73fc3139066a06edda9dec46666c67843a2dca62b33564c32a21308614b577470e36277bae5be347216e350 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "name": "@jiaminghi/color",
  3. "version": "1.1.3",
  4. "author": "JiaMing <743192023@qq.com>",
  5. "description": "Color extension",
  6. "main": "cjs/index.js",
  7. "unpkg": "umd/color.umd.js",
  8. "module": "es/index.mjs",
  9. "types": "es/index.d.ts",
  10. "repository": {
  11. "type": "git",
  12. "url": "https://github.com/DataV-Team/Color.git"
  13. },
  14. "scripts": {
  15. "prepare": "husky install",
  16. "dev": "ts-node scripts/dev/init.ts && vite --config scripts/dev/vite.config.ts",
  17. "clear": "rm es cjs umd -rf",
  18. "build": "yarn clear && yarn build:es && yarn build:umd",
  19. "build:es": "vite build --config scripts/build/vite.config.ts",
  20. "build:umd": "vite build --config scripts/build/vite.config.umd.ts",
  21. "check": "yarn lint && yarn lint:type && yarn lint:format && yarn test",
  22. "lint": "eslint --ext js,ts src test",
  23. "lint:type": "tsc --project ./tsconfig.json --noEmit",
  24. "lint:format": "prettier --check \"src/**/*.ts\"",
  25. "format": "prettier --write \"src/**/*.ts\"",
  26. "test": "mocha",
  27. "version:test": "ts-node scripts/release/version-generator --type=test"
  28. },
  29. "files": [
  30. "es",
  31. "cjs",
  32. "umd"
  33. ],
  34. "husky": {
  35. "hooks": {
  36. "pre-commit": "yarn run check",
  37. "pre-push": "yarn run check"
  38. }
  39. },
  40. "license": "MIT",
  41. "bugs": {
  42. "url": "https://github.com/DataV-Team/Color/issues"
  43. },
  44. "keywords": [
  45. "color",
  46. "hex",
  47. "rgb",
  48. "rgba",
  49. "darken",
  50. "lighten"
  51. ],
  52. "homepage": "https://github.com/DataV-Team/Color#readme",
  53. "devDependencies": {
  54. "@types/chai": "^4.2.11",
  55. "@types/mocha": "^7.0.2",
  56. "@types/node": "^18.7.18",
  57. "@types/prettier": "^2.7.2",
  58. "@types/semver": "^7.3.13",
  59. "@typescript-eslint/eslint-plugin": "^5.36.1",
  60. "@typescript-eslint/parser": "^5.36.1",
  61. "@vitejs/plugin-react": "^3.0.0",
  62. "chai": "^4.2.0",
  63. "eslint": "^8.23.0",
  64. "eslint-plugin-import": "^2.26.0",
  65. "fs-extra": "^11.1.0",
  66. "husky": "^8.0.2",
  67. "less": "^4.1.3",
  68. "mocha": "^6.2.3",
  69. "ora": "5.4.1",
  70. "prettier": "^2.0.4",
  71. "react": "^18.2.0",
  72. "react-dom": "^18.2.0",
  73. "semver": "^7.3.8",
  74. "ts-node": "^8.8.2",
  75. "typescript": "^4.8.3",
  76. "vite": "^4.0.0",
  77. "vite-plugin-dts": "^1.7.1"
  78. }
  79. }