1
0

package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "segmentit",
  3. "main": "dist/cjs",
  4. "module": "dist/esm/segmentit.js",
  5. "browser": "dist/umd/segmentit.js",
  6. "files": [
  7. "dist"
  8. ],
  9. "version": "2.0.3",
  10. "description": "Chinese word segmentation 中文分词模块 with browser && electron support",
  11. "keywords": [
  12. "segment",
  13. "chinese",
  14. "POS",
  15. "mlp",
  16. "中文",
  17. "electron",
  18. "浏览器",
  19. "browser",
  20. "nodejs",
  21. "分词"
  22. ],
  23. "homepage": "https://github.com/linonetwo/segmentit#readme",
  24. "bugs": {
  25. "url": "https://github.com/linonetwo/segmentit/issues"
  26. },
  27. "scripts": {
  28. "clean": "rimraf dist & rimraf build & rimraf coverage",
  29. "flow-typed": "rimraf flow-typed/npm && flow-typed install --overwrite || true",
  30. "lint": "eslint .",
  31. "lintfix": "eslint . --fix",
  32. "postlint": "npm run typecheck",
  33. "typecheck": "flow check",
  34. "test": "npm run test-only",
  35. "test-only": "jest --coverage",
  36. "test:watch": "jest --watch",
  37. "prepare": "npm run build",
  38. "prepublishOnly": "npm run test",
  39. "build": "NODE_ENV=production && npm run clean && rollup -c",
  40. "build:watch": "babel --watch src -d dist"
  41. },
  42. "authors": [
  43. "Lei Zongmin <leizongmin@gmail.com>",
  44. "Linonetwo <linonetwo012@gmail.com> (https://onetwo.ren/)"
  45. ],
  46. "contributors": [
  47. {
  48. "name": "Lei Zongmin",
  49. "email": "leizongmin@gmail.com"
  50. },
  51. {
  52. "name": "Linonetwo",
  53. "email": "linonetwo012@gmail.com"
  54. }
  55. ],
  56. "repository": {
  57. "type": "git",
  58. "url": "git://github.com/linonetwo/segmentit.git"
  59. },
  60. "browserslist": "> 0.25%, not dead",
  61. "jest": {
  62. "testEnvironment": "node",
  63. "moduleFileExtensions": [
  64. "js"
  65. ],
  66. "watchman": false,
  67. "coverageDirectory": "coverage",
  68. "collectCoverageFrom": [
  69. "src/**/*.js"
  70. ]
  71. },
  72. "dependencies": {
  73. "preval.macro": "^4.0.0"
  74. },
  75. "devDependencies": {
  76. "@babel/cli": "^7.7.7",
  77. "@babel/core": "^7.7.7",
  78. "@babel/plugin-proposal-class-properties": "^7.7.4",
  79. "@babel/plugin-transform-runtime": "^7.7.6",
  80. "@babel/preset-env": "^7.7.7",
  81. "@babel/preset-flow": "^7.7.4",
  82. "babel-eslint": "^10.0.3",
  83. "babel-jest": "^24.9.0",
  84. "babel-plugin-macros": "^2.8.0",
  85. "eslint": "^6.8.0",
  86. "eslint-config-airbnb": "^18.0.1",
  87. "eslint-plugin-compat": "^3.3.0",
  88. "eslint-plugin-flowtype": "~4.5.2",
  89. "eslint-plugin-import": "^2.19.1",
  90. "eslint-plugin-jsx-a11y": "^6.2.3",
  91. "eslint-plugin-promise": "^4.2.1",
  92. "eslint-plugin-react": "^7.17.0",
  93. "flow-bin": "^0.114.0",
  94. "flow-typed": "^2.6.2",
  95. "jest": "^24.9.0",
  96. "mocha": "^6.2.2",
  97. "rimraf": "^3.0.0",
  98. "rollup": "^1.27.13",
  99. "rollup-plugin-babel": "^4.3.3",
  100. "rollup-plugin-commonjs": "^10.1.0",
  101. "rollup-plugin-replace": "^2.2.0",
  102. "rollup-plugin-uglify": "^6.0.4",
  103. "should": "^13.2.3",
  104. "uglify-es": "^3.3.9"
  105. }
  106. }