bsansouci / reprocessing-example

79 stars 27 forks source link

js files get placed in src/, not in lib/js/src #15

Closed SuperFluffy closed 6 years ago

SuperFluffy commented 6 years ago

I have managed to get the examples running using both the native and the js backends. I am surprised, however, that bsb -make-world -native js places the resulting index.js not in lib/js/src/, as is expected by the index.html file, but puts it in src/.

In fact, I don't have lib/js/src, only a lib/bs/js/src, with the following contents:

% ls -1 lib/bs/js/src/
index.cmi
index.cmj
index.cmt
index.mlast
index.mlast.d
IndexHot.cmi
IndexHot.cmj
IndexHot.cmt
IndexHot.mlast
IndexHot.mlast.d

Why the discrepancy?

bsansouci commented 6 years ago

There’s an option in bsconfig to in-line the generated is called “in-source”, see https://bucklescript.github.io/docs/en/build-configuration#package-specs

Do you have that option turned on?

SuperFluffy commented 6 years ago

Thanks for the reply! Yes, indeed, that was it. It's a bsb -init . default, and I guessed that the behaviour should be the same between your more bare bsconfig.json and the generated one.