lib/config/defaults.js
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 178
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
cc 0
wmc 0
eloc 47
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 178
ccs 2
cts 2
cp 1
crap 0
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
/**
2
 * Patternlibrary default configuration values
3
 * 
4
 * @var object
5
 */
6 1
var Patternlibrary_Defaults = {
7
8
    // userdefined templates, partials, target-dir, etc...
9
    //
10
    
11
    // base path to look for userdefined page templates
12
    "root"     : "src/pages/",
13
    // path to look for userdefined layout templates
14
    "layouts"  : "src/layouts/",
15
    // base path to look for userdefined pattern partials
16
    "partials" : "src/partials/",
17
    // path to look for userdefined partial data storage
18
    "data"     : "src/data/",
19
    // path to look for userdefined pattern helpers
20
    "helpers"  : "src/helpers/",
21
22
    // destination build-path for patternlibrary files
23
    "dest"     : "dist/",
24
    
25
    // base path for server request's
26
    "basepath" : "pl/",
27
    
28
    // pattern base path for server request's
29
    "patternspath" : "patterns/",
30
    
31
    // pattern base path for server request's
32
    "categoriespath" : "categories/",
33
    
34
    
35
    // Patternlibrary setup
36
    //
37
    
38
    // verbose console output
39
    "verbose"  : false,
40
    
41
    
42
    // pattern options 
43
    "pattern" : { 
44
    	
45
    	// doc adapter file patterns
46
        "source"     : "*.{html,hbs,handlebars}",     // {index,pattern}
47
        "readme"     : "{readme,info}.{md,markdown}", // "*.md",             // {readme,info}.{md,markdown}
48
        "javascript" : "*.js",                        // {index,module}
49
        "scss"       : "*.{scss,sass,css}",           // {style,styles,pattern}
50
        "changelog"  : "changelog.{md,markdown}",
51
        "tests"      : "{test,tests,visual,visualtest,visualtests}.js",
52
        // @SOON:...
53
        "testsass"   : "test.sass.js",
54
        "testjs"     : "test.javascript.js",
55
        "testui"     : "{test.visual.js,*.gspec}",
56
        
57
        // search sub-path, default '**' = all sub-paths
58
        "searchpath" : "**",
59
60
        // pattern sub-directories in "partials"
61
        "dirs" : {
62
            "atoms"     : "atoms/",
63
            "molecules" : "molecules/",
64
            "organisms" : "organisms/",
65
            "templates" : "tempates/",
66
            "pages"     : "pages/"
67
        },
68
69
		// doc target filename
70
		"target"     : "index.html"
71
			
72
    },
73
    
74
    "gui": {
75
    	
76
    	
77
        // base path to look for userdefined page templates
78
        "pages"            : "gui/src/pages/",
79
        
80
        // path to look for userdefined layout templates
81
        "layouts"          : "gui/src/layouts/",
82
        
83
        // base path to look for userdefined pattern partials
84
        "partials"         : "gui/src/partials/",
85
        
86
        
87
        
88
        // Patternlibrary page layout name (file basename)
89
        "layout"           : "patternlibrary",
90
91
        // Patternlibrary pattern doc page template filename
92
        "docpage"          : "patterndocs.html", // 
93
        
94
        // Patternlibrary dashboard template filename
95
        "dashboard"        : "dashboard.html",
96
        
97
        // Patternlibrary pattern list page template filename
98
        "patternlist"      : "index.html",
99
        
100
        // Patternlibrary pattern list page template filename
101
        "categorylist"     : "categories/index.html",
102
103
    },
104
    "nogui": false,
105
    
106
107
    
108
    // internal middleware options
109
    "middleware" : {
110
    },
111
112
    // internal Panini/Handlebars options
113
    "handlebars" : {
114
    },
115
116
    // internal MarkDown options
117
    "markdown" : {
118
    },
119
120
    // internal JS Doc options
121
    "jsdoc" : {
122
    },
123
124
    // internal JS Doc options
125
    "sassdoc" : {
126
    },
127
128
    // internal JS Doc options
129
    "galen" : {
130
    },
131
    
132
    // internal Supercollider options
133
    "adapters" : {
134
    }/*,
135
    
136
    
137
    
138
    
139
    
140
    "templates": {
141
        
142
        // main page layout file
143
        "layout"           : "patternlibrary",
144
145
        // pattern doc page template
146
        "docpage"          : "patterndocs.html", // 
147
        
148
        // dashboard template
149
        "dashboard"        : "dashboard.html",
150
        
151
        // pattern list page template
152
        "patternlist"      : "index.html",
153
        
154
        // display template
155
        "patterndisplay"   : "templates/patterndisplay.html", 
156
 
157
        // pattern main index page template
158
        "patternindex"     : "templates/pattern-index.html", 
159
        // pattern readme display template
160
        "patternreadme"    : "templates/patterndisplay-readme.html", 
161
        // pattern markup display template
162
        "patternmarkup"    : "templates/patterndisplay-markup.html", 
163
        // pattern javascript display template
164
        "patternjavascript": "templates/patterndisplay-javascript.html", 
165
        // pattern scss display template
166
        "patternscss"      : "templates/patterndisplay-scss.html", 
167
        // pattern template-file display template
168
        "patterntemplate"  : "templates/patterndisplay-template.html", 
169
        // pattern tests display template
170
        "patterntests"     : "templates/patterndisplay-tests.html", 
171
        // pattern changelog display template
172
        "patternchangelog" : "templates/patterndisplay-changelog.html", 
173
        
174
        // page list template
175
        "pagelist"         : "templates/pagelist.html",
176
        // page display template
177
        "pagedisplay"      : "templates/pagedisplay.html" 
178
    },*/
179
    
180
    
181
};
182
183
module.exports = Patternlibrary_Defaults;