File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,15 @@ classpath. Classpath-relative paths have prefix of @ or @/")
159
159
(let [target (if (= " node" target) " nodejs" target)]
160
160
(assoc-in cfg [:options :target ] (keyword target))))
161
161
162
+ (defn- repl-env-opts-opt
163
+ [cfg ropts]
164
+ (update cfg :repl-env-options merge (edn/read-string ropts)))
165
+
166
+ (defn- compile-opts-opt
167
+ [cfg copts]
168
+ (update cfg :options merge (edn/read-string copts)))
169
+
170
+
162
171
(defn- init-opt
163
172
[cfg file]
164
173
(update-in cfg [:inits ]
@@ -385,13 +394,18 @@ present"
385
394
(str " Set optimization level, only effective with "
386
395
" -c main option. Valid values are: none, "
387
396
" whitespace, simple, advanced" )}
388
-
389
397
[" -t" " --target" ] {:group ::main&compile :fn target-opt
390
398
:arg " name"
391
399
:doc
392
400
(str " The JavaScript target. Configures environment bootstrap and "
393
401
" defaults to browser. Supported values: nodejs, nashorn, "
394
- " webworker, none" ) }}
402
+ " webworker, none" ) }
403
+ [" -rf" " --repl-opts" ] {:group ::main&compile :fn repl-env-opts-opt
404
+ :arg " edn"
405
+ :doc (str " Options to configure the repl-env" )}
406
+ [" -cf" " --compile-opts" ] {:group ::main&compile :fn compile-opts-opt
407
+ :arg " edn"
408
+ :doc (str " Options to configure the build" )}}
395
409
:main
396
410
{[" -r" " --repl" ] {:fn repl-opt
397
411
:doc " Run a repl" }
You can’t perform that action at this time.
0 commit comments