Files
anonklub/package.json
sripwoud 7ffc1b819f test(cli): add more tests and mock query api requests (#402)
* test(cli): add more tests and mock query api requests

* fix query_ens test

use strum derive to customize how EnsVoteChoice is serialized

* chore:fix: trigger test workflow on changes in rs files

* chore: include cargo tests in repo wide `test` script

* chore: update test workflow trigger paths
2024-03-11 23:34:13 +01:00

83 lines
3.1 KiB
JSON

{
"name": "root",
"private": true,
"dependencies": {
"is-ci-cli": "^2.2.0"
},
"devDependencies": {
"@anonklub/test": "workspace:^",
"@changesets/cli": "^2.26.2",
"@faker-js/faker": "^7.6.0",
"@sripwoud/eslint-config-with-jest": "^1.0.2",
"@sripwoud/prettier-config": "^1.0.3",
"@types/jest": "^29.5.3",
"@types/node": "^18.11.15",
"barrelsby": "^2.5.1",
"eslint-config-next": "^13.4.2",
"find-up-cli": "^5.0.0",
"husky": "^9.0.10",
"is-ci": "^3.0.1",
"jest": "^29.6.2",
"jest-chain": "^1.1.6",
"jest-extended": "^4.0.1",
"jest-fetch-mock": "^3.0.3",
"jest-mock-extended": "^3.0.5",
"jest-silent-reporter": "^0.5.0",
"jest-watch-select-projects": "^2.0.0",
"jest-watch-typeahead": "^2.2.2",
"knip": "^2.19.0",
"lint-staged": "^15.2.1",
"reflect-metadata": "^0.1.13",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"ttab": "^0.8.0",
"turbo": "^1.10.16",
"typescript": "5.1.6"
},
"scripts": {
"_compile": "pnpm --filter merkle-tree-wasm compile && pnpm --filter spartan-ecdsa-wasm compile",
"test.jest": "jest",
"barrels": "barrelsby --config .barrelsby.json",
"build": "turbo build _compile",
"build.docker.discord": "docker build -f discord-bot/Dockerfile . -t discord-bot",
"build.docker.query": "docker build -f query-api/Dockerfile . -t query-api",
"build.docker.ui": "docker build -f ui/Dockerfile . -t anonklub-ui",
"build.pkgs": "turbo --filter=// --filter='./pkgs/*' build _compile",
"build.ui":"pnpm --filter @anonklub/ui build",
"changeset": "changeset",
"clean": "find . \\( -name 'node_modules' -o -name 'dist' -o -name 'next' \\) -type d -prune -exec rm -rf '{}' +",
"compile": "turbo _compile",
"fix": "turbo _format.fix _lint.fix",
"format": "turbo format.cargo format.forge format.prettier",
"format.fix": "turbo format.cargo.fix format.forge.fix format.prettier.fix",
"format.prettier": "prettier -c .",
"format.prettier.fix": "prettier -w .",
"githook:precommit": "lint-staged && pnpm run typecheck",
"knip": "knip -c .knip.ts --production --strict",
"lint": "turbo lint.cargo lint.eslint lint.solhint",
"lint.eslint": "NODE_OPTIONS='--max-old-space-size=4096' eslint . --ext .js,.jsx,.ts,.tsx",
"lint.eslint.fix": "eslint . --ext .js,.ts,.tsx --fix",
"lint.fix": "turbo lint.cargo.fix lint.eslint.fix lint.solhint.fix",
"prepare": "is-ci || husky install",
"publish.pkgs": "pnpm build.pkgs && changeset version && changeset publish",
"start.query-api": "pnpm --filter query-api start.dev",
"start.ui":"pnpm --filter @anonklub/ui dev",
"test.cargo": "cargo nextest run",
"test": "turbo _test test.jest test.cargo",
"test.watch": "jest --watch",
"typecheck": "turbo typecheck",
"validate": "turbo format.cargo format.forge format.prettier lint.cargo lint.eslint lint.solhint build _compile --cache-dir=.turbo"
},
"workspaces": [
"contracts",
"circom",
"discord-bot",
"pkgs/*",
"query-api",
"test",
"ui"
]
}