yesod/yesod
Michael Snoyman 03cf2d170c Fix a warning
2012-03-29 09:03:22 +02:00
..
input Fixed scaffolding; removed tiny; added bootstrap.css 2012-03-29 08:43:37 +02:00
scaffold Fixed scaffolding; removed tiny; added bootstrap.css 2012-03-29 08:43:37 +02:00
Scaffolding Fix a warning 2012-03-29 09:03:22 +02:00
static
test
.gitignore
Build.hs
Devel.hs
LICENSE
main.hs
README.md
Setup.lhs
yesod.cabal
Yesod.hs

Overview

The yesod package

  • groups together the various Yesod related packages into one cohesive whole.
  • contains the executable yesod

There are 2 main features of the executable

  • yesod devel - start a development environment
  • yesod init - create a scaffolded site

Scaffolding

Test suite

install the shelltest package: cabal install shelltests

Run this from the project root directory. It will make sure each site type builds. It first does an sdist, which ensures we are testing what will be put on hackage.

test/run.sh

Give it the --debug flag to see all output

Quicker, repeatable site building

Useful for debugging individual failures.

test/runscaffold.sh < sqlite-input.txt

Getting a list of scaffold files for the cabal file

It is necessary after adding a scaffolding file to add it to the list of files in the cabal file.

find scaffold -type f