1.0.3 • Published 3 years ago
create-elm-package v1.0.3
create-elm-package
An npm initializer for creating new Elm packages.
Usage
mkdir my-elm-package
cd my-elm-package
npm init elm-packageWhat'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
mainat the top of.github/workflows/CI.yaml. ?branch=mainin the GitHub Workflow Status badge URL inREADME.md.
Development
- Clone the repo.
cd create-elm-packagenpm installnpm run dev
In a separate session/tab/window:
1. npm link
1. 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.