[elm-discuss] Re: Instaslling Elm 0.17 and Elm 0.18 at the same time.

2016-11-29 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, November 29, 2016 at 1:54:06 PM UTC, Rupert Smith wrote:
>
> Perhaps just create a vm or docker container and install elm 0.18 inside 
> that?
>

I created a Dockerfile with these installation commands in it:

RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean

RUN apt-get update && apt-get install -y git

RUN useradd -ms /bin/bash rupert
RUN npm install -g grunt-cli
RUN npm install -g elm
RUN npm install -g elm-github-install

USER rupert
WORKDIR /home/rupert 

Then run it with:

docker run -it -v /home/rupert:/home/rupert rupertlssmith/elm18:v1 /bin/bash

Which gives me a bash shell in my home directory with elm 0.18. Good enough.

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Instaslling Elm 0.17 and Elm 0.18 at the same time.

2016-11-29 Thread Simon
The easy way is to install elm locally to your project - `npm i elm@0.17` - 
and then I think elm-make will find it there (and if not, will default to 
the system installed version).

(Got the idea from Noah a couple of weeks ago)

On Tuesday, 29 November 2016 14:54:06 UTC+1, Rupert Smith wrote:
>
> I've been trying to follow these instructions:
>
> http://www.lambdacat.com/how-to-setup-local-development-for-elm/
>
> but getting some errors when trying to build from source.
>
> Is there an easier way? I don't want to blat my exising 0.17 with 0.18 
> right away, would rather keep it around until I have finished upgrading.
>
> Perhaps just create a vm or docker container and install elm 0.18 inside 
> that?
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Instaslling Elm 0.17 and Elm 0.18 at the same time.

2016-11-29 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, November 29, 2016 at 5:05:25 PM UTC, Simon wrote:
>
> The easy way is to install elm locally to your project - `npm i elm@0.17` 
> - and then I think elm-make will find it there (and if not, will default to 
> the system installed version).
>

Thanks, I didn't know that. 

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Instaslling Elm 0.17 and Elm 0.18 at the same time.

2016-11-29 Thread Emmanuel Rosa
I'm gonna try the npm local install next time.

I've been using Docker. I have a base image which provides Elm (from npm) 
and separate images for the different commands: elm-make, elm-reactor, 
elm-package, and elm-repl

https://hub.docker.com/r/emmanuelrosa/elm-base/

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Instaslling Elm 0.17 and Elm 0.18 at the same time.

2016-11-30 Thread Mickey Vashchinsky
Maybe this would be helpfull:

https://www.npmjs.com/package/elm-version-manager

On Tuesday, November 29, 2016 at 3:54:06 PM UTC+2, Rupert Smith wrote:
>
> I've been trying to follow these instructions:
>
> http://www.lambdacat.com/how-to-setup-local-development-for-elm/
>
> but getting some errors when trying to build from source.
>
> Is there an easier way? I don't want to blat my exising 0.17 with 0.18 
> right away, would rather keep it around until I have finished upgrading.
>
> Perhaps just create a vm or docker container and install elm 0.18 inside 
> that?
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] Re: Instaslling Elm 0.17 and Elm 0.18 at the same time.

2016-11-30 Thread Noah Hall
To expand on what simon said:
If you're using multiple Elm versions in production, use the version
installed via a local npm and make all your tooling refer to
node_modules/.bin/elm-make and friends. That way you can have a global
install of elm at a version, but still use 0.16 for a particular
project

On Wed, Nov 30, 2016 at 8:56 PM, Mickey Vashchinsky
 wrote:
> Maybe this would be helpfull:
>
> https://www.npmjs.com/package/elm-version-manager
>
>
> On Tuesday, November 29, 2016 at 3:54:06 PM UTC+2, Rupert Smith wrote:
>>
>> I've been trying to follow these instructions:
>>
>> http://www.lambdacat.com/how-to-setup-local-development-for-elm/
>>
>> but getting some errors when trying to build from source.
>>
>> Is there an easier way? I don't want to blat my exising 0.17 with 0.18
>> right away, would rather keep it around until I have finished upgrading.
>>
>> Perhaps just create a vm or docker container and install elm 0.18 inside
>> that?
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> 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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.