Created
September 24, 2018 11:41
-
-
Save kerren/6931f4c3be95462bc72bfdc0c98d2e14 to your computer and use it in GitHub Desktop.
The initial package.json and nodemon.josn configurations before setting up the Typescript debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "watch": [ | |
| "src" | |
| ], | |
| "ext": "ts", | |
| "ignore": [ | |
| "src/**/*.spec.ts" | |
| ], | |
| "exec": "ts-node -r tsconfig-paths/register src/main.ts" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "typescript-debugging-example", | |
| "version": "0.0.0", | |
| "description": "A Typescript debugging example where the Nest framework is running in a Docker container and I use Webstorm to set breakpoints and debug the system.", | |
| "author": "Kerren Ortlepp", | |
| "license": "MIT", | |
| "scripts": { | |
| "format": "prettier --write \"**/*.ts\"", | |
| "start": "ts-node -r tsconfig-paths/register src/main.ts", | |
| "start:dev": "nodemon", | |
| "prestart:prod": "rm -rf dist && tsc", | |
| "start:prod": "node dist/main.js", | |
| "start:hmr": "node dist/server", | |
| "test": "jest", | |
| "test:cov": "jest --coverage", | |
| "test:e2e": "jest --config ./test/jest-e2e.json", | |
| "webpack": "webpack --config webpack.config.js" | |
| }, | |
| "dependencies": { | |
| "@nestjs/common": "^5.0.0", | |
| "@nestjs/core": "^5.0.0", | |
| "fastify-formbody": "^2.0.0", | |
| "reflect-metadata": "^0.1.12", | |
| "rxjs": "^6.0.0", | |
| "typescript": "^2.6.2" | |
| }, | |
| "devDependencies": { | |
| "@nestjs/testing": "^5.0.0", | |
| "@types/express": "^4.0.39", | |
| "@types/jest": "^21.1.8", | |
| "@types/node": "^9.3.0", | |
| "@types/supertest": "^2.0.4", | |
| "jest": "^21.2.1", | |
| "nodemon": "^1.14.1", | |
| "prettier": "^1.11.1", | |
| "supertest": "^3.0.0", | |
| "ts-jest": "^21.2.4", | |
| "ts-loader": "^4.1.0", | |
| "ts-node": "^4.1.0", | |
| "tsconfig-paths": "^3.1.1", | |
| "tslint": "5.3.2", | |
| "webpack": "^4.2.0", | |
| "webpack-cli": "^2.0.13", | |
| "webpack-node-externals": "^1.6.0" | |
| }, | |
| "jest": { | |
| "moduleFileExtensions": [ | |
| "js", | |
| "json", | |
| "ts" | |
| ], | |
| "rootDir": "src", | |
| "testRegex": ".spec.ts$", | |
| "transform": { | |
| "^.+\\.(t|j)s$": "ts-jest" | |
| }, | |
| "coverageDirectory": "../coverage" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment