-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-env.js.dist
executable file
·98 lines (88 loc) · 2.58 KB
/
build-env.js.dist
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
'use strict';
/**
* Environment constants.
*
* This configuration file contains all of the environment-specific values
* needed to build a working website. The common values should be committed to
* the `build-env.js.dist` file. A non-committed environment-specific copy of
* the file should then be made to setup production, staging, and sandboxes as
* needed.
*
* @class Config
* @static
*/
var Config = {
/**
* The canonical address of the website. No trailing slash. Protocol may be
* omitted (http://www.paulirish.com/2010/the-protocol-relative-url/).
*
* @property URL_SITE
* @type String
*/
URL_SITE: '//www.example.com', // protocol-relative address
// URL_SITE: 'https://www.example.com', // absolute address
/**
* The base path of the website. Trailing slashes should be included for any
* path other than an empty page-relative value.
*
* @property URL_BASE
* @type String
*/
URL_BASE: '', // page-relative base path
// URL_BASE: '/', // root-relative base path
// URL_BASE: '/foo/bar/', // root-directory-relative base path
// URL_BASE: '//www.example.com/foo/', // absolute base path
/**
* Path where Node.js modules are installed. No traling slash.
*
* @property DIR_NPM
* @type String
*/
DIR_NPM: 'node_modules',
/**
* Path where Bower components are installed. No traling slash.
*
* @property DIR_BOWER
* @type String
*/
DIR_BOWER: 'src/assets/vendor',
/**
* Path to uncompiled source files. No traling slash.
*
* @property DIR_SRC
* @type String
*/
DIR_SRC: 'src',
/**
* Path to temporary directory (for multi-pass compilation). No traling slash.
*
* @property DIR_TMP
* @type String
*/
DIR_TMP: '.tmp',
/**
* Path to compiled output files. No traling slash.
*
* @property DIR_DEST
* @type String
*/
DIR_DEST: 'web',
/**
* Path to documentation output files. No traling slash.
*
* @property DIR_DOCS
* @type String
*/
DIR_DOCS: 'docs',
/**
* DANGER: Whether the Gruntfile should be allowed to modify directories
* outside of the current working directory (CDW). Should only be enabled
* if you understand the effects and repercussions. Useful when building
* in environments where only the contents of DIR_DEST should be publicly
* accessible.
*
* @property UNSAFE_MODE
*/
UNSAFE_MODE: false
};
module.exports = Config;