Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit fa09679

Browse files
committed
Update documentation
1 parent bbb61ac commit fa09679

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,36 @@ This task runs the `psc-make` executable, which will compile modules to their ow
104104

105105
In your project's Gruntfile, add a section named `pscMake` to the data object passed into `grunt.initConfig()`.
106106

107+
Basic usage, generating the files in `output/`:
108+
107109
```js
108110
grunt.initConfig({
109111
pscMake: ["path/to/source/**/*.purs"]
110112
});
111113
```
112114

113-
Or with options:
115+
With options:
114116

115117
```js
116118
grunt.initConfig({
117-
pscMake:
119+
pscMake: {
118120
options: {
119121
// Task-specific options go here.
120122
},
121123
src: ["path/to/source/**/*.purs"]
122-
dest: "build"
124+
},
125+
});
126+
```
127+
128+
Or to specify an output folder a named target must be used (`lib` in this case):
129+
130+
```js
131+
grunt.initConfig({
132+
pscMake: {
133+
lib: {
134+
src: ["path/to/source/**/*.purs"],
135+
dest: "build"
136+
}
123137
},
124138
});
125139
```

0 commit comments

Comments
 (0)