神刀安全网

How I Structure Elm Apps

First, there are three packages I won’t get out of bed without, so let’s install them:

elm package install --yes evancz/start-app elm package install --yes evancz/elm-effects elm package install --yes evancz/elm-html

Then I’ll edit the elm-package.json file that’s just been created and set source-directories :

"source-directories": [     "src",     "test" ]

With that in place, we can talk about file structure. There’s one special file, and a then a pattern that repeats throughout the app.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » How I Structure Elm Apps

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮