Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
{
"name": "warthog-starter",
"version": "0.0.0",
"description": "Warthog GraphQL API minimal example",
"license": "MIT",
"author": {
"name": "Dan Caddigan",
"url": "https://github.com/goldcaddy77"
},
"engines": {
"node": ">=8"
},
"scripts": {
"bootstrap": "./tools/scripts/bootstrap.sh",
"//": "This is the default command run in CI, so it should point to Prod and also create Prod config",
"build": "./tools/scripts/build.sh",
"check:code": "tsc --noEmit && yarn lint && prettier ./{src,test,tools}/**/*.ts --write",
"clean": "yarn db:drop && rm -rf ./node_modules ./generated ./dist",
"codegen": "WARTHOG_ENV=local yarn run config && warthog codegen",
"config": "dotenvi -s ${WARTHOG_ENV:-local}",
"compile": "rm -rf ./dist && yarn tsc",
"deploy": "./tools/scripts/deploy.sh",
"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",
"playground": "warthog playground",
"prettier": "prettier ./{src,test,tools}/**/*.ts --write",
"start": "./tools/scripts/start.sh",
"start:prod": "NODE_ENV=production WARTHOG_ENV=production WARTHOG_APP_PORT=$PORT ./tools/scripts/start.sh",
"test": "./tools/scripts/test.sh",
"test:watch": "DEBUG= jest --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && tsc -p ./tsconfig.json && yarn test"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.{js,json}": [
"prettier --write"
]
},
"dependencies": {
"@types/dotenv": "^8.2.0",
"@types/pg": "^7.14.5",
"dotenv": "^8.2.0",
"dotenvi": "^0.8.0",
"dotenv-cli": "^3.1.0",
"pg": "^8.3.3",
"reflect-metadata": "^0.1.13",
"ts-node": "^8.8.2",
"typeorm": "^0.2.24",
"typeorm-typedi-extensions": "^0.2.3",
"typescript": "^3.8.3",
"warthog": "^2.19.0"
},
"devDependencies": {
"@types/faker": "^4.1.11",
"@types/jest": "^25.2.1",
"@types/node": "^13.11.0",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"faker": "^4.1.0",
"husky": "^4.2.3",
"jest": "^25.2.7",
"lint-staged": "^10.1.2",
"prettier": "^2.0.4",
"ts-jest": "^25.3.1",
"ts-node-dev": "^1.0.0-pre.44"
},
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.test.json"
}
},
"transform": {
".ts": "ts-jest"
},
"testRegex": "\\.test\\.ts$",
"moduleFileExtensions": [
"js",
"ts"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"\\.test\\.ts$"
],
"globalSetup": "<rootDir>/test/globalSetup.ts",
"globalTeardown": "<rootDir>/test/globalTeardown.ts",
"setupFilesAfterEnv": [
"./test/setupFilesAfterEnv.ts"
]
},
"prettier": {
"printWidth": 100,
"singleQuote": true
}
}