Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit cb43b90

Browse files
authored
Merge pull request #4 from redpwn/feature/dev-workflow
Dev workflow
2 parents 35796c2 + e375201 commit cb43b90

File tree

3 files changed

+698
-15
lines changed

3 files changed

+698
-15
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,16 @@ The application is built on a PostgreSQL database. You should add the appropriat
2525
yarn run migrate up
2626
```
2727

28+
## Development
29+
30+
For hot reloading, use nodemon.
31+
32+
```javascript
33+
yarn dev
34+
```
35+
36+
To fix style errors, use standard.
37+
38+
```
39+
yarn lint --fix
40+
```

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
"scripts": {
88
"lint": "standard",
99
"start": "node index.js",
10-
"migrate": "node-pg-migrate"
10+
"migrate": "node-pg-migrate",
11+
"dev": "nodemon index.js"
12+
},
13+
"husky": {
14+
"hooks": {
15+
"pre-commit": "yarn lint"
16+
}
1117
},
1218
"dependencies": {
1319
"body-parser": "^1.19.0",
@@ -17,6 +23,8 @@
1723
"pg": "^7.18.1"
1824
},
1925
"devDependencies": {
26+
"husky": "^4.2.1",
27+
"nodemon": "^2.0.2",
2028
"standard": "^14.3.1"
2129
},
2230
"description": "rctf is RedpwnCTF's CTF platform. It is developed and maintained by the [redpwn](https://redpwn.net) CTF team.",

0 commit comments

Comments
 (0)