Skip to content

pink-gorilla/modular

Repository files navigation

modular

GitHub Actions status |pink-gorilla/modular Clojars Project

Modular helps building modular applications. Applications that can be extended with modules.

contains:

  • config management (allow multiple modules to share a common configuration) writes currently used config to a file (which gets updated whenever the config changes) config files are edn files OR a clojure datastructure (in the repl) edn config files can contain symbols supports cprop style app configuration

    since we support symbols in edn files, we have a way to load namespaces

    config state edn fils are HUMAN readable.

  • exploration filesystem exploration watch for changes in folders

services

Modular uses juxt/clip for a services defintion.

Demo of the services module:

To run all services (and keep running): clj -X:demo-system or clj -M:system To run services, invoke a function (then end): clj -X:demo-system:run :task '[1 2 3]' or clj -M:system 1 2 3

webly/goldly integration

webly uses modular to send the entire configuration to the browser. This works with dynamic config changes.

Goldly provides sci functions to access the configuration.

unit test

clj: clj -M:test

cljs:

   clj -X:webly:build-ci
   npm test

TODO

modular.writer

move to extension. this is used to write extensions.

get rid of modular.date

;;ag --clojure modular.date ;;pink-gorilla/shadow-x/shadowx/src/shadowx/build/prefs.clj ;;pink-gorilla/shadow-x/shadowx/src/shadowx/build/npm_writer.clj ;;pink-gorilla/goldly/src-unused/bindings.clj ;;pink-gorilla/webly/demo/src/demo/handler/time.clj ;;pink-gorilla/token/demo/src/demo/time.clj ;;pink-gorilla/clj-service/demo/src/demo/time.clj ;;pink-gorilla/modular/src/modular/date.cljc

get rid of modular.file

;; pink-gorilla/goldly/goldly-sci/src/goldly/devtools/cljs_load.clj ;; pink-gorilla/goldly/goldly-sci/src/goldly/devtools/watch.clj

get rid of modular.explore

pink-gorilla/goldly/src-unused/config/runtime/cljs_autoload_files.clj pink-gorilla/goldly/goldly-sci/src/goldly/devtools/cljs_load.clj pink-gorilla/extension/src/extension.clj pink-gorilla/reval/reval/src/reval/namespace/explore.clj pink-gorilla/reval/reval/src/reval/collection.clj

About

modular application toolkit

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages