package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "collect.js",
  3. "version": "4.36.1",
  4. "description": "Convenient and dependency free wrapper for working with arrays and objects.",
  5. "main": "dist/index.js",
  6. "typings": "index.d.ts",
  7. "scripts": {
  8. "all": "npm run build && npm test && npm run eslint && npm run validate-version",
  9. "pretest": "npm run transpile",
  10. "test": "mocha test/tests.js",
  11. "transpile": "rm -rf dist && babel src --quiet --out-dir dist",
  12. "readme": "node bundler/bundle.js",
  13. "bundle.development": "webpack-cli dist/index.js --output build/collect.js --mode development --output-library collect",
  14. "bundle.production": "webpack-cli dist/index.js --output build/collect.min.js --mode production --output-library collect",
  15. "build": "npm run transpile && npm run bundle.development && npm run bundle.production && npm run readme",
  16. "eslint": "npm run eslint:fix",
  17. "eslint:fix": "npm run eslint:js -- --fix && npm run eslint:md -- --fix",
  18. "eslint:strict": "npm run eslint:js && npm run eslint:md",
  19. "eslint:js": "eslint src/ test/",
  20. "eslint:md": "eslint --ext md README.md docs/ --rule strict:off --rule no-undef:off --rule no-unused-vars:off --rule func-names:off --rule no-console:off --rule consistent-return:off --rule import/no-unresolved:off --rule import/extensions:off --parser-options sourceType:module",
  21. "coverage": "npm run transpile && nyc mocha test/tests.js",
  22. "reporter": "nyc report --reporter=html",
  23. "docs:dev": "vuepress dev docs",
  24. "docs:build": "vuepress build docs",
  25. "validate-version": "",
  26. "prepublishOnly": "npm run all"
  27. },
  28. "babel": {
  29. "presets": [
  30. "@babel/preset-env"
  31. ]
  32. },
  33. "repository": {
  34. "type": "git",
  35. "url": "https://github.com/ecrmnn/collect.js"
  36. },
  37. "keywords": [
  38. "collections",
  39. "collection",
  40. "collect",
  41. "map",
  42. "filter",
  43. "group by",
  44. "reduce",
  45. "transform",
  46. "pluck",
  47. "pie",
  48. "mapWithKeys",
  49. "laravel",
  50. "whereIn",
  51. "values",
  52. "unique"
  53. ],
  54. "author": {
  55. "name": "Daniel Eckermann",
  56. "email": "danieleckermann@gmail.com",
  57. "url": "https://danieleckermann.com"
  58. },
  59. "license": "MIT",
  60. "bugs": {
  61. "url": "https://github.com/ecrmnn/collect.js/issues"
  62. },
  63. "homepage": "https://github.com/ecrmnn/collect.js",
  64. "devDependencies": {
  65. "@babel/cli": "^7.17.10",
  66. "@babel/core": "^7.18.2",
  67. "@babel/polyfill": "^7.12.1",
  68. "@babel/preset-env": "^7.18.2",
  69. "benchmark": "^2.1.0",
  70. "chai": "^4.1.2",
  71. "eslint": "^4.19.1",
  72. "eslint-config-airbnb-base": "^13.2.0",
  73. "eslint-plugin-import": "^2.18.0",
  74. "eslint-plugin-markdown": "^1.0.0",
  75. "hoax.js": "^1.0.0",
  76. "mocha": "^3.5.2",
  77. "nyc": "^11.0.2",
  78. "webpack": "^4.36.1",
  79. "webpack-cli": "^3.3.6"
  80. }
  81. }