package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "name": "underscore",
  3. "description": "JavaScript's functional programming helper library.",
  4. "version": "1.13.3",
  5. "author": "Jeremy Ashkenas <jeremy@documentcloud.org>",
  6. "license": "MIT",
  7. "homepage": "https://underscorejs.org",
  8. "repository": {
  9. "type": "git",
  10. "url": "git://github.com/jashkenas/underscore.git"
  11. },
  12. "keywords": [
  13. "util",
  14. "functional",
  15. "server",
  16. "client",
  17. "browser"
  18. ],
  19. "main": "underscore-umd.js",
  20. "module": "modules/index-all.js",
  21. "type": "commonjs",
  22. "exports": {
  23. ".": {
  24. "import": {
  25. "module": "./modules/index-all.js",
  26. "browser": {
  27. "production": "./underscore-esm-min.js",
  28. "default": "./underscore-esm.js"
  29. },
  30. "node": "./underscore-node.mjs",
  31. "default": "./underscore-esm.js"
  32. },
  33. "require": {
  34. "browser": {
  35. "production": "./underscore-umd-min.js",
  36. "default": "./underscore-umd.js"
  37. },
  38. "node": "./underscore-node.cjs",
  39. "default": "./underscore-umd.js"
  40. },
  41. "default": "./underscore-umd.js"
  42. },
  43. "./underscore*": "./underscore*",
  44. "./modules/*": {
  45. "require": "./cjs/*",
  46. "default": "./modules/*"
  47. },
  48. "./amd/*": "./amd/*",
  49. "./cjs/*": "./cjs/*",
  50. "./package.json": "./package.json"
  51. },
  52. "devDependencies": {
  53. "coveralls": "^2.11.2",
  54. "cpy-cli": "^3.1.1",
  55. "docco": "^0.8.0",
  56. "eslint": "^6.8.0",
  57. "eslint-plugin-import": "^2.20.1",
  58. "glob": "^7.1.6",
  59. "gzip-size-cli": "^1.0.0",
  60. "husky": "^4.2.3",
  61. "karma": "^0.13.13",
  62. "karma-qunit": "~2.0.1",
  63. "karma-sauce-launcher": "^1.2.0",
  64. "nyc": "^2.1.3",
  65. "pretty-bytes-cli": "^1.0.0",
  66. "qunit": "2.10.1",
  67. "rollup": "^2.40.0",
  68. "terser": "^4.6.13"
  69. },
  70. "overrides": {
  71. "colors@>1.4.0": "1.4.0"
  72. },
  73. "scripts": {
  74. "test": "npm run lint && npm run test-node",
  75. "coverage": "nyc npm run test-node && nyc report",
  76. "coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
  77. "lint": "eslint modules/*.js test/*.js",
  78. "test-node": "npm run prepare-tests && qunit test/",
  79. "test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
  80. "bundle": "rollup -c && eslint underscore-umd.js && rollup -c rollup.config2.js",
  81. "bundle-treeshake": "cd test-treeshake && rollup --config",
  82. "prepare-tests": "npm run bundle && npm run bundle-treeshake",
  83. "minify-umd": "terser underscore-umd.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
  84. "minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
  85. "build-umd": "npm run minify-umd -- --source-map content=underscore-umd.js.map --source-map-url \" \" -o underscore-umd-min.js",
  86. "build-esm": "npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
  87. "alias-bundle": "cpy --rename=underscore.js underscore-umd.js . && cpy --rename=underscore-min.js underscore-umd-min.js . && cpy --rename=underscore-min.js.map underscore-umd-min.js.map .",
  88. "build": "npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle",
  89. "doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst",
  90. "weight": "npm run bundle && npm run minify-umd | gzip-size | pretty-bytes",
  91. "prepublishOnly": "npm run build && npm run doc"
  92. },
  93. "files": [
  94. "underscore-esm.js",
  95. "underscore-esm.js.map",
  96. "underscore-esm-min.js",
  97. "underscore-esm-min.js.map",
  98. "underscore-umd.js",
  99. "underscore-umd.js.map",
  100. "underscore-umd-min.js",
  101. "underscore-umd-min.js.map",
  102. "underscore.js",
  103. "underscore-min.js",
  104. "underscore-min.js.map",
  105. "underscore-node-f.cjs",
  106. "underscore-node-f.cjs.map",
  107. "underscore-node.cjs",
  108. "underscore-node.cjs.map",
  109. "underscore-node.mjs",
  110. "underscore-node.mjs.map",
  111. "modules/",
  112. "amd/",
  113. "cjs/"
  114. ],
  115. "husky": {
  116. "hooks": {
  117. "pre-commit": "npm run bundle && git add underscore-umd.js underscore-umd.js.map underscore-esm.js underscore-esm.js.map underscore-node-f.cjs underscore-node-f.cjs.map underscore-node.cjs underscore-node.cjs.map underscore-node.mjs underscore-node.mjs.map",
  118. "post-commit": "git reset underscore-umd.js underscore-umd.js.map underscore-esm.js underscore-esm.js.map underscore-node-f.cjs underscore-node-f.cjs.map underscore-node.cjs underscore-node.cjs.map underscore-node.mjs underscore-node.mjs.map"
  119. }
  120. }
  121. }