Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][ref #18] ClojureScript #23

Merged
merged 54 commits into from
Feb 3, 2021
Merged

[Feature][ref #18] ClojureScript #23

merged 54 commits into from
Feb 3, 2021

Conversation

slurmulon
Copy link
Owner

@slurmulon slurmulon commented Feb 3, 2021

Changes

  • 🎉 Adds support for ClojureScript!
  • ☁️ Published bach-cljs package to NPM (v1.0.3 due to missing target/js folder during publish, changed to dist)
  • 🏭 Integrated shadow-cljs to build ClojureScript library
  • ♻️ Refactored resources/grammar.bnf using insta/defparser in bach.ast
  • ♻️ Refactored bach.track/get-pulse-beat to use more direct and idiomatic bach.data/gcd (generic greatest common denominator method)
  • 🔬 Refactored/updated all tests to work in both Clojure and ClojureScript
  • 🔧 Various minor upgrades
  • :shipit: Version 2.1.0

Caveats

  • ⚠️ Only bach.track/compose is exported since all "internal" methods work with Clojure maps instead of JSON. Also ratios.
  • ⚠️ Due to evolving state of modules in JS, only commonjs and es6 imports are supported (:esm will come later)

Future

  • 📦 Support :esm bundles
  • ♻️ Rename compile to compose in bach.cli (generally give the cli some love, particularly around ClojureScript)
  • ☁️ Update Circle CI config to consider ClojureScript tests

Tickets

…arse defparser in bach.ast for idiomatic compatibility with cljs
…mpatible (breaking change, since default export is now an object instead of a function :warning)
…as only used in cljsbuild. Still need to rethink bach.cli around ClojureScript.
…ClojureScript (works in ClojureScript, regression in Clojure due to require macros)
@slurmulon slurmulon self-assigned this Feb 3, 2021
@slurmulon slurmulon merged commit 42b317a into master Feb 3, 2021
@slurmulon slurmulon deleted the feat/18-clojurescript branch February 3, 2021 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant