Skip to content

Commit

Permalink
Leave working comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Jul 27, 2023
1 parent cd14fba commit 3073470
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
target_url: https://snapshots.nextjournal.com/clerk/build/${{ github.sha }}

ssr:
name: SSR smoke test build
name: SSR + CSS compilation smoke test
runs-on: ubuntu-latest
needs: [build-and-upload-viewer-resources]
steps:
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'Continuous Delivery / SSR Static App'
context: 'Continuous Delivery / SSR Static App with compiled CSS'
description: 'Ready'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
Expand Down
13 changes: 7 additions & 6 deletions src/nextjournal/clerk/builder.clj
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,6 @@
(build-static-app! {:paths ["index.clj" "notebooks/rule_30.clj" "notebooks/markdown.md"] :bundle? false :browse? true})
(build-static-app! {:paths ["notebooks/viewers/**"]})
(build-static-app! {:index "notebooks/rule_30.clj" :git/sha "bd85a3de12d34a0622eb5b94d82c9e73b95412d1" :git/url "https://github.com/nextjournal/clerk"})
(reset! config/!resource->url @config/!asset-map)
(swap! config/!resource->url dissoc "/css/viewer.css")

(build-static-app! {:ssr? true
:exclude-js? true
;; test against cljs release `bb build:js`
Expand All @@ -474,9 +471,13 @@
:index "notebooks/rule_30.clj"})
(fs/delete-tree "public/build")
(build-static-app! {:compile-css? true
:index "notebooks/rule_30.clj"
:paths ["notebooks/hello.clj"
"notebooks/markdown.md"]})
:resource->url @config/!asset-map
;; shadow-cljs release viewer --config-merge '{:output-dir "public/build/js"}'
;; :resource->url {"/js/viewer.js" "js/viewer.js"}
:paths ["index.md"
"notebooks/links.md"
"notebooks/rule_30.clj"
"notebooks/viewers/image.clj"]})
(build-static-app! {;; test against cljs release `bb build:js`
:resource->url {"/js/viewer.js" "/viewer.js"}
:paths ["notebooks/cherry.clj"]
Expand Down

0 comments on commit 3073470

Please sign in to comment.