From 7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f Mon Sep 17 00:00:00 2001 From: Alex Mingoia Date: Tue, 10 May 2016 00:09:28 -0700 Subject: Refactor to compile independently of purescript-webpack-plugin. - Remove dependence on purescript-webpack-plugin - Fixes double-compilation issue by loading compiled JS instead of adding dependency. - Uses `psc-ide-server` for fast rebuilds. --- docs/PursLoader/Debug.md | 9 ------- docs/PursLoader/JsStringEscape.md | 9 ------- docs/PursLoader/Loader.md | 27 --------------------- docs/PursLoader/LoaderRef.md | 51 --------------------------------------- docs/PursLoader/LoaderUtil.md | 9 ------- docs/PursLoader/Options.md | 21 ---------------- docs/PursLoader/Path.md | 27 --------------------- docs/PursLoader/Plugin.md | 33 ------------------------- 8 files changed, 186 deletions(-) delete mode 100644 docs/PursLoader/Debug.md delete mode 100644 docs/PursLoader/JsStringEscape.md delete mode 100644 docs/PursLoader/Loader.md delete mode 100644 docs/PursLoader/LoaderRef.md delete mode 100644 docs/PursLoader/LoaderUtil.md delete mode 100644 docs/PursLoader/Options.md delete mode 100644 docs/PursLoader/Path.md delete mode 100644 docs/PursLoader/Plugin.md (limited to 'docs/PursLoader') diff --git a/docs/PursLoader/Debug.md b/docs/PursLoader/Debug.md deleted file mode 100644 index 824a9f8..0000000 --- a/docs/PursLoader/Debug.md +++ /dev/null @@ -1,9 +0,0 @@ -## Module PursLoader.Debug - -#### `debug` - -``` purescript -debug :: forall eff. String -> Eff (loader :: Loader | eff) Unit -``` - - diff --git a/docs/PursLoader/JsStringEscape.md b/docs/PursLoader/JsStringEscape.md deleted file mode 100644 index 09f52aa..0000000 --- a/docs/PursLoader/JsStringEscape.md +++ /dev/null @@ -1,9 +0,0 @@ -## Module PursLoader.JsStringEscape - -#### `jsStringEscape` - -``` purescript -jsStringEscape :: String -> String -``` - - diff --git a/docs/PursLoader/Loader.md b/docs/PursLoader/Loader.md deleted file mode 100644 index d05e3b7..0000000 --- a/docs/PursLoader/Loader.md +++ /dev/null @@ -1,27 +0,0 @@ -## Module PursLoader.Loader - -#### `Effects` - -``` purescript -type Effects eff = (console :: CONSOLE, err :: EXCEPTION | eff) -``` - -#### `Effects_` - -``` purescript -type Effects_ eff = Effects (loader :: Loader | eff) -``` - -#### `loader` - -``` purescript -loader :: forall eff. LoaderRef -> String -> Eff (Effects_ eff) Unit -``` - -#### `loaderFn` - -``` purescript -loaderFn :: forall eff. Fn2 LoaderRef String (Eff (Effects_ eff) Unit) -``` - - diff --git a/docs/PursLoader/LoaderRef.md b/docs/PursLoader/LoaderRef.md deleted file mode 100644 index 917db3a..0000000 --- a/docs/PursLoader/LoaderRef.md +++ /dev/null @@ -1,51 +0,0 @@ -## Module PursLoader.LoaderRef - -#### `AsyncCallback` - -``` purescript -type AsyncCallback eff = Maybe Error -> String -> Eff (loader :: Loader | eff) Unit -``` - -#### `LoaderRef` - -``` purescript -data LoaderRef -``` - -#### `Loader` - -``` purescript -data Loader :: ! -``` - -#### `async` - -``` purescript -async :: forall eff. LoaderRef -> Eff (loader :: Loader | eff) (Maybe Error -> String -> Eff (loader :: Loader | eff) Unit) -``` - -#### `cacheable` - -``` purescript -cacheable :: forall eff. LoaderRef -> Eff (loader :: Loader | eff) Unit -``` - -#### `clearDependencies` - -``` purescript -clearDependencies :: forall eff. LoaderRef -> Eff (loader :: Loader | eff) Unit -``` - -#### `resourcePath` - -``` purescript -resourcePath :: LoaderRef -> String -``` - -#### `addDependency` - -``` purescript -addDependency :: forall eff. LoaderRef -> String -> Eff (loader :: Loader | eff) Unit -``` - - diff --git a/docs/PursLoader/LoaderUtil.md b/docs/PursLoader/LoaderUtil.md deleted file mode 100644 index 36d6879..0000000 --- a/docs/PursLoader/LoaderUtil.md +++ /dev/null @@ -1,9 +0,0 @@ -## Module PursLoader.LoaderUtil - -#### `parseQuery` - -``` purescript -parseQuery :: String -> Foreign -``` - - diff --git a/docs/PursLoader/Options.md b/docs/PursLoader/Options.md deleted file mode 100644 index b3352fc..0000000 --- a/docs/PursLoader/Options.md +++ /dev/null @@ -1,21 +0,0 @@ -## Module PursLoader.Options - -#### `Options` - -``` purescript -newtype Options - = Options { bundleOutput :: String } -``` - -##### Instances -``` purescript -IsForeign Options -``` - -#### `runOptions` - -``` purescript -runOptions :: Options -> Options_ -``` - - diff --git a/docs/PursLoader/Path.md b/docs/PursLoader/Path.md deleted file mode 100644 index cc00436..0000000 --- a/docs/PursLoader/Path.md +++ /dev/null @@ -1,27 +0,0 @@ -## Module PursLoader.Path - -#### `relative` - -``` purescript -relative :: String -> String -> String -``` - -#### `resolve` - -``` purescript -resolve :: String -> String -``` - -#### `dirname` - -``` purescript -dirname :: String -> String -``` - -#### `joinPath` - -``` purescript -joinPath :: String -> String -> String -``` - - diff --git a/docs/PursLoader/Plugin.md b/docs/PursLoader/Plugin.md deleted file mode 100644 index 7a524da..0000000 --- a/docs/PursLoader/Plugin.md +++ /dev/null @@ -1,33 +0,0 @@ -## Module PursLoader.Plugin - -#### `Compile` - -``` purescript -type Compile eff = Nullable Error -> DependencyGraph -> Eff eff Unit -``` - -#### `Context` - -``` purescript -type Context eff = { compile :: Compile eff -> Eff eff Unit, options :: Options } -``` - -#### `Options` - -``` purescript -type Options = { bundle :: Boolean, output :: String, bundleOutput :: String } -``` - -#### `dependenciesOf` - -``` purescript -dependenciesOf :: DependencyGraph -> String -> Either Error (Array String) -``` - -#### `DependencyGraph` - -``` purescript -data DependencyGraph :: * -``` - - -- cgit v1.2.3