elm

Installer for Elm: just downloads the binary into node_modules

BSD-3-Clause 45 个版本
安装
npm install elm
yarn add elm
pnpm add elm
bun add elm
README

Elm Installer

Elm is a functional programming language that compiles to JavaScript.

Head over to The Official Guide to start learning Elm!


What is this package for?

For normal installs, I reccomend using the instructions here instead. This package is only for people who enjoy using npm even when it is not necessary, or for people who want to use npm for certain scenarios such as:

Multiple versions

People using Elm at work may use different versions of Elm in different projects. They can run npm install elm@latest-0.19.1 in each project and use the binary at ./node_modules/.bin/elm for compilation.

Continuous integration

The npm installer works for this, but there are faster and more reliable options:

  1. You can download elm directly from GitHub with this script. This allows you to skip npm entirely.
  2. Many continuous integration have ways to cache files (example) to make builds faster and more reliable. This is the ideal setup.

That said, it works to use the npm installer on CI if you prefer that option.


Install Locally

The following command should download the latest Elm 0.19.1 binary:

npm install elm@latest-0.19.1

You should be able to run ./node_modules/bin/elm --version within your project and see 0.19.1. Now you can compile with ./node_modules/bin/elm make src/Main.elm and not disrupt other packages.

Use npm install elm@latest-0.19.0 or npm install elm@latest-0.18.0 for earlier versions.

Note: The latest-X.Y.Z convention is used in case we need to publish patches for the npm installer within a given Elm release. For example, say npm decides that some transitive dependency is not secure. Nothing is changing about Elm or the binaries, but we need to publish a new npm installer that fixes this issue.

版本列表
2.0.0 2015-07-04
1.5.2 2015-06-21
1.5.1 2015-05-28
1.5.0 2015-05-28
1.4.1 2015-05-15
1.4.0 2015-05-13
1.3.0 2015-04-23
1.2.0 2015-03-16
0.19.1-6 2023-11-01
0.19.1-5 2021-01-29
0.19.1-4 2021-01-28
0.19.1-3 2019-10-22
0.19.1-2 2019-10-21
0.19.1-1 2019-10-21
0.19.1 2019-10-21
0.19.0 2018-08-21
0.19.0-no-deps 2019-05-11
0.19.0-bugfix6 2019-01-18
0.19.0-bugfix5 2019-01-18
0.19.0-bugfix4 2019-01-18
0.19.0-bugfix3 2019-01-18
0.19.0-bugfix2 2018-08-22
0.19.0-bugfix1 2018-08-21
0.18.0-beta 2016-11-10
0.18.0 2016-11-13
0.18.0-exp5 2018-04-20
0.18.0-exp4 2018-04-20
0.18.0-exp3 2018-04-20
0.18.0-exp2 2018-04-20
0.18.0-exp 2018-04-20
0.17.1-alpha 2016-06-28
0.17.1 2016-06-29
0.17.0 2016-05-10
0.17.0-alpha2 2016-04-26
0.17.0-alpha1 2016-04-26
0.16.0-alpha 2015-11-18
0.16.0 2015-11-19
0.15.1-beta 2015-10-26
0.15.1-alpha 2015-10-26
0.15.1 2015-10-28
0.15.1-beta5 2015-11-08
0.15.1-beta4 2015-11-06
0.15.1-beta3 2015-10-27
0.15.1-beta2 2015-10-27
0.0.0 2014-10-12