UNPKG

@actualwave/event-dispatcher

Version:

EventDispatcher is a JavaScript class that adds events support to custom objects.

106 lines (105 loc) 2.67 kB
{ "name": "@actualwave/event-dispatcher", "description": "EventDispatcher is a JavaScript class that adds events support to custom objects.", "version": "1.3.3", "type": "module", "main": "index.js", "types": "index.d.ts", "keywords": [ "event", "events", "object", "dispatch", "fire", "subscribe", "handle", "listener", "dispatcher", "addEventListener", "removeEventListener", "dispatchEvent" ], "homepage": "https://github.com/burdiuz/js-event-dispatcher", "bugs": { "url": "https://github.com/burdiuz/js-event-dispatcher/issues", "email": "burdiuz@gmail.com" }, "license": "MIT", "author": "Oleg Galaburda <burdiuz@gmail.com> (http://actualwave.com/)", "repository": { "type": "git", "url": "https://github.com/burdiuz/js-event-dispatcher.git" }, "devDependencies": { "@jest/globals": "^29", "@rollup/plugin-commonjs": "^29", "@rollup/plugin-node-resolve": "^16", "@rollup/plugin-terser": "^0.4.0", "@rollup/plugin-typescript": "^12", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", "chokidar": "^3", "eslint": "^8", "husky": "^9", "jest": "^29", "lint-staged": "^15", "prettier": "^3", "rollup": "^4", "rollup-plugin-copy": "^3", "rollup-plugin-livereload": "^2", "rollup-plugin-serve": "^2", "ts-jest": "^29", "tslib": "^2", "typescript": "^5" }, "lint-staged": { "src/**/*.ts": [ "prettier --write", "eslint --fix" ] }, "jest": { "transform": { "^.+\\.ts$": [ "ts-jest", { "tsconfig": "tsconfig.test.json" } ] }, "testEnvironment": "node", "testMatch": [ "**/*.spec.ts" ], "collectCoverage": true, "coverageReporters": [ "json", "lcov" ], "coverageDirectory": "coverage", "collectCoverageFrom": [ "src/**/*.ts", "!src/**/*.spec.ts", "!**/node_modules/**" ], "modulePathIgnorePatterns": [ "\\/\\.", "\\.history", "<rootDir>/dist/" ] }, "scripts": { "start": "npm run build", "build": "rollup --config && tsc --project tsconfig.types.json", "build:types": "tsc --project tsconfig.types.json", "build:watch": "rollup --config --watch", "lint": "eslint \"src/**/*.ts\"", "typecheck": "tsc --noEmit", "serve": "rollup --config rollup.serve.js", "test": "jest --colors", "test:watch": "jest --colors --watch", "prepare": "husky", "lint-staged": "lint-staged", "precommit": "npm run build && npm run test && npm run lint-staged" } }