Merge pull request #3 from oceanprotocol/feature/cleanup

cleanup
This commit is contained in:
Matthias Kretschmann 2019-06-06 20:11:58 +02:00 committed by GitHub
commit c37b5509b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 8 deletions

View File

@ -37,7 +37,6 @@ Endpoint: [`https://oceanprotocol-community.now.sh`](https://oceanprotocol-commu
"followers": 1000
}
}
```
## Development
@ -45,10 +44,11 @@ Endpoint: [`https://oceanprotocol-community.now.sh`](https://oceanprotocol-commu
Install dependencies:
```bash
npm install -g now
npm install
```
And run the server:
And run the server in dev mode:
```bash
npm start

View File

@ -4,20 +4,17 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "micro",
"dev": "micro-dev",
"start": "now dev",
"test": "eslint --ignore-path .gitignore --ext .js,.jsx ."
},
"dependencies": {
"chalk": "2.4.2",
"micro": "^9.3.4",
"ms": "^2.1.1",
"node-fetch": "2.6.0"
},
"devDependencies": {
"eslint": "^5.16.0",
"eslint-config-oceanprotocol": "^1.3.0",
"eslint-plugin-node": "^9.0.1",
"micro-dev": "^3.0.0"
"eslint-plugin-node": "^9.1.0"
}
}

View File

@ -2,6 +2,6 @@
const chalk = require('chalk')
const log = text => console.log(text)
const logError = text => console.log(chalk.bold.red(text))
const logError = text => console.error(chalk.bold.red(text))
module.exports = { log, logError }