This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 1a50758a60ad6f91bf7bb1c4edaa0c1fb6e6bf41
Author: Zoran Regvart <[email protected]>
AuthorDate: Mon Nov 2 10:56:09 2020 +0100

    chore: clean script
    
    To remove orphaned files we can now run `yarn clean` script which
    removes all files from the `public` directory.
---
 Jenkinsfile  | 2 +-
 package.json | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index e8d3ca8..064a0bd 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -55,7 +55,7 @@ pipeline {
             }
 
             steps {
-                sh "cd $WORKSPACE/camel-website && yarn build-all"
+                sh "cd $WORKSPACE/camel-website && yarn clean; yarn build-all"
             }
         }
 
diff --git a/package.json b/package.json
index 9ce68ed..e42f0a9 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
     "build:sitemap": "gulp sitemap",
     "build": "run-s build:antora build:hugo build:sitemap build:minify",
     "build-all": "yarn workspaces foreach --topological-dev run build",
+    "clean": "rm -rf public/*",
     "preview": "run-s preview:antora preview:hugo",
     "preview:antora": "antora --clean --fetch antora-playbook.yml",
     "preview:hugo": "hugo server -D",

Reply via email to