package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "underscore",
  3. "description": "JavaScript's functional programming helper library.",
  4. "version": "1.13.2",
  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.0",
  67. "rollup": "^2.40.0",
  68. "terser": "^4.6.13"
  69. },
  70. "scripts": {
  71. "test": "npm run lint && npm run test-node",
  72. "coverage": "nyc npm run test-node && nyc report",
  73. "coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
  74. "lint": "eslint modules/*.js test/*.js",
  75. "test-node": "npm run prepare-tests && qunit test/",
  76. "test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
  77. "bundle": "rollup -c && eslint underscore-umd.js && rollup -c rollup.config2.js",
  78. "bundle-treeshake": "cd test-treeshake && rollup --config",
  79. "prepare-tests": "npm run bundle && npm run bundle-treeshake",
  80. "minify-umd": "terser underscore-umd.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
  81. "minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
  82. "build-umd": "npm run minify-umd -- --source-map content=underscore-umd.js.map --source-map-url \" \" -o underscore-umd-min.js",
  83. "build-esm": "npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
  84. "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 .",
  85. "build": "npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle",
  86. "doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst",
  87. "weight": "npm run bundle && npm run minify-umd | gzip-size | pretty-bytes",
  88. "prepublishOnly": "npm run build && npm run doc"
  89. },
  90. "files": [
  91. "underscore-esm.js",
  92. "underscore-esm.js.map",
  93. "underscore-esm-min.js",
  94. "underscore-esm-min.js.map",
  95. "underscore-umd.js",
  96. "underscore-umd.js.map",
  97. "underscore-umd-min.js",
  98. "underscore-umd-min.js.map",
  99. "underscore.js",
  100. "underscore-min.js",
  101. "underscore-min.js.map",
  102. "underscore-node-f.cjs",
  103. "underscore-node-f.cjs.map",
  104. "underscore-node.cjs",
  105. "underscore-node.cjs.map",
  106. "underscore-node.mjs",
  107. "underscore-node.mjs.map",
  108. "modules/",
  109. "amd/",
  110. "cjs/"
  111. ],
  112. "husky": {
  113. "hooks": {
  114. "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",
  115. "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"
  116. }
  117. }
  118. }