duplo-1.6.19: Frontend development build tool

Safe HaskellNone
LanguageHaskell2010

Development.Duplo.Component

Synopsis

Documentation

manifestName :: FilePath Source

Each application must have a `component.json`

appId :: AppInfo -> String Source

Get the app's Component.IO ID

parseRepoInfo :: [String] -> String Source

Parse the repo info into an app ID

parseComponentId :: String -> Either String (String, String) Source

Given a possible component ID, return the user and the repo constituents

extractCompVersions :: BuildConfig -> Action String Source

Given a path, find all the `component.json` and return a JSON string

decodeManifest :: FilePath -> ByteString -> AppInfo Source

Given a path and the file content that the path points to, return the manifest in AppInfo form.

getAllManifestPaths :: FilePath -> FilePath -> Action [FilePath] Source

Given a path, find all the `component.json`s

getDependencies :: Maybe String -> IO [FilePath] Source

Simply get all dependencies if no mode is provided.

Get the component dependency list by providing a mode, or not.

getDependencies' :: Dependencies -> Maybe [String] -> IO [FilePath] Source

Helper function to get the selected dependency list given the full dependency list, all modes, and the target mode to select the list by.

isRegularFile :: FilePath -> Bool Source

Regular file != *nix-style hidden file