mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-23 17:13:40 +03:00
Fix formatting
This commit is contained in:
parent
0d8da669e0
commit
63c56d40a5
@ -19,10 +19,10 @@ import StrongPath.TH (relfile)
|
||||
import qualified System.Info
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import Wasp.Generator.DbGenerator.Common (MigrateArgs (..), dbSchemaFileInProjectRootDir)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob, runNodeCommandAsJobWithExtraEnv)
|
||||
import Wasp.Generator.ServerGenerator.Common (serverRootDirInProjectRootDir)
|
||||
import Wasp.Generator.ServerGenerator.Db.Seed (dbSeedNameEnvVarName)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob, runNodeCommandAsJobWithExtraEnv)
|
||||
import Wasp.Project.Common (WaspProjectDir, waspProjectDirFromProjectRootDir)
|
||||
|
||||
migrateDev :: Path' Abs (Dir ProjectRootDir) -> MigrateArgs -> J.Job
|
||||
|
@ -36,12 +36,12 @@ import Wasp.Generator.DbGenerator.Common
|
||||
)
|
||||
import qualified Wasp.Generator.DbGenerator.Jobs as DbJobs
|
||||
import Wasp.Generator.FileDraft.WriteableMonad (WriteableMonad (copyDirectoryRecursive, doesDirectoryExist))
|
||||
import qualified Wasp.Generator.WriteFileDrafts as Generator.WriteFileDrafts
|
||||
import Wasp.Job.IO
|
||||
( collectJobTextOutputUntilExitReceived,
|
||||
printJobMsgsUntilExitReceived,
|
||||
readJobMessagesAndPrintThemPrefixed,
|
||||
)
|
||||
import qualified Wasp.Generator.WriteFileDrafts as Generator.WriteFileDrafts
|
||||
import Wasp.Project.Db.Migrations (DbMigrationsDir)
|
||||
import Wasp.Util (checksumFromFilePath, hexToString)
|
||||
import Wasp.Util.IO (deleteFileIfExists, doesFileExist)
|
||||
|
@ -16,15 +16,15 @@ import System.Exit (ExitCode (..))
|
||||
import UnliftIO (race)
|
||||
import Wasp.AppSpec (AppSpec (waspProjectDir))
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import Wasp.Job (Job, JobMessage, JobType)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.IO.PrefixedWriter (PrefixedWriter, printJobMessagePrefixed, runPrefixedWriter)
|
||||
import Wasp.Generator.Monad (GeneratorError (..))
|
||||
import Wasp.Generator.NpmInstall.Common (AllNpmDeps (..), getAllNpmDeps)
|
||||
import Wasp.Generator.NpmInstall.InstalledNpmDepsLog (forgetInstalledNpmDepsLog, loadInstalledNpmDepsLog, saveInstalledNpmDepsLog)
|
||||
import qualified Wasp.Generator.SdkGenerator as SdkGenerator
|
||||
import qualified Wasp.Generator.ServerGenerator.Setup as ServerSetup
|
||||
import qualified Wasp.Generator.WebAppGenerator.Setup as WebAppSetup
|
||||
import Wasp.Job (Job, JobMessage, JobType)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.IO.PrefixedWriter (PrefixedWriter, printJobMessagePrefixed, runPrefixedWriter)
|
||||
import Wasp.Project.Common (WaspProjectDir, nodeModulesDirInWaspProjectDir)
|
||||
import qualified Wasp.Util.IO as IOUitl
|
||||
|
||||
|
@ -37,9 +37,6 @@ import Wasp.Generator.DbGenerator (getEntitiesForPrismaSchema)
|
||||
import qualified Wasp.Generator.DbGenerator.Auth as DbAuth
|
||||
import Wasp.Generator.FileDraft (FileDraft)
|
||||
import qualified Wasp.Generator.FileDraft as FD
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.IO (readJobMessagesAndPrintThemPrefixed)
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import Wasp.Generator.Monad (Generator)
|
||||
import qualified Wasp.Generator.NpmDependencies as N
|
||||
import Wasp.Generator.SdkGenerator.AuthG (genAuth)
|
||||
@ -66,6 +63,9 @@ import Wasp.Generator.WebAppGenerator.Common
|
||||
reactVersion,
|
||||
)
|
||||
import qualified Wasp.Generator.WebAppGenerator.Common as WebApp
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.IO (readJobMessagesAndPrintThemPrefixed)
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import qualified Wasp.Node.Version as NodeVersion
|
||||
import Wasp.Project.Common (WaspProjectDir)
|
||||
import qualified Wasp.Project.Db as Db
|
||||
|
@ -5,9 +5,9 @@ where
|
||||
|
||||
import StrongPath (Abs, Dir, Path', (</>))
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import qualified Wasp.Generator.ServerGenerator.Common as Common
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import qualified Wasp.Generator.ServerGenerator.Common as Common
|
||||
|
||||
installNpmDependencies :: Path' Abs (Dir ProjectRootDir) -> J.Job
|
||||
installNpmDependencies projectDir = do
|
||||
|
@ -5,9 +5,9 @@ where
|
||||
|
||||
import StrongPath (Abs, Dir, Path', (</>))
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import qualified Wasp.Generator.ServerGenerator.Common as Common
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import qualified Wasp.Generator.ServerGenerator.Common as Common
|
||||
|
||||
startServer :: Path' Abs (Dir ProjectRootDir) -> J.Job
|
||||
startServer projectDir = do
|
||||
|
@ -9,10 +9,10 @@ import Control.Concurrent.Extra (threadDelay)
|
||||
import Control.Monad (void)
|
||||
import StrongPath (Abs, Dir, Path')
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.IO (readJobMessagesAndPrintThemPrefixed)
|
||||
import Wasp.Generator.ServerGenerator.Start (startServer)
|
||||
import Wasp.Generator.WebAppGenerator.Start (startWebApp)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.IO (readJobMessagesAndPrintThemPrefixed)
|
||||
|
||||
-- | This is a blocking action, that will start the processes that run web app and server.
|
||||
-- It will run as long as one of those processes does not fail.
|
||||
|
@ -7,8 +7,8 @@ import Control.Concurrent (newChan)
|
||||
import Control.Concurrent.Async (concurrently)
|
||||
import StrongPath (Abs, Dir, Path')
|
||||
import System.Exit (ExitCode (..))
|
||||
import Wasp.Job.IO (readJobMessagesAndPrintThemPrefixed)
|
||||
import qualified Wasp.Generator.WebAppGenerator.Test as WebAppTest
|
||||
import Wasp.Job.IO (readJobMessagesAndPrintThemPrefixed)
|
||||
import Wasp.Project.Common (WaspProjectDir)
|
||||
|
||||
testWebApp :: [String] -> Path' Abs (Dir WaspProjectDir) -> IO (Either String ())
|
||||
|
@ -5,9 +5,9 @@ where
|
||||
|
||||
import StrongPath (Abs, Dir, Path', (</>))
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import qualified Wasp.Generator.WebAppGenerator.Common as Common
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import qualified Wasp.Generator.WebAppGenerator.Common as Common
|
||||
|
||||
installNpmDependencies :: Path' Abs (Dir ProjectRootDir) -> J.Job
|
||||
installNpmDependencies projectDir = do
|
||||
|
@ -5,9 +5,9 @@ where
|
||||
|
||||
import StrongPath (Abs, Dir, Path', (</>))
|
||||
import Wasp.Generator.Common (ProjectRootDir)
|
||||
import qualified Wasp.Generator.WebAppGenerator.Common as Common
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import qualified Wasp.Generator.WebAppGenerator.Common as Common
|
||||
|
||||
startWebApp :: Path' Abs (Dir ProjectRootDir) -> J.Job
|
||||
startWebApp projectDir = do
|
||||
|
@ -5,9 +5,9 @@ where
|
||||
|
||||
import StrongPath (Abs, Dir, Path', relfile, (</>))
|
||||
import qualified StrongPath as SP
|
||||
import Wasp.Generator.WebAppGenerator.Common (webAppRootDirInProjectRootDir)
|
||||
import qualified Wasp.Job as J
|
||||
import Wasp.Job.Process (runNodeCommandAsJob)
|
||||
import Wasp.Generator.WebAppGenerator.Common (webAppRootDirInProjectRootDir)
|
||||
import Wasp.Project.Common (WaspProjectDir, dotWaspDirInWaspProjectDir, generatedCodeDirInDotWaspDir)
|
||||
|
||||
testWebApp :: [String] -> Path' Abs (Dir WaspProjectDir) -> J.Job
|
||||
|
@ -23,7 +23,7 @@ import Wasp.Data (DataDir)
|
||||
import qualified Wasp.Data as Data
|
||||
import qualified Wasp.Node.Version as NodeVersion
|
||||
|
||||
-- | This are the globally installed packages waspc runs directly from
|
||||
-- | This are the globally installed packages waspc runs directly from
|
||||
-- their global installation path.
|
||||
data RunnablePackage
|
||||
= DeployPackage
|
||||
|
Loading…
Reference in New Issue
Block a user