Clojurians
#cljs-dev
<
2015-10-10
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

bensu15:10:14

Hi @martinklepsch! I've just had problems with something related to http://dev.clojure.org/jira/browse/CLJS-1444

bensu15:10:21

That one is meant to allow calling the scripts from a directory diferent from the compilation one as in node some/other/dir/out/your-script.js

bensu15:10:47

I'm having trouble if the user (or cljsbuild) passes an absolute path to :output-dir

bensu15:10:19

which puts an absolute path in asset-path, making path.join(path.resolve("."), "/an/absolute/path") faulty

martinklepsch15:10:36

Hey @bensu :) would dirname work in that case?

bensu15:10:09

@martinklepsch: No, because the absolute path needs no resolving.

bensu15:10:31

@martinklepsch: @dnolen: I think the question is: are absolute paths supported in the compiler options?

dnolen15:10:35

@bensu: I would fix the Node.js script to check that it doesn’t have an absolute path - this must be done in a crossplatform way (i.e. Windows)

bensu15:10:40

@dnolen: ok, should I open another issue? we have two problems with the same line of code.

dnolen16:10:01

@bensu yes please

bensu16:10:40

@dnolen sure thing

bensu16:10:04

@martinklepsch: when I have a patch I'll ping you and see if it sets the stage to solve your issue as well.

martinklepsch16:10:47

Cool, thx :thumbsup: