forked from McNull/angular-form-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-config.js
58 lines (47 loc) · 1 KB
/
build-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
// - - - - - 8-< - - - - - - - - - - - - - -
var _ = require('lodash');
// - - - - - 8-< - - - - - - - - - - - - - -
var pkg = require('./package.json');
pkg.year = pkg.year || new Date().getFullYear();
// - - - - - 8-< - - - - - - - - - - - - - -
var config = {
/* 'production' || 'development' */
env: process.env.NODE_ENV,
folders: {
dest: 'dest/',
src: 'src/'
},
modules: [
{
name: 'angular-form-gen',
alias: 'fg'
},
{
name: 'angular-logo',
alias: 'ngLogo'
},
{
name: 'github-logo',
alias: 'githubLogo'
},
{
name: 'angular-seo',
alias: 'seo'
},
{
name: 'app'
}
],
bower: {
includeDev: true
},
header: _.template([
'/*!',
' <%= pkg.name %> v<%= pkg.version %>',
' (c) <%= pkg.year %> <%= pkg.author %> <%= pkg.homepage %>',
' License: <%= pkg.license %>',
'*/\n'
].join('\n'), { pkg: pkg })
};
// - - - - - 8-< - - - - - - - - - - - - - -
module.exports = config;