-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
68 lines (61 loc) · 1.58 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
/* jshint node:true */
/**
* @author Wassim Chegham <maneki.nekko@gmail.com>
* @author Vincent Ogloblinsky <vincent.ogloblinsky@gmail.com>
*/
'use strict';
var gulp = require('gulp'),
$ = require('gulp-load-plugins')({
pattern: ['run-sequence']
});
gulp.paths = {
src: 'src',
dist: 'dist',
tmp: '.tmp',
doc: 'doc',
picFolder: 'ci'
};
gulp.config = {
JS_FILES: ['app/scripts/**/*.js'],
CSS_FILES: ['app/styles/**/*.css', '!app/styles/animations/**'],
HTML_FILES: ['app/**/*.html', '!app/{components,test}/**/*.html'],
IMG_FILES: ['app/images/**/*'],
EXTRA_FILES: ['app/*.*', '!app/*.html', '!app/**/.DS_Store', 'node_modules/apache-server-configs/dist/.htaccess'],
FONT_FILES: ['app/fonts/**/*'],
CSS_ANIMATIONS: ['app/styles/animations/**'],
AUTOPREFIXER_BROWSERS: [
'ie >= 10',
'ff >= 30',
'chrome >= 34',
'safari >= 7',
'opera >= 23'
],
OUTPUT_DIRS: {
PLATO: 'reporters/plato/',
STYLES: '.tmp/styles',
ANIMATIONS_STYLES: 'dist/styles/animations'
},
PORT_DEV: 1337,
BANNER: [
'/**',
' * <%= pkg.name %> - Copyright (c) <%= new Date().getFullYear() %> SII Group.',
' * <%= pkg.description %>',
' * @version v<%= pkg.version %>',
' * @license <%= pkg.license %>',
' */',
'',
''
].join('\n')
};
require('require-dir')('./gulp');
gulp.task('build', ['clean'], function(cb) {
return $.runSequence(
['copy', 'styles', 'animation-styles'], ['plato', 'images', 'fonts', 'html'],
'vulcanize',
'update-server-url',
'war',
cb);
});
gulp.task('default', function(){
gulp.start('build');
});