-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulp.config.js
91 lines (80 loc) · 2.28 KB
/
gulp.config.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
81
82
83
84
85
86
87
88
89
90
/*jshint node:true */
module.exports = function() {
var src = './src/';
var app = src + 'app/';
var email = src +'email/';
var temp = './tmp/';
var config = {
// Reserved and written to in gulpfile.js
env: '',
settings: '',
/************** Paths ****************/
build: 'dist/',
// App
fonts: app + '_fonts/**/*.{otf,svg,eot,ttf,woff,woff2}',
html: {
root: app + '*.html',
nonRoot: [
app + '**/*.html',
'!' + email + '**/*',
'!' + app + '*.html',
],
},
media: [
// Ignore media, declaring the _images folder directly moves all of its contents
// without the container folder getting in the way
app + '_images/**/*.{png,gif,jpg,jpeg,ico,svg,mp4,ogv,webm,pdf}',
app + '**/*.{png,gif,jpg,jpeg,ico,svg,mp4,ogv,webm,pdf}',
'!' + app + '_fonts/*',
],
misc: [
app + '*.{htaccess,ico,xml}',
app + 'humans.txt'
],
robots: {
default: app + 'robots.txt',
prod: app + 'robots.txt',
},
styles: {
root: app + 'app.scss',
all: [
app + '**/*.scss',
app + '**/*.css',
],
},
scripts: {
app: [
temp + 'config.js', // this is a built file
app + '**/init.js',
app + '**/*.js',
'!' + app + '_lib/**/*', // don't clobber lib
],
lib: [
app + '_lib/jquery.min.js',
app + '_lib/angular.min.js',
app + '_lib/**/*.min.js',
],
},
// Emails
email: [
// ignore built files
email + '*.html',
'!' + email + '*.inline.html',
],
// Temp
temp: temp,
/************** Settings ****************/
node: {
port: '9000',
lrPort: '35729', // not used?
},
sassSettings: {
// outputStyle: 'compressed',
// precision: 8,
},
uglifySettings: {
mangle: false,
},
};
return config;
};