Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2648 - Fix issue when build/watch tasks are imported without sub-tas…
…ks defined
- Loading branch information
Showing
5 changed files
with
49 additions
and
4 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
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,19 @@ | ||
/******************************* | ||
Define Sub-Tasks | ||
*******************************/ | ||
|
||
module.exports = function(gulp) { | ||
|
||
var | ||
// build sub-tasks | ||
buildJS = require('./../build/javascript'), | ||
buildCSS = require('./../build/css'), | ||
buildAssets = require('./../build/assets') | ||
; | ||
|
||
// in case these tasks are undefined during import, less make sure these are available in scope | ||
gulp.task('build-javascript', 'Builds all javascript from source', buildJS); | ||
gulp.task('build-css', 'Builds all css from source', buildCSS); | ||
gulp.task('build-assets', 'Copies all assets from source', buildAssets); | ||
|
||
}; |
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,16 @@ | ||
/******************************* | ||
Define Sub-Tasks | ||
*******************************/ | ||
|
||
module.exports = function(gulp) { | ||
|
||
var | ||
// rtl | ||
buildRTL = require('./../rtl/build'), | ||
watchRTL = require('./../rtl/watch') | ||
; | ||
|
||
gulp.task('watch-rtl', 'Build all files as RTL', watchRTL); | ||
gulp.task('build-rtl', 'Watch files as RTL ', buildRTL); | ||
|
||
}; |
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