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.
75
+
### `purescript.pscBundle(options)`
106
76
107
-
###### `noMagicDo` (Boolean)
77
+
Invokes the `psc-bundle` command. The following options are supported.
108
78
109
-
Toggles `--no-magic-do` that disables optimizations overloading the do keyword generating efficient code for the `Eff` monad.
79
+
###### `src` (String or String Array)
110
80
111
-
###### `noOpts` (Boolean)
81
+
The `psc`-produced JavaScript source files to bundle. Glob syntax is supported.
112
82
113
-
Toggles `--no-opts` that skips the optimization phase.
114
-
115
-
###### `verboseErrors` (Boolean)
83
+
###### `output` (String)
116
84
117
-
Toggles`--verbose-errors` that displays verbose error messages.
85
+
Sets`--output=<string>` that specifies the output filename for the bundle.
118
86
119
-
###### `comments` (Boolean)
87
+
###### `module` (String or String Array)
120
88
121
-
Toggles `--comments` that includes comments in generated code.
89
+
The name of the module or modules to use as entry points for dead code elimination.
122
90
123
-
###### `output` (String)
91
+
###### `main` (Boolean or String)
124
92
125
-
Sets`--output=<string>` the specifies the output directory, `output` by default.
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.
126
94
127
-
###### `noPrefix` (Boolean)
95
+
###### `browserNamespace` (String)
128
96
129
-
Toggles`--no-prefix` that does not include the comment header.
97
+
Sets`--browser-namespace=<string>` that specifies the namespace that PureScript modules will be exported to when running in the browser.
130
98
131
-
###### `ffi` (String Array)
99
+
###`purescript.pscDocs(options)`
132
100
133
-
Sets one or more `--ffi=<string>` that specifies files for code that is included with a `foreign import` in the PureScript source.
101
+
Invokes the `psc-docs` command. The following options are supported.
134
102
135
-
###`purescript.pscDocs(options)`
103
+
###### `src` (String or String Array)
136
104
137
-
Invokes the `pscDocs` command. The following options are supported.
105
+
Files to be used for generating the documentation. Glob syntax is supported.
138
106
139
107
###### `format` (markdown | etags | ctags)
140
108
@@ -146,11 +114,19 @@ Sets `--docgen=...` that can be used to filter the modules documentation is gene
146
114
147
115
- If a string value is provided, the documentation for that single module will be generated.
148
116
- If a list of strings is provided, the documentation for all listed modules will be generated.
149
-
- If an object with module name/filename pairs (for example, `{ Module: "docs/Module.md" }`) is provided, files will be written for each of the modules. In this mode, the task requires no `dest` as no value is returned.
117
+
- If an object with module name/filename pairs (for example, `{ Module: 'docs/Module.md' }`) is provided, files will be written for each of the modules. In this mode, the task requires no `dest` as no value is returned.
118
+
119
+
### `purescript.psci(options)`
120
+
121
+
Generates a `.psci` file.
122
+
123
+
###### `src` (String or String Array)
124
+
125
+
Files added to the `.psci` file with the `:m` command. Glob syntax is supported.
150
126
151
-
###`purescript.dotPsci()`
127
+
###### `ffi` (String or String Array)
152
128
153
-
Generates a `.psci` file in the current directory. Each source file is added with the `:m` command.
129
+
Files added to the `.psci` file with the `:f` command. Glob syntax is supported.
0 commit comments