https://github.com/duct-framework/compiler.cljs.shadow
Integrant methods for running Shadow CLJS
https://github.com/duct-framework/compiler.cljs.shadow
Last synced: 6 months ago
JSON representation
Integrant methods for running Shadow CLJS
- Host: GitHub
- URL: https://github.com/duct-framework/compiler.cljs.shadow
- Owner: duct-framework
- License: epl-1.0
- Created: 2024-12-09T02:43:21.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-12T20:42:54.000Z (12 months ago)
- Last Synced: 2025-06-09T14:51:11.783Z (7 months ago)
- Language: Clojure
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Duct Shadow CLJS Compiler [](https://github.com/duct-framework/compiler.cljs.shadow/actions/workflows/test.yml)
[Integrant][] methods for running [Shadow CLJS][]. Designed for
the [Duct][] framework, but can be used in any Integrant configuration.
This library is still very new and API may change.
[duct]: https://github.com/duct-framework/duct
[integrant]: https://github.com/weavejester/integrant
[shadow cljs]: https://github.com/thheller/shadow-cljs
## Installation
Add the following dependency to your deps.edn file:
org.duct-framework/compiler.cljs.shadow {:mvn/version "0.1.2"}
Or to your Leiningen project file:
[org.duct-framework/compiler.cljs.shadow "0.1.2"]
## Usage
This library provides Integrant methods for two keys:
- `:duct.compiler.cljs.shadow/release`
- `:duct.compiler.cljs.shadow/server`
Both take the same configuration, but have different applications. The
'release' key generates production-ready ClojureScript, while the
'server' key starts a Shadow CLJS development server.
The options for both keys are the same as a `shadow-cljs.edn` file, with
one notable exception; instead of a map of build configurations under
the `:builds` option, there is a single build configuration under the
`:build` key.
For more information, see the documentation on [Shadow CLJS
configuration][config].
[config]: https://shadow-cljs.github.io/docs/UsersGuide.html#config
## License
Copyright © 2024 James Reeves
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.