create-elm-package

1.0.3 • Public • Published

create-elm-package

GitHub Workflow Status npm version

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 in README.md.

Development

  1. Clone the repo.
  2. cd create-elm-package
  3. npm install
  4. npm run dev

In a separate session/tab/window:

  1. npm link
  2. 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.

Package Sidebar

Install

npm i create-elm-package

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

13.1 kB

Total Files

16

Last publish

Collaborators

  • methodgrab