-
Notifications
You must be signed in to change notification settings - Fork 11
/
gulpfile.js
80 lines (73 loc) · 2.51 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
var gulp = require('gulp');
var ANGULAR = {
js: {
files: [
'./bower_components/angular/angular.js',
'./bower_components/angular/angular.min.js',
'./bower_components/angular/angular.min.js.map',
'./bower_components/angular-resource/angular-resource.js',
'./bower_components/angular-resource/angular-resource.min.js',
'./bower_components/angular-resource/angular-resource.min.js.map',
'./bower_components/angular-route/angular-route.js',
'./bower_components/angular-route/angular-route.min.js',
'./bower_components/angular-route/angular-route.min.js.map'
],
dest: './site/vendors/js'
}
};
var BOOTSTRAP = {
js: {
files: [
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./bower_components/bootstrap/dist/js/bootstrap.min.js'
],
dest: './site/vendors/js'
},
css: {
files: [
'./bower_components/bootstrap/dist/css/bootstrap.css',
'./bower_components/bootstrap/dist/css/bootstrap.min.css',
'./bower_components/bootstrap/dist/css/bootstrap.css.map'
],
dest: './site/vendors/css'
},
fonts: {
files: [
'./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot',
'./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg',
'./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf',
'./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff'
],
dest: './site/vendors/fonts'
}
};
var JQUERY = {
js: {
files: [
'./bower_components/jquery/dist/jquery.js',
'./bower_components/jquery/dist/jquery.min.js',
'./bower_components/jquery/dist/jquery.min.map'
],
dest: './site/vendors/js'
},
};
gulp.task('angular', ['angular-js']);
gulp.task('angular-js', function() {
return gulp.src(ANGULAR.js.files).pipe(gulp.dest(ANGULAR.js.dest));
});
gulp.task('bootstrap', ['bootstrap-js', 'bootstrap-css', 'bootstrap-fonts']);
gulp.task('bootstrap-js', function() {
return gulp.src(BOOTSTRAP.js.files).pipe(gulp.dest(BOOTSTRAP.js.dest));
});
gulp.task('bootstrap-css', function() {
return gulp.src(BOOTSTRAP.css.files).pipe(gulp.dest(BOOTSTRAP.css.dest));
});
gulp.task('bootstrap-fonts', function() {
return gulp.src(BOOTSTRAP.fonts.files).pipe(gulp.dest(BOOTSTRAP.fonts.dest));
});
gulp.task('jquery', ['jquery-js']);
gulp.task('jquery-js', function() {
return gulp.src(JQUERY.js.files).pipe(gulp.dest(JQUERY.js.dest));
});
// Default Taskp
gulp.task('default', ['angular', 'bootstrap', 'jquery']);