Skip to content
Myr

package.json

This file

Path

package.json

96 lines · 2.8 KiB · JSON

Last changed by

update depsJason Millerbefore adoptiondbd661a

History of this file

Take it

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 1–2
1{
2 "name": "mitt",

1.2.0Jason Millerbefore adoptiona4e20b1

line 3why, one step back
3 "version": "1.2.0",

Update docs.Jason Millerbefore adoption07f8819

line 4why, one step back
4 "description": "Tiny 200b functional Event Emitter / pubsub.",

fix(builds): point `jsnext:main` to the ESM build instead of src, which contains things like Flowtype annotations that are not stripped by most build toolsJason Millerbefore adoption0cad092

line 5why, one step back
5 "jsnext:main": "dist/mitt.es.js",

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 6why, one step back
6 "module": "dist/mitt.es.js",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 7–9
7 "main": "dist/mitt.js",
8 "umd:main": "dist/mitt.umd.js",9 "scripts": {

Add Standard Version for Semantic Releases (#43)Abhi Aiyerbefore adoptiond728e90

line 10why, one step back
10 "bump": "standard-version",

fix test runnerJason Millerbefore adoption80bbdbe

line 11why, one step back
11 "testonly": "mocha --require esm --require flow-remove-types/register test/**/*.js",

Add Standard Version for Semantic Releases (#43)Abhi Aiyerbefore adoptiond728e90

lines 12–13why, one step back
12 "lint": "eslint src test",
13 "test": "flow && npm run lint && npm run testonly",

Make npm-run-all silentJason Millerbefore adoptionae433c2

line 14why, one step back
14 "build": "npm-run-all --silent clean -p rollup -p minify:* -s docs size",

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

lines 15–16why, one step back
15 "clean": "rimraf dist",
16 "rollup": "rollup -c",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 17–20
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)\"",

Add Standard Version for Semantic Releases (#43)Abhi Aiyerbefore adoptiond728e90

line 21why, one step back
21 "release": "npm run build -s && npm run bump && git push --follow-tags origin master && npm publish"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 22–28
22 },
23 "repository": "developit/mitt",24 "keywords": [25 "events",26 "eventemitter",27 "pubsub"28 ],

Merge branch 'master' into refactorCharlike Mike Reagentbefore adoption70e8ad1

line 29why, one step back
29 "homepage": "https://github.com/developit/mitt",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 30–35
30 "authors": [
31 "Jason Miller <jason@developit.ca>"32 ],33 "license": "MIT",34 "files": [35 "src",

Typescript definitions (#25)Severinbefore adoptiond63b350

lines 36–37why, one step back
36 "dist",
37 "mitt.d.ts"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 38
38 ],

Clean up repo rootJason Millerbefore adoption4a8e0a5

lines 39–47why, one step back
39 "babel": {
40 "presets": [41 "es2015",42 "stage-0"43 ],44 "plugins": [45 "transform-flow-strip-types"46 ]47 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 48–49
48 "eslintConfig": {
49 "extends": "eslint:recommended",

update depsJason Millerbefore adoptiondbd661a

lines 50–53why, one step back
50 "parser": "babel-eslint",
51 "parserOptions": {52 "sourceType": "module"53 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 54–60
54 "env": {
55 "browser": true,56 "mocha": true,57 "es6": true58 },59 "globals": {60 "expect": true

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

lines 61–62why, one step back
61 },
62 "rules": {

Add Standard Version for Semantic Releases (#43)Abhi Aiyerbefore adoptiond728e90

lines 63–66why, one step back
63 "semi": [
64 2,65 "always"66 ]

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 67–68
67 }
68 },

Typescript definitions (#25)Severinbefore adoptiond63b350

line 69why, one step back
69 "typings": "./mitt.d.ts",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 70–71
70 "devDependencies": {
71 "babel-core": "^6.9.1",

update depsJason Millerbefore adoptiondbd661a

line 72why, one step back
72 "babel-eslint": "^10.0.3",

Add Flow type annotations (#23)Brandon Dailbefore adoption377d6f4

line 73why, one step back
73 "babel-plugin-transform-flow-strip-types": "^6.21.0",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 74–77
74 "babel-preset-es2015": "^6.9.0",
75 "babel-preset-stage-0": "^6.5.0",76 "chai": "^3.5.0",77 "documentation": "^4.0.0-beta4",

update depsJason Millerbefore adoptiondbd661a

line 78why, one step back
78 "eslint": "^6.5.1",

fix test runnerJason Millerbefore adoption80bbdbe

line 79why, one step back
79 "esm": "^3.2.25",

Add Flow type annotations (#23)Brandon Dailbefore adoption377d6f4

line 80why, one step back
80 "flow-bin": "^0.38.0",

use reify to run test (#52)Thiago Santosbefore adoptionb80768f

line 81why, one step back
81 "flow-remove-types": "^1.2.0",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 82–84
82 "gzip-size-cli": "^1.0.0",
83 "mocha": "^3.2.0",84 "npm-run-all": "^2.1.1",

Merge pull request #7 from svincent/pretty-bytesJason Millerbefore adoption8058961

line 85why, one step back
85 "pretty-bytes-cli": "^2.0.0",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 86–88
86 "rimraf": "^2.5.2",
87 "rollup": "^0.41.4",88 "rollup-plugin-buble": "^0.15.0",

Add Flow type annotations (#23)Brandon Dailbefore adoption377d6f4

line 89why, one step back
89 "rollup-plugin-flow": "^1.1.1",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 90–91
90 "sinon": "^1.17.4",
91 "sinon-chai": "^2.8.0",

Add Standard Version for Semantic Releases (#43)Abhi Aiyerbefore adoptiond728e90

line 92why, one step back
92 "standard-version": "^4.0.0",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 93–96
93 "strip-json-comments-cli": "^1.0.1",
94 "uglify-js": "^2.6.2"95 }96}