-
Notifications
You must be signed in to change notification settings - Fork 8
/
gulpfile.js
55 lines (50 loc) · 1.71 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
43
44
45
46
47
48
49
50
51
52
53
54
55
var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
gulp.task('default', [
'copy',
'css',
'js'
]);
gulp.task('less', function () {
return gulp.src('./assets/less/app.less')
.pipe(sourcemaps.init())
.pipe(less())
.pipe(sourcemaps.write())
.pipe(gulp.dest('./circuit/static/css'));
});
gulp.task('css', ['less'], function () {
return gulp.src([
'./circuit/static/css/app.css',
'./assets/vendor/wow/css/libs/animate.css',
'./assets/vendor/pnotify/pnotify.core.css',
'./assets/vendor/pnotify/pnotify.buttons.css'
])
.pipe(concat('app.css'))
.pipe(gulp.dest('./circuit/static/css'))
});
gulp.task('js', function () {
return gulp.src([
'./assets/vendor/jquery/dist/jquery.js',
'./assets/vendor/bootstrap/dist/js/bootstrap.js',
'./assets/vendor/bootstrap-material-design/dist/js/material.js',
'./assets/vendor/bootstrap-material-design/dist/js/ripples.js',
'./assets/vendor/vue/dist/vue.js',
'./assets/vendor/devbridge-autocomplete/dist/jquery.autocomplete.js',
'./assets/vendor/wow/dist/wow.js',
'./assets/vendor/pnotify/pnotify.core.js',
'./assets/vendor/pnotify/pnotify.buttons.js',
'./assets/js/notifications.js',
'./assets/js/app.js'
])
.pipe(concat('app.js'))
.pipe(gulp.dest('./circuit/static/js'))
});
gulp.task('copy', function () {
return gulp.src(['assets/vendor/bootstrap-material-design/fonts/*',
'assets/vendor/bootstrap/fonts/*'
])
.pipe(gulp.dest('./circuit/static/fonts'));
});