Jelajahi Sumber

Add nodemon

fzadrazil 5 tahun lalu
induk
melakukan
1188e329c2
4 mengubah file dengan 1110 tambahan dan 2 penghapusan
  1. 3 0
      .babelrc
  2. 2 1
      .gitignore
  3. 1099 0
      package-lock.json
  4. 6 1
      package.json

+ 3 - 0
.babelrc

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

+ 2 - 1
.gitignore

@@ -1,2 +1,3 @@
 node_modules
 node_modules
-notes.txt
+notes.txt
+/.vs

File diff ditekan karena terlalu besar
+ 1099 - 0
package-lock.json


+ 6 - 1
package.json

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

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini