Skip to content

Commit

Permalink
make :manifest optional; bump 0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYong committed Dec 13, 2018
1 parent 524fbf0 commit 9e62b3e
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/target
.shadow-cljs/
.nrepl-port
.xml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Shell Page (generator)
:scripts ["main.js"]
:inline-html ""
:append-html ""
:app-manifest "manifest.json"
:viewport "width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"})

(shell-page.core/make-page app-html configs) ; returns string of html
Expand Down
57 changes: 44 additions & 13 deletions calcit.edn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion meyvn.edn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{:pom {:group-id "mvc-works",
:artifact-id "shell-page",
:version "0.1.9",
:version "0.1.10",
:name "Genetate index.html with Respo"}
:packaging {:jar {:enabled true
:remote-repository {:id "clojars"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"http-server": "^0.11.1",
"shadow-cljs": "^2.6.21"
"shadow-cljs": "^2.7.9"
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion src/shell_page/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{}
(<> title (:title resources) nil)
(link {:rel "icon", :type "image/png", :href (:icon resources)})
(link {:rel "manifest", :href "manifest.json"})
(when-let [manifest (:manifest resources)] (link {:rel "manifest", :href manifest}))
(meta' {:charset "utf8"})
(meta'
{:name "viewport",
Expand Down
3 changes: 2 additions & 1 deletion src/shell_page/main.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
:inline-styles [".app{color:#aaa;}"],
:scripts ["/main.js"],
:inline-html "<script>console.log('nothing')</script>",
:append-html "<script>console.log('appended');</script>"})))
:append-html "<script>console.log('appended');</script>",
:manifest "manifest.json"})))
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/shadow-cljs-jar/-/shadow-cljs-jar-1.3.0.tgz#e25c4fa57c0b405096250884b164c112654a06a3"
integrity sha512-KReNVgFVM2ZPPGCP8rsCPqtlee/+SwXyoeEqbAXBO7jlpoNnNee2x4fiRg/Pr/vXGEkV/Ez5l4qdNSU1Na+1Jg==

shadow-cljs@^2.6.21:
version "2.6.21"
resolved "https://registry.yarnpkg.com/shadow-cljs/-/shadow-cljs-2.6.21.tgz#f93f2bda89cf2561c6ec1d59c902fe9831a1ed62"
integrity sha512-kBQ4caEXGhSLo0AkAo46hhf5y/Kifw1ZWvM4Vw7h5SxXDT4AZkOi0xrwGhqW5H+cxBk2ReNdqMERhvvBLNuz6A==
shadow-cljs@^2.7.9:
version "2.7.9"
resolved "https://registry.yarnpkg.com/shadow-cljs/-/shadow-cljs-2.7.9.tgz#389e712b2a4c66cb5fbefb7c655614bef0877d14"
integrity sha512-3g3dijT5ztwukidXDyhda6AaPrFge5j9b69SUOzXXqgVr6JDslcCOY/l0midF1c15uT9GDx/JoprRlkRhPWgaA==
dependencies:
mkdirp "^0.5.1"
node-libs-browser "^2.0.0"
Expand Down

0 comments on commit 9e62b3e

Please sign in to comment.