mirror of
https://github.com/gesquive/slate.git
synced 2025-01-21 18:38:34 +01:00
fix task vendor
This commit is contained in:
parent
8a62aa2e75
commit
cb61575251
28
gulpfile.js
28
gulpfile.js
@ -57,21 +57,25 @@ gulp.task('pack-css', function () {
|
||||
.pipe(gulp.dest(scssDst));
|
||||
});
|
||||
|
||||
gulp.task('vendor', function () {
|
||||
// del([scssDst + '/font-awesome.*', fontDst]);
|
||||
gulp.src(['./node_modules/font-awesome/css/font-awesome.css'])
|
||||
gulp.task('vendor', ['vendor-css', 'vendor-font', 'vendor-js']);
|
||||
|
||||
gulp.task('vendor-css', function() {
|
||||
return gulp.src(['./node_modules/font-awesome/css/font-awesome.css'])
|
||||
.pipe(gulp.dest(scssVnd));
|
||||
|
||||
gulp.src(['./node_modules/font-awesome/fonts/*'])
|
||||
.pipe(gulp.dest(fontDst));
|
||||
|
||||
gulp.src(['./node_modules/shufflejs/dist/shuffle.js'])
|
||||
.pipe(gulp.dest(jsVnd));
|
||||
|
||||
gulp.src(['./node_modules/tinycolor2/tinycolor.js'])
|
||||
.pipe(gulp.dest(jsVnd));
|
||||
});
|
||||
|
||||
gulp.task('vendor-font', function() {
|
||||
return gulp.src(['./node_modules/font-awesome/fonts/*'])
|
||||
.pipe(gulp.dest(fontDst));
|
||||
})
|
||||
|
||||
gulp.task('vendor-js', function() {
|
||||
return gulp.src([
|
||||
'./node_modules/shufflejs/dist/shuffle.js',
|
||||
'./node_modules/tinycolor2/tinycolor.js'
|
||||
]).pipe(gulp.dest(jsVnd));
|
||||
});;
|
||||
|
||||
// configure which files to watch and what tasks to use on file changes
|
||||
gulp.task('watch', function() {
|
||||
runSequence('pack-css', 'pack-js');
|
||||
|
Loading…
Reference in New Issue
Block a user