Scaffold
This commit is contained in:
commit
fab49a09fb
0
components/00_Layouts/_components.scss
Normal file
0
components/00_Layouts/_components.scss
Normal file
0
components/rcss.scss
Normal file
0
components/rcss.scss
Normal file
37
fractal.config.js
Normal file
37
fractal.config.js
Normal 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
15
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user