forked from gaetancollaud/fablab-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
41 lines (36 loc) · 1.36 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
"use strict";
let gulp = require('gulp');
let del = require('del');
let runSequence = require('run-sequence');
let extdir = 'src/main/webapp/ext-lib'
gulp.task('all:clean', () => del([extdir]));
gulp.task('all:copy:libs', [], () => gulp
.src([
'node_modules/*angular/**/*.js',
'node_modules/*angular-bootstrap/**/*.js',
'node_modules/*angular-route/**/*.js',
'node_modules/*angular-elastic/**/*.js',
'node_modules/*angular-resource/**/*.js',
'node_modules/*angular-sanitize/**/*.js',
'node_modules/*angular-translate/**/*.+(min.js|min.css)',
'node_modules/*angular-ui-calendar/**/*.js',
'node_modules/*ui-select/**/*.+(min.js|min.css)',
'node_modules/*bootstrap/dist/**/*.+(min.js|min.css|woff2|woff|ttf)',
'node_modules/*components-font-awesome/**/*.js',
'node_modules/*fullcalendar/dist/**/*.+(min.js|min.css)',
'node_modules/*font-awesome/**/*.+(woff|woff2|ttf|min.css)',
'node_modules/*jquery/dist**/*.js',
'node_modules/*masonry-layout/**/*.js',
'node_modules/*moment/**/*.js',
'node_modules/*moment-range/**/*.js',
'node_modules/*ng-file-upload/dist/**/*.js',
'node_modules/*ng-table/**/*.+(min.js|min.css)',
'node_modules/*toastr/build/**/*.+(min.js|min.css)',
'node_modules/*wizmarkdown/wizMarkdown/wizMarkdown.js',
])
.pipe(gulp.dest(extdir)));
gulp.task('prod:all', (cb) => runSequence(
'all:clean',
[
'all:copy:libs',
], cb));