-
Notifications
You must be signed in to change notification settings - Fork 22
/
gulpfile.js
75 lines (68 loc) · 2.95 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
//npm install gulp-concat gulp-rename gulp-uglify gulp-minify-css --save-dev
// Dependencies
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var minifyCSS = require('gulp-minify-css');
// Task
gulp.task('miniJS', function() {
gulp.src(['./public/javascripts/colors.js',
'./public/javascripts/species-list-info.js',
'./public/javascripts/third_party/wNumb.js',
'./public/javascripts/third_party/nouislider.min.js',
'./public/javascripts/third_party/jquery.min.js',
'./public/javascripts/third_party/lodash.min.js',
'./public/javascripts/third_party/bootstrap.min.js',
'./public/javascripts/third_party/bootstrap-toggle.min.js',
'./public/javascripts/third_party/bootstrap-multiselect.js',
'./public/javascripts/third_party/jquery.bootstrap-autohidingnavbar.min.js',
'./public/javascripts/third_party/call-autohidingnavbar.js',
'./public/javascripts/third_party/d3.min.js',
'./public/javascripts/third_party/d3-tip.min.js',
'./public/javascripts/third_party/crossfilter.min.js',
'./public/javascripts/third_party/dc.min.js',
'./public/javascripts/third_party/table_plugin/jquery.dataTables.min.js',
'./public/javascripts/third_party/table_plugin/dataTables.bootstrap.min.js',
'./public/javascripts/third_party/table_plugin/dataTables.colReorder.min.js',
'./public/javascripts/third_party/msa-new.js',
'./public/javascripts/third_party/tnt.tree.min.js',
'./public/javascripts/third_party/jquery.panzoom.min.js',
'./public/javascripts/data_path-compare.js',
'./public/javascripts/tooltips.js',
'./public/javascripts/datatable-gc.js',
'./public/javascripts/tree-init.js',
'./public/javascripts/tree-view-compare.js',
'./public/javascripts/interact-compare.js',
'./public/javascripts/meta-color-legend.js',
'./public/javascripts/render_viewer.js',
'./public/javascripts/datatable-meta.js'
])
.pipe(concat('all-edge.js'))
.pipe(uglify())
.pipe(gulp.dest('./public/dist/'))
});
gulp.task('miniCSS', function() {
gulp.src([
'./public/stylesheets/pace-theme-center-atom.css',
'./public/stylesheets/bootstrap.min.css',
'./public/stylesheets/bootstrap_customized.css',
'./public/stylesheets/bootstrap-toggle.min.css',
'./public/stylesheets/bootstrap-multiselect.css',
'./public/stylesheets/nouislider.min.css',
'./public/stylesheets/dc.css',
'./public/stylesheets/dataTables.bootstrap.css',
'./public/stylesheets/dataTables-customized.css',
'./public/stylesheets/msa-new.css',
'./public/stylesheets/d3-tip.css',
'./public/stylesheets/page-appearance.css',
'./public/stylesheets/autohiding-navbar2.css',
'./public/stylesheets/footer.css'
])
.pipe(minifyCSS({processImport: false}))
//.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9'))
.pipe(concat('all-edge.css'))
.pipe(gulp.dest('./public/dist/'))
});
gulp.task('default', ['miniJS','miniCSS'], function() {
});