git.iko.soy/rowtype-yoga/purescript-native
on cd4c708 help sign in
18 lines 776 B history raw
1# psc-bundle
3A dead code elimination tool for PureScript-style CommonJS modules. This can be used as an alternative to Browserify.
5## Usage
7 psc-bundle FILE (-m|--module ARG) [--main ARG] [--namespace ARG]
8
9Options:
11- The input .js file(s)
12- Entry point module name(s) are specified with `-m` or `--module`. All code which is not a transitive dependency of an entry point module will be removed.
13- The main module is (optionally) specified using `--main`. If specified, this will generate code to run the main method in the specified module.
14- The browser namespace defaults to `PS`, and can be overridden with `--namespace`.
16For example, to bundle the modules in the `output` directory, with main module `Main`:
18 psc-bundle output/**/*.js -m Main --main Main