This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
83 lines (77 loc) · 2.98 KB
/
config.js
File metadata and controls
83 lines (77 loc) · 2.98 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
module.exports = function () {
var dev = 'dev/',
prod = 'prod/',
devSassFolder = dev + 'styles/',
scriptsFolder = 'scripts',
scriptsSourceFolder = 'scripts_source',
baseHtml = './' + dev + '_html/base/';
var config = {
prod: prod,
dev: dev,
allhtml: dev + '_html/**/*.php',
baseHtml: baseHtml,
devSassFolder: devSassFolder,
sass: [
devSassFolder + '/*.sass',
devSassFolder + '/*.scss',
'!' + devSassFolder + '/_*.scss',
'!' + devSassFolder + '/__*.scss',
'!' + devSassFolder + '/_*.sass',
'!' + devSassFolder + '/__*.sass'
],
cssFolder: 'css',
scriptsSourceFolder: scriptsSourceFolder ,
scriptsFolder: scriptsFolder ,
imagesFolder: 'images',
fontsFolder: 'fonts',
iconicFontName: 'iconic',
scriptsEntries: [dev + scriptsSourceFolder + '/bundle.*.*'],
// scriptsDynamicPath - используется для динамически подгружаемых модулей,
// для доступа с сервера, т.ч. стоит уточнять у бекендера.
scriptsDynamicPath: '/' + scriptsSourceFolder + '/',
injectInput: [
baseHtml + '/head.php',
//'./app/_html/base/scripts.php'
],
compassOptions: {
css: dev + '/css',
sass: dev + '/styles',
time: false,
comments: false,
sourcemap: false,
style: 'nested'
},
PHPServerOptions: {
/* Вместо установки статичных параметров указанных ниже,
* стоит добавить путь к php.exe файлу в PATH переменной операционной системы.
* Пример статичных параметров:
* 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,
stdio: 'ignore' // Закрывает вывод в консоль информацию о загруженных файлах. Если нужно, лучше использовать опции browserSync`а
},
browserSyncOptions: {
notify: false,
proxy: '127.0.0.1:8010/',
port: 80,
open: true,
logConnections: false,
},
bower: {
json: require('./bower.json'),
directory: './bower_components',
//exclude: ['bower_components/modernizr/modernizr.js'],
ignorePath: '../'
}
};
config.wiredepOptions = {
bowerJson: config.bower.json,
directory: config.bower.directory,
//exclude: config.bower.exclude,
ignorePath: config.bower.ignorePath
};
return config;
};