/
example.js
53 lines (51 loc) · 1.44 KB
/
example.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
// If installed via npm
//var coatroom = require("coatroom");
// If via 'npm run-script build-example'
var coatroom = require( "../main.js" );
coatroom( {
title: "Component library example",
input: {
components: "example/input/components/",
less: [
"example/input/less/colors.less"
],
lessModifyVars: {
"colorClouds": "#ecf0f1",
"colorTurquoise": "#1abc9c",
"colorEmerald": "#2ecc71",
"colorSky": "#3498db",
"colorAmethyst": "#9b59b6",
"colorApshalt": "#34495e",
"colorOrange": "#f39c12",
"colorLava": "#c0392b",
"colorConcrete": "#95a5a6"
},
styleguides: {
"Introduction": "example/input/styleguides/introduction.md",
"Colors": "example/input/styleguides/colors.md"
},
scripts: [
"example/input/scripts/console-log.js"
]
},
output: {
overview: "example/output/components.generated.html",
less: "example/output/components.generated.less",
css: "example/output/components.generated.css"
},
validation: {
disallowedCSSRules: [
"position=static",
"position=fixed",
"float",
"margin",
"z-index!=0"
],
disallowedCSSUnits: [
"cm",
"mm",
"in",
"vw"
]
}
} );