X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=package.json;h=0c1dd8cebe22e6a18656b2c252439d0130e93686;hb=d62d9c9721ba6a0dbf4385eacdc3233713ce4903;hp=5c4c5acbbbee1ddfed195e7e8ce24ec361606234;hpb=4ade5f1f37bee847b9cd2bac3c4d7a9903d62a01;p=poolifier.git diff --git a/package.json b/package.json index 5c4c5acb..0c1dd8ce 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,17 @@ "description": "Library on top of node js worker threads that implement various worker pools type", "main": "lib/index.js", "scripts": { - "build": "npm install && rimraf lib && tsc", - "test": "rimraf lib && tsc && nyc mocha --exit --timeout 20000 tests/*test.js ", - "debug-test": "mocha --inspect-brk --exit tests/*test.js ", - "demontest": "nodemon --exec \"npm test\"", + "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", - "standard-verbose": "npx standard --verbose", - "lint": "prettier-standard --format | standard --fix" + "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", @@ -29,6 +33,22 @@ "env": [ "mocha", "node" + ], + "ignore": [ + "lib/", + "src/", + "examples/typescript/" + ] + }, + "ts-standard": { + "env": [ + "mocha", + "node" + ], + "extensions": ".ts", + "ignore": [ + "lib/", + "examples/typescript/" ] }, "author": "pioardi", @@ -46,7 +66,8 @@ "nyc": "^15.0.0", "prettier-standard": "^16.4.1", "rimraf": "^3.0.2", - "standard": "^16.0.0", + "standard": "^16.0.3", + "ts-standard": "^10.0.0", "typescript": "^4.1.3" }, "engines": {