|
|
||
|---|---|---|
| .. | ||
| resources/public | ||
| bb.edn | ||
| deps.edn | ||
| README.md | ||
| shadow-cljs.edn | ||
Demo
A demo project of a custom scittle build.
This demo project uses the scittle.javelin and scittle.hoplon plugins which aren't part of the normal scittle distribution.
To produce release .js files, run: bb release.
See:
bb.ednwith:depswhich includes:- a dependency on the
scittle.buildproject to build scittle + custom features - zero or more plugin dependencies
- helpers like static file server
- a dependency on the
- development
:tasks. Runbb devfor development andbb releaseto produce release artifacts.
deps.edn: this only contains a dependency on scittle itself
Available plugins are in the plugins directory inside the top level directory of this repo.
Writing a plugin involves writing
- SCI configuration (this can be shared via the sci.configs project too)
- Adding a
scittle_plugin.ednfile on the plugin's classpath (e.g. in thesrcdirectory). This EDN file contains::name, name of the plugin:namespaces: the namespaces exposed to SCI:js: the name of the produced.jsmodule file:shadow-config: the shadow-cljs configuration specific to this plugin
- A
.cljsfile with aninitfunction which callsscittle/register-plugin!.