Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Antora Default UI
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jean-Baptiste
Antora Default UI
Commits
899d5fb1
Commit
899d5fb1
authored
Dec 28, 2018
by
Dan Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define fallback sink function as default argument [skip ci]
parent
48019be7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gulpfile.js/preview-pages.js
gulpfile.js/preview-pages.js
+2
-2
No files found.
gulpfile.js/preview-pages.js
View file @
899d5fb1
...
@@ -9,7 +9,7 @@ const requireFromString = require('require-from-string')
...
@@ -9,7 +9,7 @@ const requireFromString = require('require-from-string')
const
vfs
=
require
(
'
vinyl-fs
'
)
const
vfs
=
require
(
'
vinyl-fs
'
)
const
yaml
=
require
(
'
js-yaml
'
)
const
yaml
=
require
(
'
js-yaml
'
)
module
.
exports
=
(
src
,
dest
,
siteSrc
,
siteDest
,
onComplete
,
layouts
=
{})
=>
()
=>
module
.
exports
=
(
src
,
dest
,
siteSrc
,
siteDest
,
sink
=
()
=>
map
((
_0
,
_1
,
next
)
=>
next
())
,
layouts
=
{})
=>
()
=>
Promise
.
all
([
Promise
.
all
([
loadSampleUiModel
(
siteSrc
),
loadSampleUiModel
(
siteSrc
),
toPromise
(
merge
(
compileLayouts
(
src
,
layouts
),
registerPartials
(
src
),
registerHelpers
(
src
))),
toPromise
(
merge
(
compileLayouts
(
src
,
layouts
),
registerPartials
(
src
),
registerHelpers
(
src
))),
...
@@ -30,7 +30,7 @@ module.exports = (src, dest, siteSrc, siteDest, onComplete, layouts = {}) => ()
...
@@ -30,7 +30,7 @@ module.exports = (src, dest, siteSrc, siteDest, onComplete, layouts = {}) => ()
})
})
)
)
.
pipe
(
vfs
.
dest
(
siteDest
))
.
pipe
(
vfs
.
dest
(
siteDest
))
.
pipe
(
onComplete
?
onComplete
()
:
map
((
file
,
enc
,
next
)
=>
next
()
))
.
pipe
(
sink
(
))
)
)
function
loadSampleUiModel
(
siteSrc
)
{
function
loadSampleUiModel
(
siteSrc
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment