瀏覽代碼

Add nodemon

fzadrazil 5 年之前
父節點
當前提交
4c6c0a898f
共有 4 個文件被更改,包括 1109 次插入1 次删除
  1. 3 0
      .babelrc
  2. 1 0
      .gitignore
  3. 1099 0
      package-lock.json
  4. 6 1
      package.json

+ 3 - 0
.babelrc

@@ -0,0 +1,3 @@
+{
+  "presets": ["env"]
+}

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 node_modules
 notes.txt
+/.vs
 .~lock.*

File diff suppressed because it is too large
+ 1099 - 0
package-lock.json


+ 6 - 1
package.json

@@ -4,7 +4,7 @@
   "description": "Web service for Rural Attractivness app",
   "main": "index.js",
   "scripts": {
-    "start": "node index.js"
+    "start": "nodemon --exec babel-node index.js"
   },
   "author": "František Zadražil",
   "license": "ISC",
@@ -13,5 +13,10 @@
     "csv-parse": "^4.8.5",
     "express": "^4.17.1",
     "r-script": "0.0.4"
+  },
+  "devDependencies": {
+    "babel-cli": "^6.26.0",
+    "babel-preset-env": "^1.7.0",
+    "nodemon": "^2.0.2"
   }
 }

Some files were not shown because too many files changed in this diff