That worked great, thanks!

I used elm-github-install to install the bsouthga/elm-katex package
directly from GitHub. I didn't have to rename my own local project. I only
need to fork bsouthga's project if I want to update it to use a newer
version of KaTeX.

I didn't want to install gems in my global system dir as root, so I
installed rvm and the latest version of Ruby. Then I did gem install
elm_install.

Unlike elm-package where you can specify a package name and it will
automatically update your elm-package.json, I had to manually add an entry
each to dependencies and dependency-sources, then run elm-install. Then I
was able to build my project with no problem, and everything worked.


On Sun, Jan 29, 2017 at 11:23 PM, Peter Damoc <[email protected]> wrote:

>
>
> On Mon, Jan 30, 2017 at 8:48 AM, Lyle Kopnicky <[email protected]> wrote:
>
>> So I wonder if I can use elm-package to install a package from another
>> directory, so hopefully the references will work out right?
>>
>
> elm-package does not support that BUT, elm-github-install
> <https://github.com/gdotdesign/elm-github-install> was designed for such
> contexts.
> Add the package manually to your dependencies and then use
> elm-github-install to install it.
>
>
>> when I build my project, because I'm using the default project URL, it
>> gets referenced as _user$project$Native_KaTeX, which doesn't match.
>
>
> You need a valid github project. Default values don't work. So, if you
> fork the project and replace the user in that Native function name, you
> should be able to compile it just fine.
>
>
>> Another possibility is given by looking at https://github.com/eeue56/t
>> ake-home/wiki/Writing-your-first-Elm-Native-module. Here the author
>> shows some very different boilerplate, which doesn't seem to involve the
>> project name in the variable names. I'd have to copy the elm-katex code
>> into my own project and tweak it a bit, but that's OK for now as I'll only
>> be building/running my project locally for the foreseeable future. Also I'd
>> be able to update the version of KaTeX that's embedded in the file.
>>
>
> The guide you referenced is for an old way to do Native. That API is
> obsolete.
>
>
> --
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/elm-discuss/eusppnDgN-A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

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

Reply via email to