It implements a module for Duct.
hydrogen.module.session.cognito
further enriches config provided by
hydrogen.module.core
to support OIDC-based session management.
{:hydrogen.module/core {}
:hydrogen.module/session.cognito {}}
And a more realistic example:
{:hydrogen.module/core
{:externs-paths {:production ["src/my-app/client/externs.js"
"src/my-app/client/google_maps_api_v3_36.js"]
:development ["oksol/client/google_maps_api_v3_36.js"]}}
:hydrogen.module/session.cognito {}}
:externs-paths
option. It accepts two formats:
{:externs-paths ["a.js" "b.js"]}
- this would apply both files as externs both in development environment
(as part of :duct.server/figwheel
config)
and in production environment
(as part of :duct.compiler/cljs
config).{:externs-paths {:production ["a.js"] :development ["x.js" "y.js"]}}
:add-example-api? true
option to make running demo more effortless. The default for this option is false
so there's probably nothing for you to care about :)Figwheel expects files with .js extension inside its source directories to be a foreign library. And foreign libraries MUST declare a namespace. In fact, figwheel assumes it, and if it doesn't find it and can't map the file back to a source file, it bombs out with a NullPointerException.
So even if this is NOT a foreign library, but just an externs file, add a namespace declaration to prevent figwheel from crashing.
Like this: goog.provide('google.maps');
Copyright (c) Magnet S Coop 2019.
The source code for the library is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Can you improve this documentation? These fine people already did:
James Reeves, Damian Hryniewicz & Iñaki ArenazaEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close