From 720f61a006c67530806e7defa417252d74d823b9 Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:41:52 -0300 Subject: [PATCH] chore: re-organize package.json --- package-lock.json | 5 +- package.json | 147 +++++++++++++++++++++------------------------- 2 files changed, 68 insertions(+), 84 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4043a11..5304bfe4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,10 +29,7 @@ "typescript": "^5.5.2" }, "engines": { - "bun": ">=0.5.3", - "deno": ">=1.17.0", - "node": ">=6.0.0", - "typescript": ">=5.0.2" + "node": ">=6.0.0" } }, "node_modules/@bcoe/v8-coverage": { diff --git a/package.json b/package.json index d0ee8a5f..0daa6a82 100644 --- a/package.json +++ b/package.json @@ -2,34 +2,53 @@ "name": "poku", "version": "1.19.0", "description": "🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.", + "license": "MIT", "main": "./lib/index.js", + "bin": { + "poku": "./lib/bin/index.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/wellwelwel/poku.git" + }, + "homepage": "https://poku.io", + "bugs": { + "url": "https://github.com/wellwelwel/poku/issues" + }, + "author": "https://github.com/wellwelwel", + "files": [ + "lib" + ], + "engines": { + "node": ">=6.0.0" + }, "scripts": { "test": "npm run test:parallel && npm run test:sequential", "test:bun": "npm run test:bun:parallel && npm run test:bun:sequential", "test:deno": "npm run test:deno:parallel && npm run test:deno:sequential", - "test:sequential": "tsx src/bin/index.ts --include=\"test/unit,test/integration,test/e2e\"", - "test:parallel": "tsx src/bin/index.ts --parallel --include=\"test/unit,test/integration,test/e2e\"", - "test:bun:sequential": "bun src/bin/index.ts --platform=\"bun\" --include=\"test/unit,test/integration,test/e2e\"", - "test:bun:parallel": "bun src/bin/index.ts --platform=\"bun\" --parallel --include=\"test/unit,test/integration,test/e2e\"", - "test:deno:sequential": "tsx src/bin/index.ts --platform=\"deno\" --deno-allow=\"all\" --deno-cjs --include=\"ci/test/unit,ci/test/integration,ci/test/e2e\"", - "test:deno:parallel": "tsx src/bin/index.ts --platform=\"deno\" --deno-allow=\"all\" --deno-cjs --parallel --include=\"ci/test/unit,ci/test/integration,ci/test/e2e\"", - "test:c8:sequential": "c8 tsx src/bin/index.ts --include=\"test/unit,test/integration,test/e2e\"", - "test:c8:parallel": "c8 tsx src/bin/index.ts --parallel --include=\"test/unit,test/integration,test/e2e\"", - "test:c8:sequential:options": "c8 tsx src/bin/index.ts --platform=\"node\" --fast-fail --debug --exclude=\".bak\" --kill-port=\"4000\" --kill-range=\"4000-4001\" --include=\"test/unit,test/integration,test/e2e\" --filter=\".test.|.spec.\"", - "test:c8:parallel:options": "c8 tsx src/bin/index.ts --parallel --concurrency=\"4\" --platform=\"node\" --fast-fail --debug --exclude=\".bak\" --kill-port=\"4000\" --kill-range=\"4000-4001\" --include=\"test/unit,test/integration,test/e2e\" --filter=\".test.|.spec.\"", - "test:ci": "tsx ./test/ci.test.ts", + "test:sequential": "tsx src/bin/index.ts --include=test/unit,test/integration,test/e2e", + "test:parallel": "tsx src/bin/index.ts --parallel --include=test/unit,test/integration,test/e2e", + "test:bun:sequential": "bun src/bin/index.ts --platform=bun --include=test/unit,test/integration,test/e2e", + "test:bun:parallel": "bun src/bin/index.ts --platform=bun --parallel --include=test/unit,test/integration,test/e2e", + "test:deno:sequential": "tsx src/bin/index.ts --platform=deno --deno-allow=all --deno-cjs --include=ci/test/unit,ci/test/integration,ci/test/e2e", + "test:deno:parallel": "tsx src/bin/index.ts --platform=deno --deno-allow=all --deno-cjs --parallel --include=ci/test/unit,ci/test/integration,ci/test/e2e", + "test:c8:sequential": "c8 tsx src/bin/index.ts --include=test/unit,test/integration,test/e2e", + "test:c8:parallel": "c8 tsx src/bin/index.ts --parallel --include=test/unit,test/integration,test/e2e", + "test:c8:sequential:options": "c8 tsx src/bin/index.ts --platform=node --fast-fail --debug --exclude=\".bak\" --kill-port=4000 --kill-range=\"4000-4001\" --include=test/unit,test/integration,test/e2e --filter=\".test.|.spec.\"", + "test:c8:parallel:options": "c8 tsx src/bin/index.ts --parallel --concurrency=4 --platform=node --fast-fail --debug --exclude=\".bak\" --kill-port=4000 --kill-range=\"4000-4001\" --include=test/unit,test/integration,test/e2e --filter=\".test.|.spec.\"", + "test:ci": "tsx test/ci.test.ts", "test:ci:node": "FILTER='node-' npm run test:ci", "test:ci:bun": "FILTER='bun-' npm run test:ci", "test:ci:deno": "FILTER='deno-' npm run test:ci", - "predocker:deno": "docker compose -f ./test/docker/playground/deno/docker-compose.yml down", - "docker:deno": "docker compose -f ./test/docker/playground/deno/docker-compose.yml up --build", - "clear": "shx rm -rf ./lib ./ci ./coverage", + "predocker:deno": "docker compose -f test/docker/playground/deno/docker-compose.yml down", + "docker:deno": "docker compose -f test/docker/playground/deno/docker-compose.yml up --build", + "clear": "shx rm -rf lib ci coverage", "prebuild": "npm run clear", - "build": "tsc && shx rm -rf ./lib/@types && tsc -p tsconfig.types.json && tsc -p tsconfig.test.json", - "postbuild": "tsx ./tools/compatibility/node.ts && shx cp fixtures/server/package.json ci/fixtures/server/package.json && npm run build:deno && shx chmod +x lib/bin/index.js", + "build": "tsc && shx rm -rf lib/@types && tsc -p tsconfig.types.json && tsc -p tsconfig.test.json", + "postbuild": "tsx tools/compatibility/node.ts && shx cp fixtures/server/package.json ci/fixtures/server/package.json && npm run build:deno && shx chmod +x lib/bin/index.js", "build:deno": "esbuild src/polyfills/deno.mts --outfile=lib/polyfills/deno.mjs --format=esm", "eslint:checker": "eslint . --ext .js,.ts", - "eslint:fix": "eslint . --fix --config ./.eslintrc.json", + "eslint:fix": "eslint . --fix --config .eslintrc.json", "lint:checker": "npm run eslint:checker && npm run prettier:checker", "lint:fix": "npm run eslint:fix && npm run prettier:fix", "prettier:checker": "prettier --check .", @@ -38,14 +57,22 @@ "postupdate": "npm run lint:fix", "benchmark": "cd benchmark && npm ci && npm start" }, - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/wellwelwel/poku.git" - }, - "homepage": "https://poku.io", - "bin": { - "poku": "./lib/bin/index.js" + "devDependencies": { + "@types/node": "^20.14.8", + "@typescript-eslint/eslint-plugin": "^7.13.1", + "@typescript-eslint/parser": "^7.13.1", + "c8": "^10.1.2", + "esbuild": "^0.21.5", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-prettier": "^5.1.3", + "packages-update": "^2.0.0", + "prettier": "^3.3.2", + "shx": "^0.3.4", + "tsx": "4.15.7", + "typescript": "^5.5.2" }, "keywords": [ "🐷", @@ -54,30 +81,30 @@ "assert", "assertion", "testing", + "node", "bun", "deno", - "cli", + "typescript", + "tsx", "concurrent", "concurrency", - "parallelism", "parallel", "sequential", + "run", + "cli", "unit", "integration", - "typescript", + "e2e", + "end-to-end", + "tdd", + "bdd", "isolate", "isolation", - "run", - "queue", - "queuing", "watch", - "nodejs", - "node", - "cli-app", - "expect", + "jest", "mocha", "chai", - "jest", + "vitest", "ava", "uvu", "tap", @@ -85,59 +112,19 @@ "karma", "urun", "supertest", - "e2e", - "end-to-end", - "tdd", - "bdd", - "framework", - "tool", - "tools", "filter", "exclude", "list", "files", - "list-files", - "tsx", "kill", + "container", "process", "port", "cross-platform", "commonjs", "cjs", + "esmodules", "esm", - "runtime", - "poku", - "pokujs" - ], - "author": "https://github.com/wellwelwel", - "bugs": { - "url": "https://github.com/wellwelwel/poku/issues" - }, - "engines": { - "node": ">=6.0.0", - "bun": ">=0.5.3", - "deno": ">=1.17.0", - "typescript": ">=5.0.2" - }, - "files": [ - "lib" - ], - "type": "commonjs", - "devDependencies": { - "@types/node": "^20.14.8", - "@typescript-eslint/eslint-plugin": "^7.13.1", - "@typescript-eslint/parser": "^7.13.1", - "c8": "^10.1.2", - "esbuild": "^0.21.5", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-prettier": "^5.1.3", - "packages-update": "^2.0.0", - "prettier": "^3.3.2", - "shx": "^0.3.4", - "tsx": "4.15.7", - "typescript": "^5.5.2" - } + "poku" + ] }