Cleaned up output on success from 'wasp new'.

This commit is contained in:
Martin Sosic 2021-02-08 15:28:37 +01:00
parent 819f11b7b3
commit e1aa7723b5

View File

@ -36,15 +36,12 @@ createNewProject projectName = do
writeFileSP (extCodeDir </> mainPageJsFileInExtCodeDir) mainPageJsFileContent
liftIO $ do
putStrLn $ Term.applyStyles [Term.Green] $ "Created new Wasp project in ./" ++ projectName ++ " directory!"
putStrLn $ "Move into created directory and type '"
++ (Term.applyStyles [Term.Bold] "wasp start")
++ "' to run the app."
putStrLn $ Term.applyStyles [Term.Green] ("Created new Wasp app in ./" ++ projectName ++ " directory!")
putStrLn "To run it, do:"
putStrLn ""
putStrLn $ Term.applyStyles [Term.Bold] (" cd " ++ projectName)
putStrLn $ Term.applyStyles [Term.Bold] " wasp start"
putStrLn ""
putStrLn "Check the docs for any further information: https://wasp-lang.dev/docs."
putStrLn $ "If you are new to Wasp, we recommend starting with Todo App tutorial:"
++ " https://wasp-lang.dev/docs/tutorials/todo-app."
where
mainWaspFileInWaspProjectDir :: Path (Rel Common.WaspProjectDir) File
mainWaspFileInWaspProjectDir = SP.fromPathRelFile [P.relfile|main.wasp|]