Remove commented out code

This commit is contained in:
Martijn Faassen 2022-02-07 11:48:46 +01:00
parent 901a9b9f0e
commit 4f1088ddf5

View File

@ -28,25 +28,6 @@ start = do
compileAndNpmInstall waspRoot outDir
-- waspSaysC $ asWaspStartMessage "Compiling wasp code..."
-- compilationResult <- liftIO $ compileIO waspRoot outDir
-- case compilationResult of
-- Left compileError -> throwError $ CommandError $ asWaspFailureMessage "Compilation failed:" ++ compileError
-- Right () -> waspSaysC $ asWaspSuccessMessage "Code has been successfully compiled, project has been generated."
-- -- TODO: Do smart npm install -> if we need to install stuff, install it, otherwise don't.
-- -- This should be responsibility of Generator, it should tell us how to install stuff.
-- -- But who checks out if stuff needs to be installed at all? That should probably be
-- -- Generator again. After installation, it should return some kind of data that describes that installation.
-- -- Then, next time, we give it data we have about last installation, and it uses that
-- -- to decide if installation needs to happen or not. If it happens, it returnes new data again.
-- -- Right now we have setup/installation being called, but it has not support for being "smart" yet.
-- waspSaysC $ asWaspStartMessage "Setting up generated project..."
-- setupResult <- liftIO $ Wasp.Lib.setup outDir
-- case setupResult of
-- Left setupError -> throwError $ CommandError $ asWaspFailureMessage "Setup failed:" ++ setupError
-- Right () -> waspSaysC $ asWaspSuccessMessage "Setup successful."
waspSaysC $ asWaspStartMessage "Listening for file changes..."
waspSaysC $ asWaspStartMessage "Starting up generated project..."
watchOrStartResult <- liftIO $ race (watch waspRoot outDir) (Wasp.Lib.start outDir)