Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
elm-tooling
Advanced tools
The CLI for elm-tooling.json. Create and validate elm-tooling.json
. Install Elm tools.
npm install --save-dev elm-tooling
npx elm-tooling --help
Create a sample elm-tooling.json
in the current directory. It tries to guess some values based on your project to help you get started.
Validate the closest elm-tooling.json
. If you’re having trouble with some program not reading your elm-tooling.json
correctly, try elm-tooling validate
to check if you’ve made any mistakes.
Download the tools in the closest elm-tooling.json
.
This command just downloads stuff from the Internet and shoves it into a folder (basically, ~/.elm/elm-tooling/
). It does not provide you with an easy way to run the tools or anything. It’s up to other programs to support the shared location of binaries. But you can use elm-tooling postinstall
to piggy-back on the well-supported npm
ecosystem.
Download the tools in the closest elm-tooling.json
and create links to them in node_modules/.bin/
.
This is basically a drop-in replacement for installing elm
and elm-format
with npm
. This lets you use the tools field of elm-tooling.json
without your editor and build tools having to support it.
package.json
:
{
"devDependencies": {
- "elm": "0.19.1",
- "elm-format": "0.8.3"
+ "elm-tooling": "0.1.4"
},
"scripts": {
+ "postinstall": "elm-tooling postinstall"
}
}
elm-tooling.json:
+{
+ "tools": {
+ "elm": "0.19.1",
+ "elm-format": "0.8.3"
+ }
+}
Thanks to the postinstall script shown in package.json
above, elm
and elm-format
will be automatically installed whenever you run npm install
(just like you’re used to if you already install elm
and elm-format
using npm
).
elm-tooling postinstall
does two things:
elm-tooling download
. This makes sure your tools are available on disk as required by the elm-tooling.json
spec.node_modules/.bin/
folder to the downloaded tools, just like the elm
and elm-format
npm packages do. This allows you to run things like npx elm make src/Main.elm
, and your editor and build tools to automatically find them.The difference compared to installing the regular elm
and elm-format
packages are:
elm-tooling
downloads all tools in parallel, while the binary downloads for the regular elm
and elm-format
packages are serial.elm
and elm-format
npm packages depend on megabytes of dependencies. elm-tooling
has no npm dependencies at all.Note: If you’re using npm
’s ignore-scripts feature, that also means your own postinstall
script won’t run. Which means that you’ll have to remember to run npm run postinstall
or npx elm-tooling postinstall
yourself.
MIT.
Version 0.1.4 (2020-09-06)
,
as decimal separator.FAQs
Manage elm-tooling.json. Install Elm tools.
The npm package elm-tooling receives a total of 5,813 weekly downloads. As such, elm-tooling popularity was classified as popular.
We found that elm-tooling demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.