-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathfractal.js
25 lines (20 loc) · 1006 Bytes
/
fractal.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
"use strict";
const Path = require("path");
const consolidate = require("@frctl/consolidate");
const fractal = module.exports = require("@frctl/fractal").create();
const twig = require("twig");
twig.extendFunction("prefix", path => Path.join(process.env.RESOURCE_ROOT || '/', path));
fractal.components.engine(consolidate("twig", twig.twig));
fractal.components.set("ext", ".twig");
fractal.components.set("statuses.deprecated", {
label: "Deprecated",
description: "May be removed in a future version.",
color: "#886600",
});
fractal.set("project.title", "Boilerplate");
fractal.components.set("default.context", {scripts: []});
fractal.components.set("path", __dirname + "/resources/styles");
fractal.docs.set("path", __dirname + "/resources/styles/docs");
fractal.web.set("builder.dest", __dirname + "/web/pattern-library");
fractal.web.set('builder.static.ignored', [__dirname + '/web/pattern-library', __dirname + '/web/index.php'])
fractal.web.set("static.path", __dirname + "/web");