Skip to content

Commit cb380b3

Browse files
committed
typescript-node-starter
0 parents  commit cb380b3

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
.env

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "weather-api",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"watch": "tsc -w",
8+
"dev": "nodemon dist/index.js",
9+
"start": "node dist/index.js"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"devDependencies": {
15+
"@types/node": "^14.0.27",
16+
"nodemon": "^2.0.4",
17+
"typescript": "^3.9.7"
18+
},
19+
"dependencies": {
20+
}
21+
}

src/index.ts

Whitespace-only changes.

tsconfig.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es6",
4+
"module": "commonjs",
5+
"lib": [
6+
"dom",
7+
"es6",
8+
"es2017",
9+
"esnext.asynciterable"
10+
],
11+
"sourceMap": true,
12+
"outDir": "./dist",
13+
"moduleResolution": "node",
14+
"removeComments": true,
15+
"noImplicitAny": true,
16+
"strictNullChecks": true,
17+
"strictFunctionTypes": true,
18+
"noImplicitThis": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noImplicitReturns": true,
22+
"noFallthroughCasesInSwitch": true,
23+
"allowSyntheticDefaultImports": true,
24+
"esModuleInterop": true,
25+
"emitDecoratorMetadata": true,
26+
"experimentalDecorators": true,
27+
"resolveJsonModule": true,
28+
"baseUrl": "."
29+
},
30+
"exclude": [
31+
"node_modules"
32+
],
33+
"include": [
34+
"./src/**/*.tsx",
35+
"./src/**/*.ts"
36+
]
37+
}

0 commit comments

Comments
 (0)