-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.config.js
executable file
·78 lines (69 loc) · 2.37 KB
/
project.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
module.exports = {
project_config: {
/**
* __Required__
* `production_dir` this folder store all compiled files that is ready for **Release**.
*/
production_dir: 'release/',
/**
* __Required__
* `build_dir` this folder store all compiled JavaScript, CSS, HTML, images... sources.
*/
build_dir: 'build/',
/**
* __Required__
* `source_dir` this folder store all compiled JavaScript, CSS, HTML, images... sources.
*/
source_dir: 'src/',
/**
* `log_dir` this folder store all the log files
*/
log_dir: 'log/',
/**
* `api_dir` store api documents
*/
api_dir: 'docs/api/',
/**
* __Required__
* `app_files` stores all files created by this project. Includes js, css, img...
*/
app_files: {
/**
* __Required__
* JavaScript files, you can configure it based on your project
*/
app_js: {
src : ['<%= project_config.source_dir %>common/**/*.js','<%= project_config.source_dir %>app/main/<%= pkg.name %>.js', '<%= project_config.source_dir %>app/**/*.js', '!<%= project_config.source_dir %>vendor/**/*', '!<%= project_config.source_dir %>dummy/**/*'],
dest: '<%= project_config.build_dir %>js/<%= pkg.name %>.js'
},
/**
* __Required__
* AngularJS html template files
*/
tpl: {
src : ['<%= project_config.source_dir %>**/*.tpl.html'],
dest: '<%= project_config.build_dir %>/js/<%= pkg.name %>.tpl.js'
},
/**
* __Required__
* Less css files
*/
less: {
src : '<%= project_config.source_dir %>asset/less/<%= pkg.name %>.less',
dest: '<%= project_config.build_dir %>asset/css/<%= pkg.name %>.min.css'
},
/**
* __Required__
* Resource files, such as: images, fonts...
*/
asset: ['asset/**', '!asset/less/**', '!asset/css/**']
},
/**
* __Required__
* Third part libraries depended by this project
*/
vendor: [
'vendor/**/*'
]
}
};