Skip to content
Snippets Groups Projects
Commit 221a43a1 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

Make fractal.js ready for npm requiring

parent 4ee18bd1
No related branches found
No related tags found
No related merge requests found
Pipeline #16392 passed with stage
in 1 minute and 55 seconds
......@@ -6,12 +6,14 @@ module.exports = {
/* Create a new Fractal instance and export it for use elsewhere if required */
const fractal = module.exports = require('@frctl/fractal').create();
const logger = fractal.cli.console;
var vfName = global.vfName || 'Visual Framework component library';
const projectTitle = vfName;
/* Set the title of the project */
fractal.set('project.title', projectTitle);
/* Tell Fractal where the components will live */
var vfComponentPath = global.vfComponentPath || __dirname + '/components';
fractal.components.set('path', vfComponentPath);
/* Tell Fractal where the documentation pages will live */
......@@ -107,7 +109,6 @@ module.exports = {
fractalServer.start().then(() => {
logger.success(`Your Visual Framework component library is available at ${fractalServer.url}`);
// logger.success(`Network URL: ${server.urls.sync.external}`);
console.log('done over here');
fractal.watch();
callback(fractal);
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment