This commit is contained in:
reverend 2020-08-21 14:05:45 +02:00
commit fab49a09fb
4 changed files with 52 additions and 0 deletions

View File

0
components/rcss.scss Normal file
View File

37
fractal.config.js Normal file
View File

@ -0,0 +1,37 @@
'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');

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "Lostplaces",
"version": "0.1.0",
"dependencies": {
"@frctl/fractal": "^1.2.1",
"fractal": "0.0.3",
"node-sass": "^4.14.1",
"sass": "^1.26.10"
},
"scripts": {
"sass": "node-sass -w components/rcss.scss -o public/ --recursive",
"styleguide": "fractal start --sync",
"suite": "npm run sass & npm run styleguide"
}
}