elm-lang / elm-package

Command line tool to share Elm libraries
BSD 3-Clause "New" or "Revised" License
214 stars 66 forks source link

Developer dependencies #108

Closed jagregory closed 8 years ago

jagregory commented 9 years ago

I have dependencies like elm-test which people consuming my package have no need for, but are required if you want to contribute to the package or run examples locally. Is there a way to specify dependencies of a package which are only used at development time?

For example Node has devDependencies, which are only installed if you clone the project and run npm install but not if you install the package as a dependency.

chendrix commented 9 years ago

:+1: I think this is necessary if we're going to have better support for package testing.

hughfdjackson commented 9 years ago

+1 from me - this would be very useful!

I've just cloned Signal-Extras to see if adding a function would work well, and had to re-install Elm-Test, without eventually commiting the change to the elm-package.json file - it's a bit of an unintuitive contribution flow.

evancz commented 9 years ago

There is no easy way to do this right now. As support for elm-test comes into the Elm Platform a feature like this is planned.

evancz commented 8 years ago

Will be part of a more coherent plan like https://github.com/elm-lang/elm-make/issues/59