1
0
mirror of https://github.com/oceanprotocol/community-numbers.git synced 2025-01-05 11:25:12 +01:00

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

View File

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

View File

@ -2,6 +2,6 @@
const chalk = require('chalk') const chalk = require('chalk')
const log = text => console.log(text) 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 } module.exports = { log, logError }