From d78112147d02e263a5b000cb0b3b9ff84aa5c89a Mon Sep 17 00:00:00 2001 From: eric thul Date: Fri, 25 Dec 2015 19:24:02 -0500 Subject: Updating bundle output option name --- src/PursLoader/Options.purs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/PursLoader/Options.purs') diff --git a/src/PursLoader/Options.purs b/src/PursLoader/Options.purs index 132096c..706ddd2 100644 --- a/src/PursLoader/Options.purs +++ b/src/PursLoader/Options.purs @@ -11,20 +11,20 @@ import Data.Maybe (maybe) import PursLoader.Path (joinPath) -newtype Options = Options { pscBundle :: String } +newtype Options = Options { bundleOutput :: String } -type Options_ = { pscBundle :: String } +type Options_ = { bundleOutput :: String } runOptions :: Options -> Options_ runOptions (Options options) = options instance isForeignOptions :: IsForeign Options where read obj = - Options <$> ({ pscBundle: _ } - <$> (maybe pscBundleDefault id <<< runNullOrUndefined <$> readProp pscBundle obj)) + Options <$> ({ bundleOutput: _ } + <$> (maybe bundleOutputDefault id <<< runNullOrUndefined <$> readProp bundleOutput obj)) where - pscBundle :: String - pscBundle = "pscBundle" + bundleOutput :: String + bundleOutput = "bundleOutput" - pscBundleDefault :: String - pscBundleDefault = joinPath "output" "bundle.js" + bundleOutputDefault :: String + bundleOutputDefault = joinPath "output" "bundle.js" -- cgit v1.2.3