Created
May 7, 2020 21:44
-
-
Save Happytreat/525f9a16a1726b21ca4d1f91a8c3cabf to your computer and use it in GitHub Desktop.
Setup Typescript project
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
{ | |
... | |
"scripts": { | |
"start": "tsc && node ./dist/index.js", | |
"dev": "ts-node-dev --no-notify --respawn --transpileOnly src/index" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"@types/node": "^13.13.4", | |
"ts-node-dev": "^1.0.0-pre.44", | |
"tslint": "^6.1.2", | |
"tslint-config-airbnb": "^5.11.2", | |
"typescript": "^3.8.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": { | |
"target": "es6", | |
"module": "commonjs", | |
"strict": true, | |
"outDir": "./dist", | |
"sourceMap": true, | |
"esModuleInterop": true, | |
"resolveJsonModule": true | |
}, | |
"include": ["src/*"], | |
"exclude": ["node_modules", "**/*.spec.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
{ | |
"defaultSeverity": "error", | |
"extends": "tslint-config-airbnb", | |
"jsRules": {}, | |
"rules": { | |
"eofline": false | |
}, | |
"rulesDirectory": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment