package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "mitt",
  3. "version": "1.2.0",
  4. "description": "Tiny 200b functional Event Emitter / pubsub.",
  5. "jsnext:main": "dist/mitt.es.js",
  6. "module": "dist/mitt.es.js",
  7. "main": "dist/mitt.js",
  8. "umd:main": "dist/mitt.umd.js",
  9. "scripts": {
  10. "bump": "standard-version",
  11. "testonly": "mocha --require esm --require flow-remove-types/register test/**/*.js",
  12. "lint": "eslint src test",
  13. "test": "flow && npm run lint && npm run testonly",
  14. "build": "npm-run-all --silent clean -p rollup -p minify:* -s docs size",
  15. "clean": "rimraf dist",
  16. "rollup": "rollup -c",
  17. "minify:cjs": "uglifyjs $npm_package_main -cm toplevel -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map",
  18. "minify:umd": "uglifyjs $npm_package_umd_main -cm -o $npm_package_umd_main -p relative --in-source-map ${npm_package_umd_main}.map --source-map ${npm_package_umd_main}.map",
  19. "docs": "documentation readme src/index.js --section API -q",
  20. "size": "echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size | pretty-bytes)\"",
  21. "release": "npm run build -s && npm run bump && git push --follow-tags origin master && npm publish"
  22. },
  23. "repository": "developit/mitt",
  24. "keywords": [
  25. "events",
  26. "eventemitter",
  27. "pubsub"
  28. ],
  29. "homepage": "https://github.com/developit/mitt",
  30. "authors": [
  31. "Jason Miller <jason@developit.ca>"
  32. ],
  33. "license": "MIT",
  34. "files": [
  35. "src",
  36. "dist",
  37. "mitt.d.ts"
  38. ],
  39. "babel": {
  40. "presets": [
  41. "es2015",
  42. "stage-0"
  43. ],
  44. "plugins": [
  45. "transform-flow-strip-types"
  46. ]
  47. },
  48. "eslintConfig": {
  49. "parser": "babel-eslint",
  50. "extends": "eslint:recommended",
  51. "env": {
  52. "browser": true,
  53. "mocha": true,
  54. "es6": true
  55. },
  56. "globals": {
  57. "expect": true
  58. },
  59. "rules": {
  60. "semi": [
  61. 2,
  62. "always"
  63. ]
  64. }
  65. },
  66. "typings": "./mitt.d.ts",
  67. "devDependencies": {
  68. "babel-core": "^6.9.1",
  69. "babel-eslint": "^7.1.1",
  70. "babel-plugin-transform-flow-strip-types": "^6.21.0",
  71. "babel-preset-es2015": "^6.9.0",
  72. "babel-preset-stage-0": "^6.5.0",
  73. "chai": "^3.5.0",
  74. "documentation": "^4.0.0-beta4",
  75. "eslint": "^3.13.1",
  76. "esm": "^3.2.25",
  77. "flow-bin": "^0.38.0",
  78. "flow-remove-types": "^1.2.0",
  79. "gzip-size-cli": "^1.0.0",
  80. "mocha": "^3.2.0",
  81. "npm-run-all": "^2.1.1",
  82. "pretty-bytes-cli": "^2.0.0",
  83. "rimraf": "^2.5.2",
  84. "rollup": "^0.41.4",
  85. "rollup-plugin-buble": "^0.15.0",
  86. "rollup-plugin-flow": "^1.1.1",
  87. "sinon": "^1.17.4",
  88. "sinon-chai": "^2.8.0",
  89. "standard-version": "^4.0.0",
  90. "strip-json-comments-cli": "^1.0.1",
  91. "uglify-js": "^2.6.2"
  92. },
  93. "__npminstall_done": true,
  94. "_from": "mitt@1.2.0",
  95. "_resolved": "https://registry.npmmirror.com/mitt/-/mitt-1.2.0.tgz"
  96. }