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
Copy file name to clipboardExpand all lines: docs/reference/components/plugins.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ As plugins are meant to be used by applications in order to implement some featu
26
26
27
27
As a brief overview, the general configuration options available for plugins are:
28
28
29
-
-`files` - `string` | `string[]` | [`FilesOptionsObject`](#interface-filesoptionsobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
29
+
-`files` - `string` | `string[]` | [`FilesOptionObject`](#interface-filesoptionobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
30
30
-`urlPath` - `string` - _optional_ - A base URL path to prepend to the resolved `files` entries handled by the plugin's default `EntryHandler` instance.
31
31
-`timeout` - `number` - _optional_ - The timeout in milliseconds for the plugin's operations. If not specified, the system default is **30 seconds**. Plugins may override the system default themselves, but this configuration option is the highest priority and takes precedence.
32
32
@@ -309,9 +309,9 @@ Returns: `string` - The directory of the application. This is the root directory
-`source` - `string` | `string[]` - _required_ - The glob pattern string or array of strings.
317
317
-`ignore` - `string` | `string[]` - _optional_ - An array of glob patterns to exclude from matches. This is an alternative way to use negative patterns. Defaults to `[]`.
@@ -458,9 +458,9 @@ The `'add'` event is emitted when a file is created (or the watcher sees it for
458
458
459
459
### Event: `'addDir'`
460
460
461
-
- `entry`- [`AddDirEvent`](#interface-adddirevent) - The directory entry that was added.
461
+
- `entry`- [`AddDirectoryEvent`](#interface-adddirectoryevent) - The directory entry that was added.
462
462
463
-
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirEvent` object that contains the URL path and absolute path of the directory.
463
+
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirectoryEvent` object that contains the URL path and absolute path of the directory.
464
464
465
465
### Event: `'change'`
466
466
@@ -488,9 +488,9 @@ The `'unlink'` event is emitted when a file is deleted. The event handler receiv
488
488
489
489
### Event: `'unlinkDir'`
490
490
491
-
- `entry`- [`UnlinkDirEvent`](#interface-unlinkdirevent) - The directory entry that was deleted.
491
+
- `entry`- [`UnlinkDirectoryEvent`](#interface-unlinkdirectoryevent) - The directory entry that was deleted.
492
492
493
-
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirEvent` object that contains the URL path and absolute path of the deleted directory.
493
+
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirectoryEvent` object that contains the URL path and absolute path of the deleted directory.
494
494
495
495
### `entryHandler.name`
496
496
@@ -584,7 +584,7 @@ Event object emitted when a file is deleted.
584
584
585
585
A union type representing the file entry events. These events are emitted when a file is created, modified, or deleted. The `FileEntry` interface provides the file contents and other metadata.
Copy file name to clipboardExpand all lines: versioned_docs/version-4.6/reference/components/plugins.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ As plugins are meant to be used by applications in order to implement some featu
26
26
27
27
As a brief overview, the general configuration options available for plugins are:
28
28
29
-
-`files` - `string` | `string[]` | [`FilesOptionsObject`](#interface-filesoptionsobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
29
+
-`files` - `string` | `string[]` | [`FilesOptionObject`](#interface-filesoptionobject) - _optional_ - A glob pattern string or array of strings that specifies the files and directories to be handled by the plugin's default `EntryHandler` instance.
30
30
-`urlPath` - `string` - _optional_ - A base URL path to prepend to the resolved `files` entries handled by the plugin's default `EntryHandler` instance.
31
31
-`timeout` - `number` - _optional_ - The timeout in milliseconds for the plugin's operations. If not specified, the system default is **30 seconds**. Plugins may override the system default themselves, but this configuration option is the highest priority and takes precedence.
32
32
@@ -125,7 +125,7 @@ export function handleApplication(scope) {
125
125
switch (entry.eventType) {
126
126
case 'add':
127
127
case 'change':
128
-
// Store // Update the file contents in memory for serving
128
+
// Store / Update the file contents in memory for serving
129
129
staticFiles.set(entry.urlPath, entry.contents);
130
130
break;
131
131
case 'unlink':
@@ -309,9 +309,9 @@ Returns: `string` - The directory of the application. This is the root directory
-`source` - `string` | `string[]` - _required_ - The glob pattern string or array of strings.
317
317
-`ignore` - `string` | `string[]` - _optional_ - An array of glob patterns to exclude from matches. This is an alternative way to use negative patterns. Defaults to `[]`.
@@ -458,9 +458,9 @@ The `'add'` event is emitted when a file is created (or the watcher sees it for
458
458
459
459
### Event: `'addDir'`
460
460
461
-
- `entry`- [`AddDirEvent`](#interface-adddirevent) - The directory entry that was added.
461
+
- `entry`- [`AddDirectoryEvent`](#interface-adddirectoryevent) - The directory entry that was added.
462
462
463
-
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirEvent` object that contains the URL path and absolute path of the directory.
463
+
The `'addDir'` event is emitted when a directory is created (or the watcher sees it for the first time). The event handler receives an `AddDirectoryEvent` object that contains the URL path and absolute path of the directory.
464
464
465
465
### Event: `'change'`
466
466
@@ -488,9 +488,9 @@ The `'unlink'` event is emitted when a file is deleted. The event handler receiv
488
488
489
489
### Event: `'unlinkDir'`
490
490
491
-
- `entry`- [`UnlinkDirEvent`](#interface-unlinkdirevent) - The directory entry that was deleted.
491
+
- `entry`- [`UnlinkDirectoryEvent`](#interface-unlinkdirectoryevent) - The directory entry that was deleted.
492
492
493
-
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirEvent` object that contains the URL path and absolute path of the deleted directory.
493
+
The `'unlinkDir'` event is emitted when a directory is deleted. The event handler receives an `UnlinkDirectoryEvent` object that contains the URL path and absolute path of the deleted directory.
494
494
495
495
### `entryHandler.name`
496
496
@@ -584,7 +584,7 @@ Event object emitted when a file is deleted.
584
584
585
585
A union type representing the file entry events. These events are emitted when a file is created, modified, or deleted. The `FileEntry` interface provides the file contents and other metadata.
0 commit comments