-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from masterchief01/develop
setup gulp task to empty the uploads directory before every test run …
- Loading branch information
Showing
8 changed files
with
1,564 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const gulp = require('gulp'); | ||
const requireDir = require('require-dir'); | ||
requireDir('./tasks', { recurse: true }); | ||
|
||
gulp.task('dev:pipeline', gulp.series('dev:cleanup')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const gulp = require('gulp'); | ||
const del = require('del'); | ||
|
||
const cleanup = (cb) => { | ||
del('uploads/**', { force: true }); | ||
cb(); | ||
}; | ||
|
||
gulp.task('dev:cleanup', cleanup); | ||
module.exports = cleanup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const gulp = require('gulp'); | ||
|
||
const defaultTask = (cb) => { | ||
console.log('Running the Default Task!'); | ||
cb(); | ||
}; | ||
|
||
gulp.task('default', defaultTask); | ||
module.exports = defaultTask; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const gulp = require('gulp'); | ||
const run = require('gulp-run'); | ||
const { exec } = require('child_process'); | ||
|
||
const rundev = (cb) => { | ||
run('yarn dev').exec(); | ||
cb(); | ||
}; | ||
|
||
gulp.task('dev', rundev); | ||
module.exports = rundev; |
Binary file not shown.
Empty file.
Oops, something went wrong.