File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,22 @@ ghpages.publish('dist', {
227
227
}, callback);
228
228
```
229
229
230
+ #### <a id =" optionsuser " >options.remove</a >
231
+ * type: ` string `
232
+ * default: ` '.' `
233
+
234
+ Removes files that match the given pattern (Ignored if used together with
235
+ ` --add ` ). By default, ` gh-pages ` removes everything inside the target branch
236
+ auto-generated directory before copying the new files from ` dir ` .
237
+
238
+ Example use of the ` remove ` option:
239
+
240
+ ``` js
241
+ ghpages .publish (' dist' , {
242
+ remove: " *.json"
243
+ }, callback);
244
+ ```
245
+
230
246
231
247
#### <a id =" optionspush " >options.push</a >
232
248
* type: ` boolean `
@@ -325,7 +341,7 @@ Note that this plugin requires Git 1.9 or higher (because it uses the `--exit-co
325
341
```
326
342
327
343
When processing ` gh-pages ` module generate file in` .cache/ ` and if stuck some reason like wrong password
328
- it will not automatically cleanup
344
+ it will not automatically cleanup
329
345
330
346
Run ` ~node_modules/gh-pages/bin/gh-pages-clean `
331
347
or remove ` ~node_modules/gh-pages/.cache `
You can’t perform that action at this time.
0 commit comments