Skip to content

Commit

Permalink
chore: re-organize package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 25, 2024
1 parent c0fd2ea commit 720f61a
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 84 deletions.
5 changes: 1 addition & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 67 additions & 80 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand All @@ -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": [
"🐷",
Expand All @@ -54,90 +81,50 @@
"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",
"tape",
"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"
]
}

0 comments on commit 720f61a

Please sign in to comment.