X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=package.json;h=0c1dd8cebe22e6a18656b2c252439d0130e93686;hb=d62d9c9721ba6a0dbf4385eacdc3233713ce4903;hp=ca55edc64dbcca5c234d89bf9c81bd8795774579;hpb=7180f46901b47ec72561818fe855cbee500d62e6;p=poolifier.git diff --git a/package.json b/package.json index ca55edc6..0c1dd8ce 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,24 @@ { - "name": "node-pool.", - "version": "0.0.1", + "name": "poolifier", + "version": "1.2.1", "description": "Library on top of node js worker threads that implement various worker pools type", - "main": "index.js", + "main": "lib/index.js", "scripts": { - "build": "npm install", - "test": "standard && nyc mocha --experimental-worker --exit --timeout 10000 **/*test.js ", - "demontest": "nodemon --exec \"npm test\"", - "coverage": "nyc report --reporter=text-lcov --timeout 5000 **/*test.js | coveralls", - "standard-verbose": "npx standard --verbose", - "lint": "standard --fix" + "build": "npm run build:clean && tsc", + "build:clean": "rimraf lib", + "test": "standard && ts-standard && npm run build && nyc mocha --exit --timeout 20000 tests/*test.js ", + "test:debug": "mocha --inspect-brk --exit tests/*test.js ", + "coverage": "nyc report --reporter=text-lcov | coveralls", + "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'", + "standard:verbose": "npx standard --verbose", + "lint:standard": "prettier-standard --format | standard --fix", + "ts-standard:verbose": "npx ts-standard --verbose", + "lint:ts-standard": "ts-standard --fix", + "lint-and-format": "npm run lint:standard && npm run lint:ts-standard && npm run import-sort" }, "repository": { "type": "git", - "url": "git+https://github.com/pioardi/node-pool.git" + "url": "git+https://github.com/pioardi/poolifier.git" }, "keywords": [ "node", @@ -28,23 +33,45 @@ "env": [ "mocha", "node" + ], + "ignore": [ + "lib/", + "src/", + "examples/typescript/" + ] + }, + "ts-standard": { + "env": [ + "mocha", + "node" + ], + "extensions": ".ts", + "ignore": [ + "lib/", + "examples/typescript/" ] }, "author": "pioardi", "license": "MIT", "bugs": { - "url": "https://github.com/pioardi/node-pool/issues" - }, - "homepage": "https://github.com/pioardi/node-pool#readme", - "dependencies": { - "uuid": "^3.4.0" + "url": "https://github.com/pioardi/poolifier/issues" }, + "homepage": "https://github.com/pioardi/poolifier#readme", "devDependencies": { + "benchmark": "^2.1.4", "coveralls": "^3.0.9", - "expect": "^24.9.0", - "mocha": "^7.0.0", + "expect": "^26.0.0", + "mocha": "^8.0.1", "mocha-lcov-reporter": "^1.3.0", "nyc": "^15.0.0", - "standard": "^14.3.1" - } + "prettier-standard": "^16.4.1", + "rimraf": "^3.0.2", + "standard": "^16.0.3", + "ts-standard": "^10.0.0", + "typescript": "^4.1.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "dependencies": {} }