seed houses
This commit is contained in:
22
gulpfile.babel.js
Normal file
22
gulpfile.babel.js
Normal 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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user