aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json100
1 files changed, 77 insertions, 23 deletions
diff --git a/package.json b/package.json
index d7268b4..ef26fa0 100644
--- a/package.json
+++ b/package.json
@@ -1,34 +1,88 @@
{
"name": "nitt",
- "version": "1.0.2",
- "author": "Marin Ivanov <[email protected]>",
- "license": "MIT",
+ "version": "1.1.0",
+ "description": "Tiny 200b functional Event Emitter / pubsub.",
+ "module": "dist/nitt.mjs",
+ "main": "dist/nitt.js",
+ "jsnext:main": "dist/nitt.mjs",
+ "umd:main": "dist/nitt.umd.js",
+ "source": "src/index.ts",
+ "typings": "index.d.ts",
+ "exports": {
+ "types": "./index.d.ts",
+ "module": "./dist/nitt.mjs",
+ "import": "./dist/nitt.mjs",
+ "require": "./dist/nitt.js",
+ "default": "./dist/nitt.mjs"
+ },
+ "scripts": {
+ "test": "npm-run-all --silent typecheck lint mocha test-types",
+ "mocha": "mocha test",
+ "test-types": "tsc test/test-types-compilation.ts --noEmit --strict",
+ "lint": "eslint src test --ext ts --ext js",
+ "typecheck": "tsc --noEmit",
+ "bundle": "microbundle -f es,cjs,umd",
+ "build": "npm-run-all --silent clean -p bundle -s docs",
+ "clean": "rimraf dist",
+ "docs": "documentation readme src/index.ts --section API -q --parse-extension ts",
+ "release": "npm run -s build -s && npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
+ },
"repository": {
"type": "git",
- "url": "https://github.com/metala/nitt.git"
+ "url": "https://pgit.metala.org/lib/nitt.git"
},
"keywords": [
- "nitt",
- "event-listener",
- "event-emitter",
- "eventemitter"
+ "events",
+ "eventemitter",
+ "emitter",
+ "pubsub"
],
- "scripts": {
- "build": "microbundle",
- "dev": "microbundle watch",
- "test": "jest"
+ "authors": [
+ "Marin Ivanov <[email protected]>",
+ "Jason Miller <[email protected]>"
+ ],
+ "license": "MIT",
+ "files": [
+ "dist",
+ "index.d.ts"
+ ],
+ "mocha": {
+ "extension": [
+ "ts"
+ ],
+ "require": [
+ "ts-node/register",
+ "esm"
+ ],
+ "spec": [
+ "test/*_test.ts"
+ ]
+ },
+ "prettier": {
+ "singleQuote": true,
+ "trailingComma": "none"
},
- "source": "src/index.ts",
- "main": "dist/nitt.js",
- "module": "dist/nitt.esm.js",
- "unpkg": "dist/nitt.umd.js",
"devDependencies": {
- "@types/jest": "^24.0.11",
- "@types/node": "^11.13.7",
- "documentation": "^10.1.0",
- "jest": "^24.7.1",
- "microbundle": "^0.11.0",
- "ts-jest": "^24.0.2",
- "typescript": "^3.4.5"
+ "@types/chai": "^4.2.11",
+ "@types/mocha": "^7.0.2",
+ "@types/sinon": "^9.0.4",
+ "@types/sinon-chai": "^3.2.4",
+ "@typescript-eslint/eslint-plugin": "^5.61.0",
+ "@typescript-eslint/parser": "^5.61.0",
+ "chai": "^4.2.0",
+ "documentation": "^14.0.2",
+ "eslint": "^7.32.0",
+ "eslint-config-developit": "^1.2.0",
+ "eslint-plugin-compat": "^4.1.4",
+ "esm": "^3.2.25",
+ "microbundle": "^0.12.3",
+ "mocha": "^8.0.1",
+ "npm-run-all": "^4.1.5",
+ "prettier": "^2.8.8",
+ "rimraf": "^3.0.2",
+ "sinon": "^9.0.2",
+ "sinon-chai": "^3.5.0",
+ "ts-node": "^10.9.1",
+ "typescript": "^4.9.5"
}
}