2017-06-22 01:29:31 +08:00
|
|
|
'use strict';
|
|
|
|
/**
|
|
|
|
*
|
2017-06-09 02:28:26 +08:00
|
|
|
*/
|
|
|
|
|
2017-06-22 01:29:31 +08:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var cp = require('child_process');
|
2017-06-22 01:10:25 +08:00
|
|
|
|
2017-06-22 01:29:31 +08:00
|
|
|
function exec(cmd) {
|
|
|
|
cp.exec(cmd, function (err, stdout, stderr) {
|
|
|
|
console.log(stdout);
|
|
|
|
console.log(stderr);
|
|
|
|
});
|
|
|
|
}
|
2017-06-22 01:10:25 +08:00
|
|
|
|
|
|
|
gulp.task('reset', function() {
|
|
|
|
exec('php artisan migrate:refresh --seed --seeder DevelopmentSeeder');
|
|
|
|
});
|