How to add a non-Amber library with bower?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add a non-Amber library with bower?

Hannes Hirzel
Herby gave an initial answer. I changed the title of the question to
better show what it is about.


http://stackoverflow.com/questions/27374889/how-to-add-a-non-amber-library-with-bower-for-example-processing-js

--HH



On 12/9/14, H. Hirzel <[hidden email]> wrote:

> Hello
>
> I go stuck initialising processing in Amber 0.13.
>
>
> Method ProcessingClock>>firstProcessingInstance
>
>     firstProcessingInstance
>
>         <return Processing.instances[0]>
>
> I posted the question here including the link to the proper repo:
>
> http://stackoverflow.com/questions/27374889/how-do-i-access-a-javascript-global-processing-initialisation.
>
> Regards
>
> Hannes
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to add a non-Amber library with bower?

Hannes Hirzel
The question

http://stackoverflow.com/questions/27374889/how-to-add-a-non-amber-library-with-bower-for-example-processing-js

is more specifically:


What is wrong with this processing.amd.json library mapping file?

{
"paths": {
            "processing": "bower_components/processing"
         }
}


Or put it in another way?

After installing a bower library like

      bower install processing --save

where do I get the correct paths from?


--HH

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to add a non-Amber library with bower?

Herby Vojčík


H. Hirzel wrote:
> The question
>
> http://stackoverflow.com/questions/27374889/how-to-add-a-non-amber-library-with-bower-for-example-processing-js
>
> is more specifically:
>
>
> What is wrong with this processing.amd.json library mapping file?

Paths section is libdir-relative.

And if you are only loading one .js file from that path, you don't map the path, but the file itself (it's in fact preferred), without final .js.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.