Skip to content
This repository was archived by the owner on Dec 28, 2020. It is now read-only.

Commit 7bb312d

Browse files
committed
Update project settings and add ts-node watcher
1 parent a4d0c8b commit 7bb312d

File tree

5 files changed

+638
-13
lines changed

5 files changed

+638
-13
lines changed

Diff for: .eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ module.exports = {
2222
"plugin:@typescript-eslint/recommended-requiring-type-checking"
2323
],
2424
"rules": {
25+
"@typescript-eslint/member-delimiter-style": "off",
26+
"@typescript-eslint/camelcase": "off",
2527
"prettier/prettier": "error",
2628
}
2729
};

Diff for: .prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"semi": false,
33
"printWidth": 80,
44
"singleQuote": true,
5-
"tabWidth": 2,
5+
"tabWidth": 4,
66
"trailingComma": "none"
77
}

Diff for: nodemon.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"watch": ["./src"],
3+
"ext": "ts",
4+
"ignore": ["*.test.ts"],
5+
"execMap": {
6+
"ts": "ts-node"
7+
}
8+
}

Diff for: package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
"name": "blockchain",
33
"version": "1.0.0",
44
"description": "Build an OOP blockchain using typescript",
5-
"main": "index.js",
5+
"main": "dist/index.js",
66
"author": "Julien <[email protected]>",
77
"license": "MIT",
88
"scripts": {
9+
"start": "node dist/server.js",
10+
"dev": "nodemon src/index.ts 3000",
911
"tsc": "tsc",
10-
"dev": "tsc --watch",
11-
"lint": "eslint . --ext .ts,.tsx"
12+
"tsc:watch": "tsc -w",
13+
"lint": "eslint . --ext .ts"
1214
},
1315
"dependencies": {},
1416
"devDependencies": {
@@ -22,7 +24,9 @@
2224
"eslint-plugin-jsx-a11y": "^6.2.3",
2325
"eslint-plugin-prettier": "^3.1.2",
2426
"eslint-plugin-react": "^7.19.0",
27+
"nodemon": "^2.0.3",
2528
"prettier": "^2.0.4",
29+
"ts-node": "^8.8.2",
2630
"typescript": "^3.8.3"
2731
}
2832
}

0 commit comments

Comments
 (0)