create-elm-package
v1.0.3
Published
An initializer for creating new Elm packages.
Downloads
54
Maintainers
Readme
create-elm-package
An npm initializer for creating new Elm packages.
Usage
mkdir my-elm-package
cd my-elm-package
npm init elm-package
What's included
Please review the generated code before using it to ensure it meets your needs and doesn't include anything you don't want.
- Basic Elm package boilerplate.
- GitHub Workflow actions to:
- Validate the package.
- Automatically publish new versions using
elm-publish-action
.
Note the initial version 1.0.0 must be published manually.
Note the GitHub workflow assumes your default branch is called main
. If that's not the case, you should update the following places after you run the initializer:
- The 2 references to
main
at the top of.github/workflows/CI.yaml
. ?branch=main
in the GitHub Workflow Status badge URL inREADME.md
.
Development
- Clone the repo.
cd create-elm-package
npm install
npm run dev
In a separate session/tab/window:
npm link
npm init elm-package
This will run the local cloned/linked version.
Instead of running npm init elm-package
you can run the create-elm-package
global binary directly.
Instead of linking it with npm link
and using the global binary you can run the local binary directly: ./dist/cli.js
.