Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Outillage
prezbuilder
Commits
e17ad22e
Commit
e17ad22e
authored
May 05, 2020
by
Guillaume Perréal
Browse files
Ne retraite que les fichiers modifiéd en mode dev.
Sauf les PDF, parce qu'on ne piste pas les dépendences.
parent
9df2d82d
Changes
1
Hide whitespace changes
Inline
Side-by-side
gulpfile.esm.js
View file @
e17ad22e
import
{
dest
,
parallel
,
series
,
src
,
watch
}
from
"
gulp
"
;
import
{
dest
,
lastRun
,
parallel
,
series
,
src
,
watch
}
from
"
gulp
"
;
import
del
from
"
del
"
;
import
drawio
from
"
./lib/drawio
"
;
import
index
from
"
./lib/index
"
;
...
...
@@ -19,10 +19,17 @@ const PDF_GLOB = `${DEST_DIR}/**/index.html`;
export
const
clean
=
()
=>
del
(
`
${
DEST_DIR
}
/**`
,
{
force
:
true
});
export
const
assets
=
()
=>
src
(
ASSET_GLOB
).
pipe
(
dest
(
DEST_DIR
));
export
const
assets
=
()
=>
src
(
ASSET_GLOB
,
{
since
:
lastRun
(
assets
)
}).
pipe
(
dest
(
DEST_DIR
));
export
const
prez
=
()
=>
src
(
PREZ_GLOB
).
pipe
(
index
()).
pipe
(
pandoc
()).
pipe
(
dest
(
DEST_DIR
));
export
const
graphs
=
()
=>
src
(
GRAPH_GLOB
).
pipe
(
drawio
()).
pipe
(
dest
(
DEST_DIR
));
src
(
PREZ_GLOB
,
{
since
:
lastRun
(
prez
)
})
.
pipe
(
index
())
.
pipe
(
pandoc
())
.
pipe
(
dest
(
DEST_DIR
));
export
const
graphs
=
()
=>
src
(
GRAPH_GLOB
,
{
since
:
lastRun
(
graphs
)
})
.
pipe
(
drawio
())
.
pipe
(
dest
(
DEST_DIR
));
export
const
pdf
=
()
=>
src
(
PDF_GLOB
).
pipe
(
wkhtmltopdf
()).
pipe
(
dest
(
DEST_DIR
));
export
const
build
=
series
(
clean
,
parallel
(
assets
,
prez
,
graphs
),
pdf
);
...
...
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