Skip to content

Commit

Permalink
Switch to deps.edn build and add more detailed build instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunchboy committed Mar 4, 2020
1 parent c186868 commit 484e73b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
/.cpcache
/.shadow-cljs
/lib.js
/node_modules
Expand Down
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -33,14 +33,20 @@ was created.
It has not yet been published to npm; I am holding off on doing that
until the DSL stabilizes a bit in the course of converting the LaTeX
documents I developed this for. I expect it will be ready in a week or
two. Until then, clone the repository and build it by running:
two. Until then, clone the repository and build it by making sure you
have [Node.js](https://nodejs.org/en/) and the [Clojure CLI
tools](https://clojure.org/guides/getting_started) installed, and run:

npm install
npm run build

This will create the file `lib.js`. At that point, you can try
building the test SVG file as shown above.

To check for outdated dependencies, you can run:

clojure -A:outdated

## License

<a href="http://deepsymmetry.org"><img align="right" alt="Deep Symmetry"
Expand Down
8 changes: 8 additions & 0 deletions deps.edn
@@ -0,0 +1,8 @@
;; Clojure dependency information and source location.
{:deps {thheller/shadow-cljs {:mvn/version "2.8.90"}
org.clojure/tools.reader {:mvn/version "1.3.2"}
analemma {:mvn/version "1.1.0"}
borkdude/sci {:mvn/version "0.0.13-alpha.12"}}
:paths ["src"]
:aliases {:outdated {:extra-deps {olical/depot {:mvn/version "1.8.4"}}
:main-opts ["-m" "depot.outdated.main"]}}}
15 changes: 4 additions & 11 deletions shadow-cljs.edn
@@ -1,12 +1,5 @@
;; shadow-cljs configuration
{:source-paths
["src"]

:dependencies
[[org.clojure/tools.reader "1.3.2"]
[analemma "1.1.0"]
[borkdude/sci "0.0.13-alpha.12"]]

:builds {:lib {:target :node-library
:output-to "lib.js"
:exports-var org.deepsymmetry.bytefield.core/generate}}}
{:deps true
:builds {:lib {:target :node-library
:output-to "lib.js"
:exports-var org.deepsymmetry.bytefield.core/generate}}}

0 comments on commit 484e73b

Please sign in to comment.