mirror of
https://github.com/zhigang1992/hasura-backend-plus.git
synced 2026-01-12 17:22:59 +08:00
* fix: don't copy any pem file to Docker * perf: split typescript dependencies to devDependencies * perf: multi-stage production docker
172 lines
4.8 KiB
JSON
172 lines
4.8 KiB
JSON
{
|
|
"name": "hasura-backend-plus",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"url": "git://github.com/nhost/hasura-backend-plus.git",
|
|
"type": "git"
|
|
},
|
|
"version": "2.0.0",
|
|
"main": "src/start.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "ts-node-dev -r tsconfig-paths/register --no-notify src/ts-start.ts",
|
|
"dev:docker": "ts-node-dev -r tsconfig-paths/register --no-deps --respawn --poll --interval 1000 --no-notify src/ts-start.ts",
|
|
"docs:build": "vuepress build docs",
|
|
"docs:dev": "vuepress dev docs",
|
|
"start": "node -r ./dist/start.js",
|
|
"test": "NODE_ENV=test jest --coverage --forceExit --runInBand",
|
|
"test:ci": "NODE_ENV=ci jest --coverage --forceExit --runInBand",
|
|
"test:watch": "NODE_ENV=test jest --watch",
|
|
"report-coverage": "codecov"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "./node_modules/cz-conventional-changelog"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@hapi/boom": "9.1.0",
|
|
"@hapi/joi": "17.1.1",
|
|
"@nicokaiser/passport-apple": "^0.2.1",
|
|
"archiver": "4.0.1",
|
|
"aws-sdk": "2.656.0",
|
|
"bcryptjs": "^2.4.3",
|
|
"body-parser": "1.19.0",
|
|
"cookie-parser": "1.4.5",
|
|
"cors": "2.8.5",
|
|
"dotenv": "8.2.0",
|
|
"ejs": "3.0.2",
|
|
"email-templates": "7.0.4",
|
|
"express": "4.17.1",
|
|
"express-fileupload": "1.1.7-alpha.3",
|
|
"express-rate-limit": "5.1.1",
|
|
"express-session": "^1.17.1",
|
|
"fs-extra": "^9.0.0",
|
|
"graphql": "15.0.0",
|
|
"graphql-request": "1.8.2",
|
|
"graphql-tag": "2.10.3",
|
|
"hasura-cli": "1.2.1",
|
|
"helmet": "3.22.0",
|
|
"hibp": "9.0.0",
|
|
"jose": "1.26.0",
|
|
"js-yaml": "3.13.1",
|
|
"lodash.kebabcase": "4.1.1",
|
|
"module-alias": "^2.2.2",
|
|
"morgan": "^1.10.0",
|
|
"nocache": "^2.1.0",
|
|
"node-fetch": "^2.6.0",
|
|
"nodemailer": "6.4.6",
|
|
"notevil": "1.3.3",
|
|
"otplib": "12.0.1",
|
|
"passport": "0.4.1",
|
|
"passport-facebook": "^3.0.0",
|
|
"passport-github2": "0.1.12",
|
|
"passport-google-oauth20": "2.0.0",
|
|
"passport-linkedin-oauth2": "^2.0.0",
|
|
"passport-twitter": "^1.0.4",
|
|
"passport-windowslive": "^1.0.2",
|
|
"qrcode": "1.4.4",
|
|
"temp-dir": "^2.0.0",
|
|
"uuid": "7.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/archiver": "3.1.0",
|
|
"@types/bcryptjs": "^2.4.2",
|
|
"@types/body-parser": "1.19.0",
|
|
"@types/cookie-parser": "1.4.2",
|
|
"@types/cors": "2.8.6",
|
|
"@types/ejs": "3.0.2",
|
|
"@types/email-templates": "7.0.1",
|
|
"@types/express": "4.17.6",
|
|
"@types/express-fileupload": "1.1.3",
|
|
"@types/express-rate-limit": "5.0.0",
|
|
"@types/express-session": "^1.17.0",
|
|
"@types/fs-extra": "^8.1.0",
|
|
"@types/hapi__joi": "16.0.12",
|
|
"@types/helmet": "0.0.45",
|
|
"@types/jest": "25.2.1",
|
|
"@types/js-yaml": "3.12.3",
|
|
"@types/lodash.kebabcase": "4.1.6",
|
|
"@types/morgan": "^1.9.0",
|
|
"@types/node": "^13.11.1",
|
|
"@types/node-fetch": "^2.5.7",
|
|
"@types/nodemailer": "6.4.0",
|
|
"@types/passport": "1.0.3",
|
|
"@types/passport-facebook": "^2.1.9",
|
|
"@types/passport-github2": "1.2.4",
|
|
"@types/passport-google-oauth20": "2.0.3",
|
|
"@types/passport-linkedin-oauth2": "^1.5.1",
|
|
"@types/passport-twitter": "^1.0.34",
|
|
"@types/qrcode": "1.3.4",
|
|
"@types/supertest": "^2.0.8",
|
|
"@types/temp-dir": "^2.0.2",
|
|
"@types/uuid": "7.0.2",
|
|
"@typescript-eslint/eslint-plugin": "2.28.0",
|
|
"@typescript-eslint/parser": "2.28.0",
|
|
"@vuepress/plugin-back-to-top": "1.4.1",
|
|
"codecov": "^3.6.5",
|
|
"cz-conventional-changelog": "3.1.0",
|
|
"eslint": "6.8.0",
|
|
"eslint-config-prettier": "6.10.1",
|
|
"eslint-plugin-jest": "23.8.2",
|
|
"eslint-plugin-prettier": "3.1.3",
|
|
"husky": "4.2.5",
|
|
"jest": "25.3.0",
|
|
"jest-extended": "0.11.5",
|
|
"lint-staged": "10.1.3",
|
|
"markdown-it-multimd-table": "4.0.1",
|
|
"prettier": "2.0.4",
|
|
"pretty-quick": "2.0.1",
|
|
"supertest": "4.0.2",
|
|
"ts-jest": "25.3.1",
|
|
"ts-node": "8.8.2",
|
|
"ts-node-dev": "1.0.0-pre.44",
|
|
"tsconfig-paths": "3.9.0",
|
|
"typescript": "3.8.3",
|
|
"vuepress": "1.4.1"
|
|
},
|
|
"_moduleAliases": {
|
|
"@shared": "./dist/shared",
|
|
"@test": "./dist/test"
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"rules": {
|
|
"@typescript-eslint/camelcase": "off"
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"jest"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier/@typescript-eslint",
|
|
"plugin:jest/recommended"
|
|
]
|
|
},
|
|
"eslintIgnore": [
|
|
"dist",
|
|
"node_modules",
|
|
"*.js"
|
|
],
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.js,*.ts,*.md,*.json": [
|
|
"eslint --fix",
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"semi": false,
|
|
"printWidth": 100,
|
|
"singleQuote": true,
|
|
"trailingComma": "none"
|
|
}
|
|
} |