Return the last portion of a path. Similar to the Unix basename command. +
Return the last portion of a path. Similar to the Unix basename command. Often used to extract the file name from a fully qualified path.
the path to evaluate.
Optional
suffix: stringoptionally, an extension to remove from the result.
-Represents a function that processes file patterns.
+Represents a function that processes file patterns.
An array of file patterns to be processed. Each pattern can include wildcards (*) to match multiple files.
Optional
Option: { An optional object that can contain two properties.
Optional
ESBuild?: stringA string representing the ESBuild option.
Optional
Exclude?: string[]Optional
TypeA string representing the TypeScript option.
-Optional
Watch?: booleanOptional
Watch?: booleanReturn the extension of the path, from the last '.' to end of string in the last portion of the path. +
Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
the path to evaluate.
-Solve the relative path from {from} to {to} based on the current working directory. +
Solve the relative path from {from} to {to} based on the current working directory. At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
-The 'Exec' function is an asynchronous function that executes a command and logs the +
The 'Exec' function is an asynchronous function that executes a command and logs the stdout and stderr of the child process.
The 'Command' parameter is a string that represents the command you want to execute. It can be any valid command that can be executed in a @@ -7,4 +7,4 @@ of the child process should be logged. If set to 'false', no logging will occur. If set to a function, the function will be called with the stdout and stderr data as a parameter for custom logging. If not provided, stdout and stderr will be logged to the console by default.
-The function 'JSON' is a TypeScript function that reads a JSON file and returns its +
The function 'JSON' is a TypeScript function that reads a JSON file and returns its parsed content.
The File
parameter is a string that represents the name or
path of the JSON file that you want to parse.
From
is provided,
it will be used as the base directory path. If From
is not provided, the current
directory will be used as the base directory path.
-Build
is a powerful tool that compiles all your TypeScript
files into
+
Build
is a powerful tool that compiles all your TypeScript
files into
JavaScript
, leveraging the speed of ESBuild
and the type-checking
capabilities of the TypeScript
compiler.
Contributions are welcome! Please see CONTRIBUTING.md
for
guidelines and feel free to submit a Pull Request.
See CHANGELOG.md
for a history of changes to this component.
The 'Exec' function is an asynchronous function that executes a command and logs the +
The 'Exec' function is an asynchronous function that executes a command and logs the stdout and stderr of the child process.
The 'Command' parameter is a string that represents the command you want to execute. It can be any valid command that can be executed in a @@ -7,4 +7,4 @@ of the child process should be logged. If set to 'false', no logging will occur. If set to a function, the function will be called with the stdout and stderr data as a parameter for custom logging. If not provided, stdout and stderr will be logged to the console by default.
-Represents a function that processes file patterns.
+Represents a function that processes file patterns.
An array of file patterns to be processed. Each pattern can include wildcards (*) to match multiple files.
Optional
Option: { An optional object that can contain two properties.
Optional
ESBuild?: stringA string representing the ESBuild option.
Optional
Exclude?: string[]Optional
TypeA string representing the TypeScript option.
-Optional
Watch?: booleanOptional
Watch?: booleanThe function 'JSON' is a TypeScript function that reads a JSON file and returns its +
The function 'JSON' is a TypeScript function that reads a JSON file and returns its parsed content.
The File
parameter is a string that represents the name or
path of the JSON file that you want to parse.
From
is provided,
it will be used as the base directory path. If From
is not provided, the current
directory will be used as the base directory path.
-Const
Const
Const
Const
The 'Exec' function is an asynchronous function that executes a command and logs the +
- Preparing search index...
- The search index is not available
@playform/build - v0.1.9Function Exec
The 'Exec' function is an asynchronous function that executes a command and logs the stdout and stderr of the child process.
Parameters
The 'Command' parameter is a string that represents the command you want to execute. It can be any valid command that can be executed in a @@ -7,4 +7,4 @@ of the child process should be logged. If set to 'false', no logging will occur. If set to a function, the function will be called with the stdout and stderr data as a parameter for custom logging. If not provided, stdout and stderr will be logged to the console by default.
-Returns Promise<void>
Settings