From 48413263d67a6c09f608dfcda1cb482a5047299b Mon Sep 17 00:00:00 2001 From: Mike Monteith Date: Thu, 18 Apr 2024 10:14:59 +0100 Subject: [PATCH] Fix missing CSS in docs Also rationalise the npm run scripts for better organisation --- .github/workflows/docs.yaml | 2 +- gulpfile.js | 2 +- package.json | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index ca502d7..cb1fbf0 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -14,7 +14,7 @@ jobs: with: node-version: '20' - run: npm ci - - run: npm run build:docs -- --pathprefix="nhsapp-frontend" + - run: npm run docs:build -- --pathprefix="nhsapp-frontend" - uses: actions/upload-pages-artifact@v3 with: path: 'dist/docs' diff --git a/gulpfile.js b/gulpfile.js index 6d0242e..5b656e0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -74,4 +74,4 @@ const bundle = gulp.series([ copyNunjucks ]) -export { clean, bundle } +export { clean, bundle, compileCSS } diff --git a/package.json b/package.json index 312bb6b..b8a7cfc 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,11 @@ "scripts": { "prepack": "gulp bundle", "lint": "prettier --check .", - "start": "concurrently npm:serve npm:build:css", - "serve": "npx @11ty/eleventy --serve", - "build:docs": "npx @11ty/eleventy", - "build:css": "gulp", + "start": "concurrently npm:docs:build npm:css:watch", + "docs:serve": "npx @11ty/eleventy --serve", + "docs:build": "npm run css:build && npx @11ty/eleventy", + "css:watch": "gulp", + "css:build": "gulp compileCSS", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {