Created
February 7, 2020 15:50
-
-
Save mikeyakymenko/67d922861154794e23154c6c4fe83486 to your computer and use it in GitHub Desktop.
Simple NodeJS + TS
This file contains 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": "someproject", | |
"version": "1.0.0", | |
"description": "someproject shop", | |
"main": "index.js", | |
"author": "Mike Yakymenko", | |
"license": "MIT", | |
"scripts": { | |
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' server.ts", | |
"prod": "tsc -p api && node dist/server.js" | |
}, | |
"dependencies": { | |
"body-parser": "^1.19.0", | |
"cors": "^2.8.5", | |
"dotenv": "^8.1.0", | |
"express": "^4.17.1", | |
"fs": "^0.0.1-security", | |
"http": "^0.0.0", | |
"jsonwebtoken": "^8.5.1", | |
"mongoose": "^5.6.7", | |
"morgan": "^1.9.1", | |
"multer": "^1.4.2", | |
"multer-s3": "^2.9.0", | |
"path": "^0.12.7", | |
"swig": "^1.4.2", | |
"uuid": "^3.3.3" | |
}, | |
"devDependencies": { | |
"@types/cors": "^2.8.6", | |
"@types/jsonwebtoken": "^8.3.3", | |
"@types/node": "^12.7.2", | |
"nodemon": "^1.19.1", | |
"ts-node": "^8.3.0", | |
"typescript": "^3.5.3" | |
} | |
} |
This file contains 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
Show hidden characters
{ | |
"compilerOptions": { | |
"sourceMap": true, | |
"lib": ["es2017"], | |
"module": "commonjs", | |
"target": "es2017", | |
"outDir": "./dist", | |
"baseUrl": "./src" | |
}, | |
"exclude": [ | |
"node_modules" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment