mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-23 19:29:17 +03:00
Rename to compileAndSetup
Until (and if) we ever rename setup, we should use this simpler name. And it involves npm install of two projects, not one one anyway.
This commit is contained in:
parent
4f1088ddf5
commit
ae5f498b65
@ -26,7 +26,7 @@ start = do
|
||||
waspRoot <- findWaspProjectRootDirFromCwd
|
||||
let outDir = waspRoot </> Common.dotWaspDirInWaspProjectDir </> Common.generatedCodeDirInDotWaspDir
|
||||
|
||||
compileAndNpmInstall waspRoot outDir
|
||||
compileAndSetup waspRoot outDir
|
||||
|
||||
waspSaysC $ asWaspStartMessage "Listening for file changes..."
|
||||
waspSaysC $ asWaspStartMessage "Starting up generated project..."
|
||||
@ -37,11 +37,11 @@ start = do
|
||||
Left startError -> throwError $ CommandError $ asWaspFailureMessage "Start failed:" ++ startError
|
||||
Right () -> error "This should never happen, start should never end but it did."
|
||||
|
||||
compileAndNpmInstall ::
|
||||
compileAndSetup ::
|
||||
Path' Abs (Dir Common.WaspProjectDir) ->
|
||||
Path' Abs (Dir Wasp.Generator.Common.ProjectRootDir) ->
|
||||
Command ()
|
||||
compileAndNpmInstall waspRoot outDir = do
|
||||
compileAndSetup waspRoot outDir = do
|
||||
waspSaysC $ asWaspStartMessage "Compiling wasp code..."
|
||||
compilationResult <- liftIO $ compileIO waspRoot outDir
|
||||
case compilationResult of
|
||||
|
Loading…
Reference in New Issue
Block a user