You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/11/05 14:48:17 UTC

[camel-website] branch master updated: chore: implement clean script as a Gulp task

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


The following commit(s) were added to refs/heads/master by this push:
     new 0ee0057  chore: implement clean script as a Gulp task
0ee0057 is described below

commit 0ee00579ea40ad71db6715246ff004b2d89504b6
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Thu Nov 5 15:47:01 2020 +0100

    chore: implement clean script as a Gulp task
    
    Globs for non-existing files fail in Yarn, so when there is no `public`
    directory the `yarn clean` script will fail. This replaces it with Gulp
    task relying on `del` to delete the `public` directory.
---
 .pnp.js                                            |  74 +++++++++++++++++++++
 .yarn/build-state.yml                              |  10 +--
 ...egate-error-npm-3.1.0-415a406f4e-704d2001a3.zip | Bin 0 -> 4089 bytes
 ...clean-stack-npm-2.2.0-a8ce435a5c-e291ce2b8c.zip | Bin 0 -> 3676 bytes
 .../cache/del-npm-6.0.0-fb1f14b406-da72707c92.zip  | Bin 0 -> 5325 bytes
 ...graceful-fs-npm-4.2.4-734467635f-d095ee4dc6.zip | Bin 0 -> 10190 bytes
 ...is-path-cwd-npm-2.2.0-e35e4aab5f-900f6e8144.zip | Bin 0 -> 2576 bytes
 ...path-inside-npm-3.0.2-e675e113cb-709ba85a71.zip | Bin 0 -> 3303 bytes
 .../p-map-npm-4.0.0-4677ae07c7-d51e630d72.zip      | Bin 0 -> 4836 bytes
 gulpfile.js                                        |   7 ++
 package.json                                       |   3 +-
 yarn.lock                                          |  66 +++++++++++++++++-
 12 files changed, 153 insertions(+), 7 deletions(-)

diff --git a/.pnp.js b/.pnp.js
index ccccd36..b1785ee 100755
--- a/.pnp.js
+++ b/.pnp.js
@@ -53,6 +53,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
             ["@antora/xref-validator", "https://gitlab.com/antora/xref-validator.git#commit=19bfaf88fc7dd39552cfd8b3ac41c55d6d8f9edd"],
             ["@djencks/asciidoctor-antora-indexer", "npm:0.0.5"],
             ["antora-ui-camel", "workspace:antora-ui-camel"],
+            ["del", "npm:6.0.0"],
             ["escape-string-regexp", "npm:2.0.0"],
             ["gulp", "npm:4.0.2"],
             ["gulp-cheerio", "npm:1.0.0"],
@@ -1166,6 +1167,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
           "linkType": "HARD",
         }]
       ]],
+      ["aggregate-error", [
+        ["npm:3.1.0", {
+          "packageLocation": "./.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-704d2001a3.zip/node_modules/aggregate-error/",
+          "packageDependencies": [
+            ["aggregate-error", "npm:3.1.0"],
+            ["clean-stack", "npm:2.2.0"],
+            ["indent-string", "npm:4.0.0"]
+          ],
+          "linkType": "HARD",
+        }]
+      ]],
       ["ajv", [
         ["npm:6.12.0", {
           "packageLocation": "./.yarn/cache/ajv-npm-6.12.0-2c613c5c4b-aed1e0ab1b.zip/node_modules/ajv/",
@@ -1443,6 +1455,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
             ["@antora/xref-validator", "https://gitlab.com/antora/xref-validator.git#commit=19bfaf88fc7dd39552cfd8b3ac41c55d6d8f9edd"],
             ["@djencks/asciidoctor-antora-indexer", "npm:0.0.5"],
             ["antora-ui-camel", "workspace:antora-ui-camel"],
+            ["del", "npm:6.0.0"],
             ["escape-string-regexp", "npm:2.0.0"],
             ["gulp", "npm:4.0.2"],
             ["gulp-cheerio", "npm:1.0.0"],
@@ -2943,6 +2956,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
           "linkType": "HARD",
         }]
       ]],
+      ["clean-stack", [
+        ["npm:2.2.0", {
+          "packageLocation": "./.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-e291ce2b8c.zip/node_modules/clean-stack/",
+          "packageDependencies": [
+            ["clean-stack", "npm:2.2.0"]
+          ],
+          "linkType": "HARD",
+        }]
+      ]],
       ["cli-cursor", [
         ["npm:2.1.0", {
           "packageLocation": "./.yarn/cache/cli-cursor-npm-2.1.0-3920629c9c-df33c11b3c.zip/node_modules/cli-cursor/",
@@ -4177,6 +4199,23 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
           "linkType": "HARD",
         }]
       ]],
+      ["del", [
+        ["npm:6.0.0", {
+          "packageLocation": "./.yarn/cache/del-npm-6.0.0-fb1f14b406-da72707c92.zip/node_modules/del/",
+          "packageDependencies": [
+            ["del", "npm:6.0.0"],
+            ["globby", "npm:11.0.1"],
+            ["graceful-fs", "npm:4.2.4"],
+            ["is-glob", "npm:4.0.1"],
+            ["is-path-cwd", "npm:2.2.0"],
+            ["is-path-inside", "npm:3.0.2"],
+            ["p-map", "npm:4.0.0"],
+            ["rimraf", "npm:3.0.2"],
+            ["slash", "npm:3.0.0"]
+          ],
+          "linkType": "HARD",
+        }]
+      ]],
       ["delayed-stream", [
         ["npm:1.0.0", {
           "packageLocation": "./.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-d9dfb0a7c7.zip/node_modules/delayed-stream/",
@@ -6651,6 +6690,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
             ["graceful-fs", "npm:4.2.3"]
           ],
           "linkType": "HARD",
+        }],
+        ["npm:4.2.4", {
+          "packageLocation": "./.yarn/cache/graceful-fs-npm-4.2.4-734467635f-d095ee4dc6.zip/node_modules/graceful-fs/",
+          "packageDependencies": [
+            ["graceful-fs", "npm:4.2.4"]
+          ],
+          "linkType": "HARD",
         }]
       ]],
       ["graceful-readlink", [
@@ -8173,6 +8219,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
           "linkType": "HARD",
         }]
       ]],
+      ["is-path-cwd", [
+        ["npm:2.2.0", {
+          "packageLocation": "./.yarn/cache/is-path-cwd-npm-2.2.0-e35e4aab5f-900f6e8144.zip/node_modules/is-path-cwd/",
+          "packageDependencies": [
+            ["is-path-cwd", "npm:2.2.0"]
+          ],
+          "linkType": "HARD",
+        }]
+      ]],
+      ["is-path-inside", [
+        ["npm:3.0.2", {
+          "packageLocation": "./.yarn/cache/is-path-inside-npm-3.0.2-e675e113cb-709ba85a71.zip/node_modules/is-path-inside/",
+          "packageDependencies": [
+            ["is-path-inside", "npm:3.0.2"]
+          ],
+          "linkType": "HARD",
+        }]
+      ]],
       ["is-plain-obj", [
         ["npm:1.1.0", {
           "packageLocation": "./.yarn/cache/is-plain-obj-npm-1.1.0-1046f64c0b-d2eb5a32ea.zip/node_modules/is-plain-obj/",
@@ -10842,6 +10906,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
           "linkType": "HARD",
         }]
       ]],
+      ["p-map", [
+        ["npm:4.0.0", {
+          "packageLocation": "./.yarn/cache/p-map-npm-4.0.0-4677ae07c7-d51e630d72.zip/node_modules/p-map/",
+          "packageDependencies": [
+            ["p-map", "npm:4.0.0"],
+            ["aggregate-error", "npm:3.1.0"]
+          ],
+          "linkType": "HARD",
+        }]
+      ]],
       ["p-map-series", [
         ["npm:1.0.0", {
           "packageLocation": "./.yarn/cache/p-map-series-npm-1.0.0-8d086f8416-721c1aaea4.zip/node_modules/p-map-series/",
diff --git a/.yarn/build-state.yml b/.yarn/build-state.yml
index d61b27a..9d98e55 100644
--- a/.yarn/build-state.yml
+++ b/.yarn/build-state.yml
@@ -3,20 +3,20 @@
 
 # core-js@npm:3.6.5
 "5941340066f775d2694fe1955bef9a66af767bfade2eca6ca442d82a68a5c999e76165c38ab532c125bf81c66c151d83d8e96f86a3f7af2d755000b3e2d48171":
-  9b264165157a8ca66c9e565774444124d35600f040847a8b2d2965953de48d22e2e87c837a3f10970b4a817acfd0932269ef0df75f5b6c7d2b20695ac9374b2f
+  3e50377806dc56923159f92253807e54e036549e26ee002726dfc1ac671563333aa95ec53143273420c6ff794a6d9fd824a5c8558291ef45ec6fa4cbebcd6401
 
 # gifsicle@npm:4.0.1
 "47efba2323306056b5eb4428fb87bbe745eb0587d7a5c64c188c6bc7d13bb2ab6ee9099b11957e60c6dacefbfc0d074aa862e206c771bef851d72b01b35da575":
-  38cdc353b12bcc26f70a56ca72f0cd2f33b969f74b07495828cd3f84e597431abe1277d0166832f51a44a95e55199cc212fb7d81db4c338f715f2e5791834ee4
+  2258629536a99a54f75d9dd8ae15ee0ed62902048a51603c2ac631e0d2727888ff424d596ce87aa19dafa48212afdb249869b8b274f4d48d3eef7dc432828f91
 
 # hugo-extended@npm:0.73.0
 "f4a4b1a424d4f0eeec4214510de20c5e149bf5a11cd09c1470703b565b9d6dae99e59a984e629d6f699070766d0f02d1381989a7dd8af6d5d77d2f29be9f3d88":
-  31bcfcb9163e92affb15af25a42650fe6ada38bf8d30c9510f366eb4fd59096d595ee039a50651ece00cd0aa19ea455d378a54b3c1df8476971c691c62a58b7f
+  5f02023176720faa693db4b25f06e7e882c34a501e2ab849927f58443b8ac8a27499d2c628e7aa5e79382fc61d200376aab52b9cdcfd0d2670f2009e0dac06ea
 
 # jpegtran-bin@npm:4.0.0
 "c1e70a98c194359902d396160440b8d6aafc026faec0b483b98d24dac1a2756f6ebdb0d5b12c609339320ad38e22580c8c8b6e70edfc9c5019a30d10094fd1fb":
-  e9c1563e2373204e8fc35a861b2b83ea17885f94bb6ce5707801a65373fe681d3aa547beefe41d5a3736ec8d2b989837231ccad01cd13755ac9d11b123a2b003
+  b5c116277b100c3662052ceeaa3429b78771b105a17ae226bb51294ed3a230e39180008f7a172f90f961e818356b14cb4646b6826468b2b8a57f6c233f551108
 
 # optipng-bin@npm:6.0.0
 "3aa5f04a3e5704a556a7f98fdddf5ad260b55ca04a2b8cd3d448861d0bd4778bbc092bf0bd558eba02998faceda73052710fa3124f1940098d2ee8bd93474567":
-  0e1ffb3d99b4fe40dd026f2716e011b42c9100563c48a4fe7ca1f57114b7254b3f853b7baf8f1c4f33dc5e253dc26f852533372b0af44d52f68d046a4ccce24a
+  62d0fc8f2229ce50f17ecc105720f90fd5f2024002c4d5a9aaed2bb6d5222980674f61992149907e478eff5d04b2c4f98e801552f64ee75c96d1dcc1ed9e4942
diff --git a/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-704d2001a3.zip b/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-704d2001a3.zip
new file mode 100644
index 0000000..a616171
Binary files /dev/null and b/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-704d2001a3.zip differ
diff --git a/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-e291ce2b8c.zip b/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-e291ce2b8c.zip
new file mode 100644
index 0000000..8fabe8f
Binary files /dev/null and b/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-e291ce2b8c.zip differ
diff --git a/.yarn/cache/del-npm-6.0.0-fb1f14b406-da72707c92.zip b/.yarn/cache/del-npm-6.0.0-fb1f14b406-da72707c92.zip
new file mode 100644
index 0000000..2eaf783
Binary files /dev/null and b/.yarn/cache/del-npm-6.0.0-fb1f14b406-da72707c92.zip differ
diff --git a/.yarn/cache/graceful-fs-npm-4.2.4-734467635f-d095ee4dc6.zip b/.yarn/cache/graceful-fs-npm-4.2.4-734467635f-d095ee4dc6.zip
new file mode 100644
index 0000000..315f615
Binary files /dev/null and b/.yarn/cache/graceful-fs-npm-4.2.4-734467635f-d095ee4dc6.zip differ
diff --git a/.yarn/cache/is-path-cwd-npm-2.2.0-e35e4aab5f-900f6e8144.zip b/.yarn/cache/is-path-cwd-npm-2.2.0-e35e4aab5f-900f6e8144.zip
new file mode 100644
index 0000000..8da1d91
Binary files /dev/null and b/.yarn/cache/is-path-cwd-npm-2.2.0-e35e4aab5f-900f6e8144.zip differ
diff --git a/.yarn/cache/is-path-inside-npm-3.0.2-e675e113cb-709ba85a71.zip b/.yarn/cache/is-path-inside-npm-3.0.2-e675e113cb-709ba85a71.zip
new file mode 100644
index 0000000..eecd556
Binary files /dev/null and b/.yarn/cache/is-path-inside-npm-3.0.2-e675e113cb-709ba85a71.zip differ
diff --git a/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-d51e630d72.zip b/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-d51e630d72.zip
new file mode 100644
index 0000000..dbc9626
Binary files /dev/null and b/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-d51e630d72.zip differ
diff --git a/gulpfile.js b/gulpfile.js
index 7992466..97712f2 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -52,3 +52,10 @@ gulp.task('sitemap', (done) => {
     ))
     .pipe(gulp.dest('public'));
 });
+
+/*
+ * Removes the content from the `public` directory.
+ */
+gulp.task('clean', () => {
+  return require('del')('public');
+});
diff --git a/package.json b/package.json
index 802dd5b..5765d71 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +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/*",
+    "clean": "gulp clean",
     "preview": "run-s preview:antora preview:hugo",
     "preview:antora": "antora --clean --fetch antora-playbook.yml",
     "preview:hugo": "hugo server -D",
@@ -30,6 +30,7 @@
     "@antora/xref-validator": "https://gitlab.com/antora/xref-validator.git#commit=19bfaf88fc7dd39552cfd8b3ac41c55d6d8f9edd",
     "@djencks/asciidoctor-antora-indexer": "^0.0.5",
     "antora-ui-camel": "workspace:antora-ui-camel",
+    "del": "^6.0.0",
     "escape-string-regexp": "~2.0",
     "gulp": "~4.0",
     "gulp-cheerio": "~1.0",
diff --git a/yarn.lock b/yarn.lock
index fed79ea..459c4f8 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -967,6 +967,16 @@ __metadata:
   languageName: node
   linkType: hard
 
+"aggregate-error@npm:^3.0.0":
+  version: 3.1.0
+  resolution: "aggregate-error@npm:3.1.0"
+  dependencies:
+    clean-stack: ^2.0.0
+    indent-string: ^4.0.0
+  checksum: 704d2001a303c185e9b836d211f7eef2f4557195a11c3271143b4dcda5f6f263abe746d9b8a06b5871d07870686c7db9c0b2c38e2d3cbc593784eaaee8a29043
+  languageName: node
+  linkType: hard
+
 "ajv@npm:^6.10.0, ajv@npm:^6.10.2, ajv@npm:^6.9.1":
   version: 6.12.0
   resolution: "ajv@npm:6.12.0"
@@ -1231,6 +1241,7 @@ __metadata:
     "@antora/xref-validator": "https://gitlab.com/antora/xref-validator.git#commit=19bfaf88fc7dd39552cfd8b3ac41c55d6d8f9edd"
     "@djencks/asciidoctor-antora-indexer": ^0.0.5
     antora-ui-camel: "workspace:antora-ui-camel"
+    del: ^6.0.0
     escape-string-regexp: ~2.0
     gulp: ~4.0
     gulp-cheerio: ~1.0
@@ -2586,6 +2597,13 @@ __metadata:
   languageName: node
   linkType: hard
 
+"clean-stack@npm:^2.0.0":
+  version: 2.2.0
+  resolution: "clean-stack@npm:2.2.0"
+  checksum: e291ce2b8c8c59e6449ac9a7a726090264bea6696e5343b21385e16d279c808ca09d73a1abea8fd23a9b7699e6ef5ce582df203511f71c8c27666bf3b2e300c5
+  languageName: node
+  linkType: hard
+
 "cli-cursor@npm:^2.1.0":
   version: 2.1.0
   resolution: "cli-cursor@npm:2.1.0"
@@ -3695,6 +3713,22 @@ __metadata:
   languageName: node
   linkType: hard
 
+"del@npm:^6.0.0":
+  version: 6.0.0
+  resolution: "del@npm:6.0.0"
+  dependencies:
+    globby: ^11.0.1
+    graceful-fs: ^4.2.4
+    is-glob: ^4.0.1
+    is-path-cwd: ^2.2.0
+    is-path-inside: ^3.0.2
+    p-map: ^4.0.0
+    rimraf: ^3.0.2
+    slash: ^3.0.0
+  checksum: da72707c9221154db6d6b05890ac1ae771d1b4ffc2759a6b8fca58e8a8289e07d22b68f68666a6c540dd99f1021b29ef77918dcaf4dbfeb9f99f49bd7fcc6fb5
+  languageName: node
+  linkType: hard
+
 "delayed-stream@npm:~1.0.0":
   version: 1.0.0
   resolution: "delayed-stream@npm:1.0.0"
@@ -5863,7 +5897,7 @@ fsevents@^1.2.7:
   languageName: node
   linkType: hard
 
-"globby@npm:^11.0.0":
+"globby@npm:^11.0.0, globby@npm:^11.0.1":
   version: 11.0.1
   resolution: "globby@npm:11.0.1"
   dependencies:
@@ -5984,6 +6018,13 @@ fsevents@^1.2.7:
   languageName: node
   linkType: hard
 
+"graceful-fs@npm:^4.2.4":
+  version: 4.2.4
+  resolution: "graceful-fs@npm:4.2.4"
+  checksum: d095ee4dc6eacc76814cd52d5d185b860119378a6fd4888e7d4e94983095c54d4f6369942a5e3d759cdbdd4e3ee7eaeb27a39ff938c6ee4610894fd9de46b6cb
+  languageName: node
+  linkType: hard
+
 "graceful-readlink@npm:>= 1.0.0":
   version: 1.0.1
   resolution: "graceful-readlink@npm:1.0.1"
@@ -7360,6 +7401,20 @@ fsevents@^1.2.7:
   languageName: node
   linkType: hard
 
+"is-path-cwd@npm:^2.2.0":
+  version: 2.2.0
+  resolution: "is-path-cwd@npm:2.2.0"
+  checksum: 900f6e81445b9979705952189d7dbada79dbe6d77be3b5fc95aed3dc1cc9d77de5b286db2d525942a72a717c81aa549509b76705883415fb655183dfefce9541
+  languageName: node
+  linkType: hard
+
+"is-path-inside@npm:^3.0.2":
+  version: 3.0.2
+  resolution: "is-path-inside@npm:3.0.2"
+  checksum: 709ba85a713d25fb058a4c2f62e9e7160bcc1a3e48af2f201045cde027fc1efe61a6e1b5c1cf21b8329f764e3649e160976fde14317c1b848caa9c1f31d5beec
+  languageName: node
+  linkType: hard
+
 "is-plain-obj@npm:^1.0.0, is-plain-obj@npm:^1.1.0":
   version: 1.1.0
   resolution: "is-plain-obj@npm:1.1.0"
@@ -9794,6 +9849,15 @@ fsevents@^1.2.7:
   languageName: node
   linkType: hard
 
+"p-map@npm:^4.0.0":
+  version: 4.0.0
+  resolution: "p-map@npm:4.0.0"
+  dependencies:
+    aggregate-error: ^3.0.0
+  checksum: d51e630d72b7c38bc9e396710e7a068f0b813fe4db6f4a2d1ce2972e7fa11142c763c3aa39bcfd77c0133688c1ebfdd9b38fa3ac4c6ada20b62df26239c5c0e4
+  languageName: node
+  linkType: hard
+
 "p-pipe@npm:^3.0.0":
   version: 3.1.0
   resolution: "p-pipe@npm:3.1.0"