Fork me on GitHub
#boot
<
2018-05-07
>
mathpunk04:05:38

I've got a web app to analyze and test and break. It's in plain js. Does boot have tools to help me embed a cljs repl so I can start experimenting with symbols i find my coworkers have written?

mathpunk04:05:01

My goals are to call their js functions with generated test data, and maybe provide some functions to help them write tests.

alandipert14:05:31

@mathpunk i'm not aware of anything in particular, but there is a cljs browser extension for chrome that you might find helpful

mathpunk16:05:59

@alandipert Cool. I'm sufficiently unfamiliar with the running environment of a web app that ill take all the help i can

anmonteiro17:05:55

@miikka @crisptrutski can we get a boot-cljs-test release that includes the Doo 0.1.10 fix?

miikka06:05:45

@U0CK4CKAP I don't have the rights to do a release, but I pinged Chris on GitHub.

danielcompton20:05:44

Is there a 'standard' place to set BOOT_JVM_OPTIONS so that all users get it for a particular project?

danielcompton20:05:12

It looks like I either need to set the env var myself or create a wrapping boot to do this

seancorfield20:05:25

@danielcompton FWIW, we took the latter approach at World Singles. We have a build/bin/boot which is our wrapper and we have the actual boot file as build/bin/boot-core (so we can control the version of the main Boot app, as well as ensuring the same, expected shell script is available throughout the project, across all tiers).

seancorfield20:05:25

Our wrapper parses our version.properties file to get the "pinned" version of Clojure to use with Boot as well.

danielcompton20:05:34

I don't suppose putting JVM options in boot.properties would work would it?

seancorfield20:05:10

How would you ensure every developer/every machine had the correct boot.properties data?

danielcompton20:05:24

check it in at the root of your project?

danielcompton20:05:42

I have one there, I assume it's doing something, but maybe not 🙂

seancorfield20:05:40

Does Boot read boot.properties from the current directory when it is run? (I don't know -- it would seem sensible tho')

seancorfield20:05:54

Yup, testing indicates it does.

seancorfield20:05:09

So, that would work for any static options you wanted.

seancorfield20:05:49

We computer BOOT_JVM_OPTIONS dynamically in our wrapper script, depending on various parameters and host environment etc.

danielcompton20:05:07

Hmm, JVM opts doesn't seem to be picked up?

danielcompton20:05:18

BOOT_JVM_OPTIONS="--add-mod abab" works fine, when it should throw

alandipert20:05:37

i don't think boot_jvm_options are picked up from boot.properties

seancorfield20:05:11

I only tested BOOT_CLOJURE_VERSION, sorry.

alandipert20:05:52

it would be cool if it did tho. i don't know if there's a technical reason why not

👍 4