boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
mathpunk 2018-05-07T04:17:38.000055Z

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?

mathpunk 2018-05-07T04:23:01.000182Z

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

2018-05-07T14:55:31.000443Z

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

mathpunk 2018-05-07T16:17:59.000272Z

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

anmonteiro 2018-05-07T17:58:55.000141Z

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

anmonteiro 2018-05-08T16:40:50.000493Z

thanks

danielcompton 2018-05-07T20:09:44.000280Z

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

danielcompton 2018-05-07T20:10:12.000157Z

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

seancorfield 2018-05-07T20:30:25.000682Z

@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).

seancorfield 2018-05-07T20:31:25.000735Z

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

danielcompton 2018-05-07T20:31:34.000002Z

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

seancorfield 2018-05-07T20:32:10.000134Z

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

danielcompton 2018-05-07T20:32:24.000091Z

check it in at the root of your project?

danielcompton 2018-05-07T20:32:42.000232Z

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

seancorfield 2018-05-07T20:33:40.000446Z

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

seancorfield 2018-05-07T20:34:54.000588Z

Yup, testing indicates it does.

seancorfield 2018-05-07T20:35:09.000368Z

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

seancorfield 2018-05-07T20:35:49.000440Z

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

danielcompton 2018-05-07T20:39:07.000541Z

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

danielcompton 2018-05-07T20:39:18.000163Z

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

2018-05-07T20:40:37.000111Z

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

danielcompton 2018-05-07T20:40:57.000561Z

😢

seancorfield 2018-05-07T20:41:11.000444Z

I only tested BOOT_CLOJURE_VERSION, sorry.

2018-05-07T20:41:52.000131Z

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

👍 1