import db from '../db'; db.connect('dev', () => { console.info('dropping data...'); db.drop(() => { // reset database console.info('loading data...'); db.loadJson(require('./db.json'), () => { console.info('done'); process.exit(0); }); }); });