From f1061dca72c4877da08f1b2e9633a739c11838f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Wed, 1 Jul 2020 15:29:48 +0200 Subject: [PATCH] CS. --- gulpfile.esm.js/build.js | 7 +++---- gulpfile.esm.js/dev.js | 7 +++---- gulpfile.esm.js/revealjs.js | 5 ++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/gulpfile.esm.js/build.js b/gulpfile.esm.js/build.js index f0e22bd..e968355 100644 --- a/gulpfile.esm.js/build.js +++ b/gulpfile.esm.js/build.js @@ -1,13 +1,12 @@ -import del from 'del'; -import { dest, lastRun, parallel, series, src } from 'gulp'; - import { ASSET_GLOB, DEST_DIR, GRAPH_GLOB, PDF_GLOB, PREZ_GLOB, REVEALJS_URL } from './config'; +import { dest, lastRun, parallel, series, src } from 'gulp'; import autoindex from './plugins/autoindex'; +import del from 'del'; import drawio from './plugins/drawio'; import pandoc from './plugins/pandoc'; +import revealjs from './revealjs'; import spy from './plugins/spy'; import wkhtmltopdf from './plugins/wkhtmltopdf'; -import revealjs from './revealjs'; export const clean = () => del(`${DEST_DIR}/**`, { force: true }); diff --git a/gulpfile.esm.js/dev.js b/gulpfile.esm.js/dev.js index 8d8f0f1..6de0391 100644 --- a/gulpfile.esm.js/dev.js +++ b/gulpfile.esm.js/dev.js @@ -1,9 +1,8 @@ -import { parallel, series, src, watch } from 'gulp'; -import server from 'gulp-server-livereload'; - -import build, { assets, graphs, pdf, prez } from './build'; import { ASSET_GLOB, DEST_DIR, GRAPH_GLOB, PREZ_GLOB } from './config'; +import { assets, build, graphs, pdf, prez } from './build'; +import { parallel, series, src, watch } from 'gulp'; import revealjs from './revealjs'; +import server from 'gulp-server-livereload'; const serve = () => { src(DEST_DIR).pipe( diff --git a/gulpfile.esm.js/revealjs.js b/gulpfile.esm.js/revealjs.js index 650a016..6ef900c 100644 --- a/gulpfile.esm.js/revealjs.js +++ b/gulpfile.esm.js/revealjs.js @@ -1,9 +1,8 @@ import { dest, lastRun, src } from 'gulp'; -import { magenta } from 'gulp-cli/lib/shared/ansi'; +import { DEST_DIR, REVEALJS_URL } from './config'; import logger from 'gulplog'; +import { magenta } from 'gulp-cli/lib/shared/ansi'; import path from 'path'; - -import { DEST_DIR, REVEALJS_URL } from './config'; import spy from './plugins/spy'; let revealjs = () => Promise.resolve(false) -- GitLab