You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
Toggles `--comments` that includes comments in generated code.
66
66
67
-
###### `browserNamespace` (String)
68
-
69
-
Sets `--browser-namespace=<string>` that specifies the namespace that PureScript modules will be exported to when running in the browser.
70
-
71
-
###### `externs` (String)
72
-
73
-
Sets `--externs=<string>` that specifies the externs file.
74
-
75
-
###### `module` (String Array)
76
-
77
-
Sets one or more `--module=<string>` that enables dead code elimination, removing all code without a transitive dependency of one of the specified modules.
78
-
79
-
###### `codegen` (String Array)
80
-
81
-
Sets one or more `--codegen=<string>` that generates code and externs for the specified modules.
82
-
83
67
###### `output` (String)
84
68
85
-
Sets the path value of the [File](https://github.com/wearefractal/vinyl) passed through the Gulp stream. Note that this will not set `--output=<string>`.
69
+
Sets `--output=<string>`the specifies the output directory, `output` by default.
86
70
87
71
###### `noPrefix` (Boolean)
88
72
89
73
Toggles `--no-prefix` that does not include the comment header.
90
74
91
-
###### `ffi` (String Array)
92
-
93
-
Sets one or more `--ffi=<string>` that specifies the files for code that is included with a `foreign import` in the PureScript source.
94
-
95
-
### `purescript.pscMake(options)`
96
-
97
-
Invokes the `psc-make` command. The following options are supported.
98
-
99
-
###### `noPrelude` (Boolean)
100
-
101
-
Toggles `--no-prelude` that omits the Prelude.
102
-
103
-
###### `noTco` (Boolean)
104
-
105
-
Toggles `--no-tco` that disables tail-call optimizations.
106
-
107
-
###### `noMagicDo` (Boolean)
108
-
109
-
Toggles `--no-magic-do` that disables optimizations overloading the do keyword generating efficient code for the `Eff` monad.
110
-
111
-
###### `noOpts` (Boolean)
75
+
### `purescript.pscBundle(options)`
112
76
113
-
Toggles `--no-opts` that skips the optimization phase.
77
+
Invokes the `psc-bundle` command. The following options are supported.
114
78
115
-
###### `verboseErrors` (Boolean)
79
+
###### `src` (String or String Array)
116
80
117
-
Toggles `--verbose-errors` that displays verbose error messages.
81
+
The location of the `psc`-produced javascript source files to bundle. Glob syntax is supported.
118
82
119
-
###### `comments` (Boolean)
83
+
###### `output` (String)
120
84
121
-
Toggles`--comments` that includes comments in generated code.
85
+
Sets`--output=<string>` that specifies the output filename for the bundle.
122
86
123
-
###### `output` (String)
87
+
###### `module` (String or String Array)
124
88
125
-
Sets `--output=<string>`the specifies the output directory, `output` by default.
89
+
The name of the module or modules to use as entry points for dead code elimination.
126
90
127
-
###### `noPrefix` (Boolean)
91
+
###### `main` (Boolean or String)
128
92
129
-
Toggles `--no-prefix` that does not include the comment header.
93
+
Toggles `--main` or sets `--main=<string>` that generates code to run the `main` function in the specified module or the `Main` module by default.
130
94
131
-
###### `ffi` (String Array)
95
+
###### `browserNamespace` (String)
132
96
133
-
Sets one or more `--ffi=<string>` that specifies files for code that is included with a `foreign import`in the PureScript source.
97
+
Sets `--browser-namespace=<string>` that specifies the namespace that PureScript modules will be exported to when running in the browser.
0 commit comments