Skip to content

Commit

Permalink
-change npm to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
giangmd-soft-flight committed Mar 1, 2019
1 parent 954a3b7 commit 4478926
Show file tree
Hide file tree
Showing 5 changed files with 3,799 additions and 5,379 deletions.
18 changes: 12 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
var gulp = require('gulp'),
sass = require('gulp-sass'),
htmlPartial = require('gulp-html-partial'),
fileinclude = require('gulp-file-include'),
htmlmin = require('gulp-htmlmin'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
minifyCSS = require('gulp-minify-css'),
csso = require('gulp-csso'),
clean = require('gulp-rimraf'),
runSequence = require('run-sequence');

Expand All @@ -18,7 +19,7 @@ gulp.task('sass', function() {

gulp.src('src/scss/*.scss')
.pipe(sass({outputStyle: 'compressed'}))
.pipe(minifyCSS())
.pipe(csso())
.pipe(concat('style.min.css'))
.pipe(gulp.dest('dist/css/'));
});
Expand All @@ -31,7 +32,7 @@ gulp.task('css', function() {
'node_modules/@fortawesome/fontawesome-free/css/all.css',
'src/css/**/*.css'
])
.pipe(minifyCSS())
.pipe(csso())
.pipe(concat('lib.min.css'))
.pipe(gulp.dest('dist/css'));
});
Expand Down Expand Up @@ -62,8 +63,13 @@ gulp.task('html', function () {
console.log("HTML task run");

gulp.src(['src/*.html'])
.pipe(htmlPartial({
basePath: 'src/partials/'
.pipe(fileinclude({
prefix: '@@',
basepath: 'src/partials'
}))
.pipe(htmlmin({
collapseWhitespace: true,
removeComments: true
}))
.pipe(gulp.dest('dist'));
});
Expand Down
Loading

0 comments on commit 4478926

Please sign in to comment.