Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
128 lines (127 sloc) 3.91 KB
{
"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": "12.x",
"yarn": "1.x"
},
"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 && rm warthog.sqlite.tmp",
"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 master",
"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-dev --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"
},
"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/*"
]
},
"dependencies": {
"@types/sqlite3": "^3.1.5",
"dotenv": "^8.0.0",
"dotenvi": "^0.6.0",
"reflect-metadata": "^0.1.13",
"typeorm": "^0.2.18",
"warthog": "^1.40.2"
},
"devDependencies": {
"@types/dotenv": "^6.1.1",
"@types/faker": "^4.1.5",
"@types/jest": "^24.0.15",
"@types/node": "^12.0.10",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"dotenv-cli": "^2.0.0",
"eslint": "^5",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"faker": "^4.1.0",
"husky": "^2.7.0",
"jest": "^24.8.0",
"lint-staged": "^8.2.1",
"nodemon": "^1.19.1",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"sqlite3": "^4.1.0",
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0",
"ts-node-dev": "^1.0.0-pre.40",
"typescript": "3.5.2"
},
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.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
}
}
You can’t perform that action at this time.