|
| 1 | +{ |
| 2 | + "name": "nest-poc", |
| 3 | + "version": "0.0.1", |
| 4 | + "description": "A proof of concept for NestJS, GraphQL and TOTP 2FA", |
| 5 | + "author": "Mubarak Imam", |
| 6 | + "license": "MIT", |
| 7 | + "scripts": { |
| 8 | + "prebuild": "rimraf dist", |
| 9 | + "tsc": "ts-node -r tsconfig-paths/register", |
| 10 | + "build": "tsc -b tsconfig.build.json", |
| 11 | + "format": "prettier --write \"src/**/*.ts\"", |
| 12 | + "start": "yarn tsc src/main.ts", |
| 13 | + "start:dev": "nodemon", |
| 14 | + "start:debug": "nodemon --config nodemon-debug.json", |
| 15 | + "prestart:prod": "yarn run build", |
| 16 | + "start:prod": "node dist/main.js", |
| 17 | + "lint": "tslint -p tsconfig.json -c tslint.json", |
| 18 | + "test:unit": "jest --config ./test/jest-unit.json", |
| 19 | + "test:unit:watch": "yarn test:unit:cov --watch", |
| 20 | + "test:unit:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --config ./test/jest-unit.json --runInBand", |
| 21 | + "test:integration": "jest --config ./test/jest-integration.json", |
| 22 | + "pretest:integration:full": "yarn db:refresh", |
| 23 | + "test:integration:full": "yarn test:integration", |
| 24 | + "test:e2e": "jest --config ./test/jest-e2e.json", |
| 25 | + "test:coverall": "jest --coverage", |
| 26 | + "typeorm": "yarn tsc ./node_modules/typeorm/cli.js", |
| 27 | + "db:rollback": "yarn typeorm schema:drop", |
| 28 | + "db:generate": "yarn typeorm migration:generate", |
| 29 | + "db:migrate": "yarn typeorm migration:run", |
| 30 | + "db:refresh": "yarn db:rollback && yarn db:migrate" |
| 31 | + }, |
| 32 | + "dependencies": { |
| 33 | + "@hapi/joi": "^14.3.1", |
| 34 | + "@nestjs/common": "^6.0.0", |
| 35 | + "@nestjs/core": "^6.0.0", |
| 36 | + "@nestjs/graphql": "^6.0.5", |
| 37 | + "@nestjs/jwt": "^6.0.0", |
| 38 | + "@nestjs/passport": "^6.0.0", |
| 39 | + "@nestjs/platform-express": "^6.0.0", |
| 40 | + "africastalking": "^0.4.0", |
| 41 | + "apollo-server-express": "^2.4.8", |
| 42 | + "bcryptjs": "^2.4.3", |
| 43 | + "class-transformer": "^0.2.0", |
| 44 | + "class-validator": "^0.9.1", |
| 45 | + "cors": "^2.8.5", |
| 46 | + "dotenv": "^7.0.0", |
| 47 | + "graphql": "^14.2.1", |
| 48 | + "graphql-tools": "^4.0.4", |
| 49 | + "install": "^0.12.2", |
| 50 | + "nest-router": "^1.0.9", |
| 51 | + "passport": "^0.4.0", |
| 52 | + "passport-jwt": "^4.0.0", |
| 53 | + "pg": "^7.9.0", |
| 54 | + "qr-image": "^3.2.0", |
| 55 | + "rxjs": "^6.3.3", |
| 56 | + "speakeasy": "^2.0.0", |
| 57 | + "twilio": "^3.31.0", |
| 58 | + "typeorm": "^0.2.16" |
| 59 | + }, |
| 60 | + "devDependencies": { |
| 61 | + "@nestjs/testing": "^6.0.0", |
| 62 | + "@types/express": "^4.16.0", |
| 63 | + "@types/hapi__joi": "^15.0.1", |
| 64 | + "@types/jest": "^23.3.13", |
| 65 | + "@types/node": "^11.13.0", |
| 66 | + "@types/supertest": "^2.0.7", |
| 67 | + "jest": "^23.6.0", |
| 68 | + "nodemon": "^1.18.9", |
| 69 | + "prettier": "^1.15.3", |
| 70 | + "reflect-metadata": "^0.1.12", |
| 71 | + "rimraf": "^2.6.2", |
| 72 | + "supertest": "^3.4.1", |
| 73 | + "ts-jest": "^23.10.5", |
| 74 | + "ts-node": "^7.0.1", |
| 75 | + "tsconfig-paths": "^3.7.0", |
| 76 | + "tslint": "5.14.0", |
| 77 | + "tslint-config-airbnb": "^5.11.1", |
| 78 | + "typescript": "^3.4.1", |
| 79 | + "uuid": "^3.3.2" |
| 80 | + }, |
| 81 | + "jest": { |
| 82 | + "globalSetup": "<rootDir>/setup-jest.js", |
| 83 | + "moduleFileExtensions": [ |
| 84 | + "js", |
| 85 | + "json", |
| 86 | + "ts" |
| 87 | + ], |
| 88 | + "rootDir": "src", |
| 89 | + "testRegex": ".spec.ts$", |
| 90 | + "transform": { |
| 91 | + "^.+\\.(t|j)s$": "ts-jest" |
| 92 | + }, |
| 93 | + "moduleNameMapper": { |
| 94 | + "@nestpoc/(.*)": "<rootDir>/modules/$1" |
| 95 | + }, |
| 96 | + "coverageDirectory": "../coverage", |
| 97 | + "testEnvironment": "node", |
| 98 | + "collectCoverageFrom": [ |
| 99 | + "<rootDir>/**/*.ts", |
| 100 | + "!<rootDir>/**/*.spec.ts", |
| 101 | + "!<rootDir>/**/index.ts", |
| 102 | + "!<rootDir>/main.ts", |
| 103 | + "!<rootDir>/**/*.d.ts", |
| 104 | + "!<rootDir>/**/dist/**/*.d.ts", |
| 105 | + "!**/__mocks__/**/*.ts" |
| 106 | + ] |
| 107 | + } |
| 108 | +} |
0 commit comments