ClojureScript

Require main entry point (file) to serve as compilation root

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Per David Nolen in #clojure, a single file should serve as a compilation root, rather than the compiler needing to scan a given directory for files.

This leaves a couple of questions:

1. Are discovered dependencies then only ever loaded from the classpath?
2. If so, what does command-line (i.e. bin/cljsc compilation look like? Force people to export CLASSPATH appropriately, provide a set of alternative source paths via arguments, or other?

This would yield a fair bit of breakage downstream, e.g. cljsbuild.

Activity

Hide
David Nolen added a comment -

It's probably worth maintaining the source directory option of cljs.closure/build for some time with a deprecation warning to reduce breakage.

Show
David Nolen added a comment - It's probably worth maintaining the source directory option of cljs.closure/build for some time with a deprecation warning to reduce breakage.
Hide
David Nolen added a comment -

superseded by CLJS-851

Show
David Nolen added a comment - superseded by CLJS-851
David Nolen made changes -
Field Original Value New Value
Resolution Duplicate [ 3 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: