37 lines
759 B
JavaScript
37 lines
759 B
JavaScript
'use strict';
|
|
|
|
/*
|
|
* Require the path module
|
|
*/
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
|
|
/*
|
|
* Require the Fractal module
|
|
*/
|
|
const fractal = module.exports = require('@frctl/fractal').create();
|
|
|
|
/*
|
|
* Give your project a title.
|
|
*/
|
|
fractal.set('project.title', 'lostplaces');
|
|
|
|
/*
|
|
* Tell Fractal where to look for components.
|
|
*/
|
|
fractal.components.set('path', path.join(__dirname, 'components'));
|
|
|
|
/*
|
|
* Tell Fractal where to look for documentation pages.
|
|
*/
|
|
fractal.docs.set('path', path.join(__dirname, 'docs'));
|
|
|
|
/*
|
|
* Tell the Fractal web preview plugin where to look for static assets.
|
|
*/
|
|
fractal.web.set('static.path', path.join(__dirname, 'public'));
|
|
|
|
/**
|
|
* Default preview
|
|
*/
|
|
fractal.components.set('default.preview', '@preview'); |