-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulp.config.js
More file actions
107 lines (100 loc) · 2.5 KB
/
gulp.config.js
File metadata and controls
107 lines (100 loc) · 2.5 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
module.exports = function() {
var app = 'app/',
temp = './.tmp/',
dist = './';
var config = {
/**
* Files paths
*/
alljs: [
app + '**/*.js',
'./*.js'
],
injectInput: [
'./app/_html/partials/head.php',
'./app/_html/partials/scripts.php'
],
injectOutput: app + '_html/partials',
allsass: [
app + 'styles/**/*.sass',
app + 'styles/**/*.scss'
],
allhtml: app + '_html/**/*.php',
css: app + 'css',
sass: app + 'styles/styles.sass',
js: [
app + 'scripts/**/*.js',
'!' + app + 'scripts/plugins/*.js',
],
html: app + '_html/',
fonts: app + 'fonts/**/*.*',
images: [
app + 'images/**/*.*',
'./images/**/*.*'
],
dist: dist,
client: app,
temp: temp,
/**
* Bower and NPM locations
*/
bower: {
json: require('./bower.json'),
directory: './bower_components',
exclude: ['bower_components/modernizr/modernizr.js'],
ignorePath: '../'
}
};
/**
* Compass config
*/
config.getCompassOptions = function() {
var options = {
config_file: './config.rb',
css: './app/css',
sass: './app/styles',
time: true,
comments: true,
style: 'expanded'
};
return options;
};
/**
* Wiredep config
*/
config.getWiredepDefaultOptions = function() {
var options = {
bowerJson: config.bower.json,
directory: config.bower.directory,
exclude: config.bower.exclude,
ignorePath: config.bower.ignorePath
};
return options;
};
/**
* PHP server config
*/
config.getPHPServerOptions = function() {
var options = {
bin: 'D:/wamp/bin/php/php5.5.12/php.exe',
ini: 'D:/wamp/bin/php/php5.5.12/php.ini',
base: './',
port: 8010,
keepalive: true
}
return options;
};
/**
* BrowserSync config
*/
config.getBrowserSyncOptions = function() {
var options = {
notify: false,
proxy: '127.0.0.1:8010/app/',
port: 80,
open: true
};
return options;
};
return config;
};