Просмотр исходного кода

Remove that shitty extraverse package and add dependencies for event scheduling

Matt Coles лет назад: 9
Родитель
Сommit
0b94d573ee
2 измененных файлов с 6 добавлено и 3 удалено
  1. 0 1
      index.js
  2. 6 2
      package.json

+ 0 - 1
index.js

16
 app.use(bodyParser.json()); // for parsing application/json
16
 app.use(bodyParser.json()); // for parsing application/json
17
 app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
17
 app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
18
 app.use('/', route_manager);
18
 app.use('/', route_manager);
19
-app.use('/source', require('extraverse')('/source', { ignore: ['config'] }));
20
 
19
 
21
 app.listen(3000, function () {
20
 app.listen(3000, function () {
22
     console.log('Example app listening on port 3000!');
21
     console.log('Example app listening on port 3000!');

+ 6 - 2
package.json

6
   "scripts": {
6
   "scripts": {
7
     "test": "node index.js"
7
     "test": "node index.js"
8
   },
8
   },
9
+  "repository": {
10
+    "type": "git",
11
+    "url": "https://github.com/Alpha-Atom/ip-project-server.git"
12
+  },
9
   "author": "Matt",
13
   "author": "Matt",
10
   "license": "MIT",
14
   "license": "MIT",
11
   "dependencies": {
15
   "dependencies": {
12
     "bcrypt-nodejs": "0.0.3",
16
     "bcrypt-nodejs": "0.0.3",
13
     "body-parser": "^1.15.0",
17
     "body-parser": "^1.15.0",
14
     "express": "^4.13.4",
18
     "express": "^4.13.4",
15
-    "extraverse": "^1.0.27",
16
-    "ioredis": "^1.15.1"
19
+    "ioredis": "^1.15.1",
20
+    "node-schedule": "^1.1.0"
17
   }
21
   }
18
 }
22
 }