-
Notifications
You must be signed in to change notification settings - Fork 0
/
project-config.js
executable file
·86 lines (71 loc) · 2.75 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
79
80
81
82
83
84
85
86
var closureProBuild = require('closure-pro-build');
//==============================================================================
// Project Configuration
//==============================================================================
// Input & output directories.
var OPTIONS = {
rootSrcDir: 'src/',
generatedCodeDir: 'gen/',
tempFileDir: 'tmp/',
outputDir: 'build/'
};
// List of root application LESS & CSS files (relative to rootSrcDir) and
// include directories (also relative to rootSrcDir) to resolve @import files
// from. Only need to include root files here; all files from @import will be
// included automatically. Can also contain glob wildcard patterns.
//
// CSS class names from these input files will be obfuscated and must be
// accessed with goog.getCssName() in JS and {css aClassName} in Soy.
//
// These files should NOT @import any 3rd party CSS from CSS_3P (though
// importing a 3rd party file that only includes LESS mixins--including no
// style definitions--is okay).
var CSS_APP = {
inputFiles: ['ui/**/*.less'],
includeDirs: ['.']
};
// List of root 3rd party CSS files (relative to this directory) and include
// directories to resolve @import files from. Only need to include root files
// here; all files from @import will be included automatically. Can also contain
// glob wildcard patterns.
//
// CSS class names will NOT be obfuscated for these files (so you can refer to
// them directly--don't use goog.getCssName() or {css} in Soy for class names).
var CSS_3P = {
inputFiles: ['3p/bootstrap-3.0.0/less/bootstrap.less'],
includeDirs: ['3p/bootstrap-3.0.0/less/']
};
// JavaScript modules, including application code and any 3rd party JS. Format
// documentation: http://github.com/Lindurion/closure-pro-build#required
var JS_MODULES = {
page: {
description: 'Server rendered initial HTML page, loads main JS and CSS',
closureRootNamespaces: ['cbxrs.ui.page']
},
main: {
description: 'Main JS module, with all client-side JS',
nonClosureNamespacedInputFiles: [
'3p/bootstrap-3.0.0/js/bootstrap.js'
],
closureRootNamespaces: ['cbxrs.ui.main']
}
};
// List of Closure compiler externs files for JS libraries loaded externally
// (e.g. for loading jQuery via CDN).
var JS_EXTERNS = [
closureProBuild.EXTERNS['jquery-1.9'],
'externs/jquery-bootstrap-externs.js'
];
// Any custom options to RECESS API.
// See http://github.com/twitter/recess#programmatic-api for option docs.
// For example {strictPropertyOrder: false} will make RECESS lint stop yelling
// about CSS property ordering.
var CUSTOM_RECESS_OPTIONS = {};
module.exports = {
OPTIONS: OPTIONS,
CSS_APP: CSS_APP,
CSS_3P: CSS_3P,
CUSTOM_RECESS_OPTIONS: CUSTOM_RECESS_OPTIONS,
JS_EXTERNS: JS_EXTERNS,
JS_MODULES: JS_MODULES
};