Skip to content

Instantly share code, notes, and snippets.

@emmiep
Last active May 31, 2020 10:17
Show Gist options
  • Select an option

  • Save emmiep/7f1b3a543313dc1de224649d0115ea1c to your computer and use it in GitHub Desktop.

Select an option

Save emmiep/7f1b3a543313dc1de224649d0115ea1c to your computer and use it in GitHub Desktop.

Revisions

  1. emmiep revised this gist May 31, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nodemon.json
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    {
    "execMap": {
    "go": "go run"
    "go": "go run {{filename}} || exit 1"
    },
    "ext": "go"
    }
  2. emmiep created this gist May 9, 2020.
    6 changes: 6 additions & 0 deletions nodemon.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "execMap": {
    "go": "go run"
    },
    "ext": "go"
    }
    8 changes: 8 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    {
    "scripts": {
    "watch": "nodemon --signal SIGINT main.go"
    },
    "devDependencies": {
    "nodemon": "^2.0.3"
    }
    }