elm-component

0.3.0 • Public • Published

elm-component

Although The Elm Architecture is one of the really nice parts of Elm, it has a few problems with boilerplate. Creating new components is perhaps one of the more booring tasks. elm-component tries to reduce some of this pain by creating the initial code for a component for you.

Installation

npm install -g elm-component

Usage

Run elm-component ComponentName in the folder you want to create a new component. This create the following structure:

ComponentName
├── Messages.elm
├── Model.elm
├── Subscriptions.elm
├── Update.elm
└── View.elm

The content of each file should be relatively self explanatory, but can also be seen in the templates folder of this repository.

/elm-component/

    Package Sidebar

    Install

    npm i elm-component

    Weekly Downloads

    1

    Version

    0.3.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • bendiksolheim