-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
42 lines (39 loc) · 1.26 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
let gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
cleancss = require('gulp-clean-css'),
rename = require("gulp-rename"),
uglify = require("gulp-uglify"),
concat = require('gulp-concat'),
sourcemaps = require("gulp-sourcemaps");
gulp.task('css', () => {
gulp.src([
'./node_modules/bootstrap/scss/bootstrap.scss',
'./node_modules/sierra-library/src/sierra.scss',
'./src/scss/style.scss'])
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(autoprefixer('last 10 version'))
.pipe(cleancss({level: {1: {specialComments: 0}}}))
.pipe(concat('bundle.min.css'))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('www/css'));
});
gulp.task('js', () => {
return gulp.src([
"./src/js/page.min.js",
"./src/js/jquery.jplayer.js",
"./src/js/draggabilly.pkgd.min.js",
"./src/js/jquery.nicescroll.min.js",
"./src/js/jquery.stickit.js",
"./src/js/menu.min.js",
"./src/js/jquery.validate.min.js",
"./src/js/additional-methods.min.js",
"./src/js/script.js"])
.pipe(sourcemaps.init())
.pipe(uglify())
.pipe(concat('sc.js'))
.pipe(rename('bundle.min.js'))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./www/js/'));
});