From a72c8af19a72186069465c139b72df9c353fd3d1 Mon Sep 17 00:00:00 2001 From: eric thul Date: Thu, 14 May 2015 22:13:59 -0400 Subject: Additional loader options Adds the `psc-make` options `comments` and `no-prefix`. Also, an internal option `src` has been added that is used to specify the source paths of `PureScript` files that will be globbed for compilation. By default the `bower_components` path is globbed, but the loader requires that the source paths be provided for the user's code. Resolves #12 --- README.md | 47 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ee96448..d243381 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,41 @@ npm install purs-loader --save-dev ## Options - - **no-prelude**: Boolean value that toggles `--no-prelude` - - Do not include the Prelude in the generated Javascript. - - **no-opts**: Boolean value that toggles `--no-opts` - - Disable all optimizations. - - **no-magic-do**: Boolean value that toggles `--no-magic-do` - - Turn off optimizations which inline calls to >>= for the Eff monad. - - **no-tco**: Boolean value that toggles `--no-tco` - - Turn off tail-call elimination. - - **verbose-errors**: Boolean value that toggles `--verbose-errors` - - Generate verbose error messages. - - **output**: String value that sets `--output=` - - Write the generated Javascript to the specified file. +###### `noPrelude` (Boolean) + +Toggles `--no-prelude` that omits the Prelude. + +###### `noTco` (Boolean) + +Toggles `--no-tco` that disables tail-call optimizations. + +###### `noMagicDo` (Boolean) + +Toggles `--no-magic-do` that disables optimizations overloading the do keyword generating efficient code for the `Eff` monad. + +###### `noOpts` (Boolean) + +Toggles `--no-opts` that skips the optimization phase. + +###### `verboseErrors` (Boolean) + +Toggles `--verbose-errors` that displays verbose error messages. + +###### `comments` (Boolean) + +Toggles `--comments` that includes comments in generated code. + +###### `output` (String) + +Sets `--output=` the specifies the output directory, `output` by default. + +###### `noPrefix` (Boolean) + +Toggles `--no-prefix` that does not include the comment header. + +###### `src` (String Array) + +Specifies PureScript source paths to be globbed for `.purs` files. By default, `bower_components` is search. Additional paths may be specified using this option. This option is specified as `src[]=path`. ## Example -- cgit v1.2.3