You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2020/11/27 15:07:41 UTC

[pdfbox-docs] branch master updated: PDFBOX-4848: ensure sass changes are picked up in preview

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

msahyoun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new a9a7397  PDFBOX-4848: ensure sass changes are picked up in preview
a9a7397 is described below

commit a9a7397987f11da73d536c3dd9a8c879f519bd4b
Author: Maruan Sahyoun <sa...@fileaffairs.de>
AuthorDate: Fri Nov 27 16:07:07 2020 +0100

    PDFBOX-4848: ensure sass changes are picked up in preview
---
 .eleventy.js | 3 ++-
 package.json | 9 +++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/.eleventy.js b/.eleventy.js
index b9356ce..84433b6 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -39,7 +39,8 @@ module.exports = function(eleventyConfig) {
     return await snippets(url, version);
   });
 
-  eleventyConfig.addWatchTarget("./content/css/");
+  eleventyConfig.addWatchTarget("./content/css");
+  eleventyConfig.addWatchTarget("./content/_sass");
 
   return {
     dir: {
diff --git a/package.json b/package.json
index f8cf2dd..34af820 100644
--- a/package.json
+++ b/package.json
@@ -7,11 +7,12 @@
     "url": "https://gitbox.apache.org/repos/asf/pdfbox-docs.git"
   },
   "scripts": {
-    "sass": "sass --style=compressed --load-path=content/_sass content/css/styles.sass content/css/styles.css",
-    "build": "npm run sass & eleventy",
-    "preview": "npm-run-all sass --parallel preview:*",
+    "build:sass": "sass --style=compressed --load-path=content/_sass content/css/styles.sass content/css/styles.css",
+    "build:eleventy": "eleventy",
+    "build": "npm-run-all build:*",
     "preview:eleventy": "eleventy --serve",
-    "preview:sass": "npm run sass -- --watch",
+    "preview:sass": "sass --watch --load-path=content/_sass content/css/styles.sass content/css/styles.css",
+    "preview": "npm-run-all build:sass --parallel preview:*",
     "check:html": "html-validate 'staging/content/*/**/*.html'",
     "checks": "run-s check:*"
   },