123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {
- "name": "query-node",
- "version": "0.1.0",
- "description": "Generated Warthog Project",
- "license": "MIT",
- "main": "dist/model/index.js",
- "types": "dist/model/index.d.ts",
- "scripts": {
- "bootstrap": "yarn bootstrap:dev",
- "bootstrap:dev": "yarn && yarn build:dev && yarn db:drop && yarn db:create && yarn db:migrate && yarn db:seed",
- "bootstrap:prod": "yarn && yarn build:prod && yarn start:prod",
- "//": "This is the default command run in CI, so it should point to Prod and also create Prod config",
- "build": "yarn build:prod",
- "build:prod": "WARTHOG_ENV=production yarn run config && yarn compile",
- "build:dev": "yarn run config:dev && yarn codegen && yarn compile",
- "check:code": "tsc --noEmit && yarn lint && prettier ./{src,test,tools}/**/*.ts --write",
- "clean": "yarn db:drop && rm -rf ./node_modules ./generated ./dist",
- "codegen": "warthog codegen",
- "config": "WARTHOG_ENV=$NODE_ENV yarn dotenv:generate",
- "config:dev": "WARTHOG_ENV=development yarn dotenv:generate",
- "compile": "rm -rf ./dist && yarn tsc",
- "deploy": "heroku git:remote -a warthog-starter && git push heroku main && WARTHOG_ENV=production yarn dotenv:generate && warthog db:migrate",
- "dotenv:generate": "dotenvi -s ${WARTHOG_ENV:-development}",
- "db:create": "warthog db:create",
- "db:drop": "warthog db:drop",
- "db:migrate:generate": "warthog db:migrate:generate --name",
- "db:migrate": "warthog db:migrate",
- "db:seed": "ts-node tools/seed.ts",
- "lint": "eslint './+(src|test|tools)/**/*.{js,ts}' --fix",
- "list:users": "ts-node ./tools/list-users.ts",
- "playground": "warthog playground",
- "prettier": "prettier ./{src,test,tools}/**/*.ts --write",
- "start": "yarn start:prod",
- "start:dev": "ts-node --type-check src/index.ts",
- "start:dev:watch": "nodemon -e ts,graphql -x ts-node --type-check src/index.ts",
- "start:prod": "WARTHOG_ENV=production yarn dotenv:generate && node dist/src/index.js",
- "test": "DEBUG= jest --verbose --coverage",
- "test:watch": "DEBUG= jest --watch",
- "db:sync": "SYNC=true WARTHOG_DB_SYNCHRONIZE=true ts-node --type-check src/index.ts"
- },
- "husky": {
- "hooks": {
- "pre-commit": "yarn run config:dev && lint-staged && tsc -p ./tsconfig.json && yarn test"
- }
- },
- "lint-staged": {
- "linters": {
- "*.ts": [
- "eslint --fix",
- "prettier --write",
- "git add"
- ],
- "*.{js,json}": [
- "prettier --write",
- "git add"
- ]
- },
- "ignore": [
- "**/generated/*"
- ]
- },
- "hydra": "https://github.com/Joystream/warthog/releases/download/v2.37.0/joystream-warthog-v2.37.0.tgz",
- "dependencies": {
- "dotenv": "^8.2.0",
- "reflect-metadata": "^0.1.13",
- "warthog": "https://github.com/Joystream/warthog/releases/download/v2.37.0/joystream-warthog-v2.37.0.tgz",
- "@types/bn.js": "^4.11.6",
- "bn.js": "^5.1.3",
- "lodash": "^4.17.15",
- "pg-listen": "^1.7.0",
- "typeorm": "^0.2.31"
- },
- "devDependencies": {
- "@types/jest": "^24.0.23",
- "dotenvi": "^0.9.0",
- "jest": "^24.9.0",
- "ts-jest": "^24.1.0",
- "ts-node": "^8.10",
- "ts-node-dev": "^1.0.0-pre.60",
- "typescript": "^3.9.7"
- },
- "jest": {
- "globals": {
- "ts-jest": {
- "tsConfig": "tsconfig.test.json"
- }
- },
- "transform": {
- ".ts": "ts-jest"
- },
- "testRegex": "\\.test\\.ts$",
- "moduleFileExtensions": [
- "js",
- "ts"
- ],
- "coveragePathIgnorePatterns": [
- "/node_modules/",
- "\\.test\\.ts$"
- ]
- },
- "prettier": {
- "printWidth": 100,
- "singleQuote": true
- }
- }
|