Skip to content

Commit b5c9d5e

Browse files
authored
[Docs] add example showing "in-source" configuration
Motivated by feedback from Stack Overflow:
1 parent 6e95ec3 commit b5c9d5e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

site/docsource/Build-system-support.adoc

+13-1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,18 @@ people who use your library
330330
When user has an existing JS project, it makes sense to output the JS file in the same directory as vanilla JS,
331331
the schema added a key called `in-source` so that generate JS file next to ML file.
332332

333+
Example:
334+
335+
[source,json]
336+
--------------
337+
{
338+
...
339+
"package-specs" : [{
340+
"in-source": true
341+
}]
342+
}
343+
--------------
344+
333345
=== Build using Make
334346
[WARNING]
335347
========
@@ -441,4 +453,4 @@ only need the generated `test.ml`, to help test such behavior in development mod
441453
}
442454
-----------
443455

444-
Then `bsb` will not re-generate `test.ml` whenever `test.mly` changes.
456+
Then `bsb` will not re-generate `test.ml` whenever `test.mly` changes.

0 commit comments

Comments
 (0)