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.
Copy file name to clipboardExpand all lines: README.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,10 @@ var gulp = require('gulp');
21
21
22
22
var purescript =require('gulp-purescript');
23
23
24
-
gulp.task('purescript', function(){
25
-
returngulp.src('src/**/*.purs').
26
-
pipe(purescript.psc({noPrelude:true})).
27
-
pipe(gulp.dest('build'));
24
+
gulp.task('psc', function(){
25
+
returnpurescript.psc({
26
+
src:'src/*.purs'
27
+
});
28
28
});
29
29
```
30
30
@@ -38,11 +38,11 @@ Invokes the `psc` command. The following options are supported.
38
38
39
39
###### `src` (String or String Array)
40
40
41
-
The location of the source files to compile. Glob syntax is supported.
41
+
Files to compile. Glob syntax is supported.
42
42
43
43
###### `ffi` (String or String Array)
44
44
45
-
Sets one or more `--ffi=<string>` that specifies files for code that is included with a `foreign import` in the PureScript source.
45
+
Files for code that is included with a `foreign import` in the PureScript source. Glob syntax is supported.
46
46
47
47
###### `noTco` (Boolean)
48
48
@@ -78,7 +78,7 @@ Invokes the `psc-bundle` command. The following options are supported.
78
78
79
79
###### `src` (String or String Array)
80
80
81
-
The location of the `psc`-produced javascript source files to bundle. Glob syntax is supported.
81
+
The `psc`-produced JavaScript source files to bundle. Glob syntax is supported.
82
82
83
83
###### `output` (String)
84
84
@@ -98,7 +98,11 @@ Sets `--browser-namespace=<string>` that specifies the namespace that PureScript
98
98
99
99
### `purescript.pscDocs(options)`
100
100
101
-
Invokes the `pscDocs` command. The following options are supported.
101
+
Invokes the `psc-docs` command. The following options are supported.
102
+
103
+
###### `src` (String or String Array)
104
+
105
+
Files to be used for generating the documentation. Glob syntax is supported.
102
106
103
107
###### `format` (markdown | etags | ctags)
104
108
@@ -110,11 +114,19 @@ Sets `--docgen=...` that can be used to filter the modules documentation is gene
110
114
111
115
- If a string value is provided, the documentation for that single module will be generated.
112
116
- If a list of strings is provided, the documentation for all listed modules will be generated.
113
-
- 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.
114
122
115
-
### `purescript.dotPsci()`
123
+
###### `src` (String or String Array)
124
+
125
+
Files added to the `.psci` file with the `:m` command. Glob syntax is supported.
126
+
127
+
###### `ffi` (String or String Array)
116
128
117
-
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