seed houses

This commit is contained in:
Eric Hulburd
2016-01-27 20:15:09 -06:00
parent 220ddfed19
commit e4513282f9
17 changed files with 159 additions and 14634 deletions

22
gulpfile.babel.js Normal file
View File

@@ -0,0 +1,22 @@
import gulp from 'gulp';
import yargs from 'yargs';
import DB from './config/database';
import {PowerDataSeed, HouseSeed} from './lib/tasks/seed_data'
gulp.task('generate_power_csv', function(done){
DB.sync().then(()=>{
PowerDataSeed.generateCsv(yargs.argv, done);
});
});
gulp.task('save_power_csv', function(done){
DB.sync().then(()=>{
PowerDataSeed.saveCsv(yargs.argv, done);
});
});
gulp.task('save_house_csv', function(done){
DB.sync().then(()=>{
HouseSeed.saveCsv(yargs.argv, done);
});
});