-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgulp.config.js
More file actions
80 lines (73 loc) · 2.05 KB
/
gulp.config.js
File metadata and controls
80 lines (73 loc) · 2.05 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
'use strict';
module.exports = function() {
var client = './client/';
var server = './server/';
var tests = './__tests__/';
var pub = './public/';
var dist = './dist/';
var config = {
/**
* Files paths
*/
alljs: [
// tests + '**/*.js',
client + 'app/**/*.js',
'!' + client + 'bower_components/**/*.js', // exclude bower component js files
'!' + client + 'app/bundle.js', // exclude bundle.js
'!' + client + 'app/bundle.min.js', // exclude bundle.min.js
server + '**//**/**/*.js'
],
allserverjs: [
server + '**/**/**/*.js',
'!' + server + 'api/1/freelancersLogic.js',
'!' + server + 'api/1/odeskOauth.js',
'!' + server + 'dataProcessing/dataProcessingLogic.js',
'!' + server + 'deprecatedServerLogic/**/**/**/*.js',
'!' + server + 'config/utils.js'
],
dist: dist,
client: client,
clientTests: tests + 'clientSpec.js',
css: [
client + 'styles/css/*'
],
index: client + 'index.html',
js: [
'./client/app/app.js',
'!' + client + 'app/bundle.min.js',
'!' + client + 'bower_components/**/*.js' // exclude bower component js files
],
less: client + 'styles/styles.less',
pub: pub,
server: server,
serverjs: server + '**/*.js',
tests: tests,
/**
* Bower and NPM locations
*/
bower: {
json: require('./bower.json'),
directory: client + 'bower_components/',
ignorePath: '../..'
},
packages: [
'./package.json',
'./bower.json'
],
/**
* Node settings
*/
distPort: 9999,
defaultPort: 7203,
nodeServer: server + 'server.js'
};
config.getWiredepDefaultOptions = function() {
var options = {
bowerJson: config.bower.json,
directory: config.bower.directory,
ignorePath: config.bower.ignorePath
};
return options;
};
return config;
};