Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default task renamed to "build", assets task added, html minifiy proc…
…ess updated.
- Loading branch information
1 parent
83a5f40
commit bf615ea
Showing
7 changed files
with
266 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var gulp = require( 'gulp' ); | ||
var del = require( 'del' ); | ||
|
||
// Require main configuration file | ||
var config = require( '../config.js' ); | ||
|
||
// Export functions | ||
exports.clean = clean; | ||
exports.copy = copy; | ||
|
||
// Remove old distribution files | ||
function clean() { | ||
return del( config.paths.assets.clean.src ); | ||
} | ||
|
||
// Copy assets to `dist` directory | ||
function copy() { | ||
return gulp.src( config.paths.assets.copy.src ) | ||
.pipe( gulp.dest( config.paths.assets.copy.dest ) ); | ||
} |
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
Oops, something went wrong.