Merge branch 'master' of github.com:yesodweb/yesod
This commit is contained in:
commit
9d748b2c35
@ -86,23 +86,18 @@ done
|
|||||||
|
|
||||||
## Building your changes to Yesod
|
## Building your changes to Yesod
|
||||||
|
|
||||||
The traditional Yesod stack requires 4 "mega-repos", each with multiple cabal packages. `./script/install` will run tests against each package and install each package.
|
The traditional Yesod stack requires 4 "mega-repos", each with multiple cabal packages. `cabal-meta install` will install each package.
|
||||||
|
|
||||||
### install package in all repos
|
### install package in all repos
|
||||||
|
|
||||||
~~~ { .bash }
|
~~~ { .bash }
|
||||||
for repo in shakespeare persistent wai yesod; do
|
for repo in shakespeare persistent wai yesod; do
|
||||||
pushd $repo
|
pushd $repo
|
||||||
./scripts/install
|
cabal-meta install
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
### Clean build (sometimes necessary)
|
|
||||||
|
|
||||||
~~~ { .bash }
|
|
||||||
./scripts/install --clean
|
|
||||||
~~~
|
|
||||||
|
|
||||||
### Building individual packages
|
### Building individual packages
|
||||||
|
|
||||||
|
|||||||
@ -96,4 +96,8 @@ scaffold isBare = do
|
|||||||
responseBody res $$+- sink
|
responseBody res $$+- sink
|
||||||
Right backend -> runResourceT $ yield (backendBS backend) $$ sink
|
Right backend -> runResourceT $ yield (backendBS backend) $$ sink
|
||||||
|
|
||||||
TLIO.putStr $ LT.replace "PROJECTNAME" (LT.pack project) $ renderTextUrl undefined $(textFile "input/done.cg")
|
let projectnameReplacer = if isBare
|
||||||
|
then LT.replace "cd PROJECTNAME && " ""
|
||||||
|
else LT.replace "PROJECTNAME" (LT.pack project)
|
||||||
|
|
||||||
|
TLIO.putStr $ projectnameReplacer $ renderTextUrl undefined $(textFile "input/done.cg")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user