convert require to import statements

This commit is contained in:
Jakub Sokołowski 2018-10-16 14:12:06 -04:00
parent 283a74f657
commit c2b4a4ce6e
2 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@
},
"scripts": {
"start": "nodemon --exec babel-node --presets env,stage-2 src/index.js",
"build": "node_modules/.bin/babel src/index.js -o out/counter.js"
"build": "babel src -o out/counter.js"
},
"keywords": [],
"author": "",

View File

@ -1,9 +1,9 @@
const Koa = require('koa')
const Router = require('koa-router')
const JSON = require('koa-json')
import Koa from 'koa'
import Router from 'koa-router'
import JSON from 'koa-json'
const Counter = require('./counter')
const Redis = require('async-redis')
import Counter from './counter'
import Redis from 'async-redis'
/* DEFAULTS */
const REDIS_HOST = 'localhost'