Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vf-core-mirror
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
embl.org
vf-core-mirror
Commits
221a43a1
Commit
221a43a1
authored
6 years ago
by
Ken Hawkins
Browse files
Options
Downloads
Patches
Plain Diff
Make fractal.js ready for npm requiring
parent
4ee18bd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#16392
passed with stage
in 1 minute and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fractal.js
+2
-1
2 additions, 1 deletion
fractal.js
with
2 additions
and
1 deletion
fractal.js
+
2
−
1
View file @
221a43a1
...
...
@@ -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
);
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment