InternalFunction InternalmergeAn alias for this package's mergeArgs().
Inputs can be undefined, and if so, the default is returned.
Default object type.
Default values (if not specified in inputs).
Optionalinputs: undefinedOverriding values (changes to make).
Optionalrecursive: booleanOptional. Whether to merge the object recursively. Default false.
OptionalmergeArrays: booleanResulting object with all the defaults and inputs keys with
either default values or input values, as appropriate.
Passing recursive as false means that the input type must be a Partial
(not RecursivePartial).
Optionalrecursive: falseOptionalmergeArrays: booleanPassing recursive as true means that the input type may actually be a
RecursivePartial.
OptionalmergeArrays: booleanUniversal overload.
Optionalinputs: IOptionalrecursive: booleanOptionalmergeArrays: booleanReadonly InternalargsA completed args object.
InternalDefault args for this stage.
InternalBuild a complete args object.
Optionalargs: Partial<Args> | RecursivePartial<Args>Readonly InternalconsoleUsed to output messages within the class.
Readonly InternalncThe instance of NodeConsole used within this class.
InternalOverrides the default function to return a string representation of this object.
InternalCopies files from one directory to another, maintaing their relative directory structure.
Glob patterns for paths to copy.
Depth level for output to the console.
Path to directory where matched files will be copied.
OptionalsourceDir: string | nullRelative source directory. If any, the globs are resolved as relative to that directory and the path/dir structure copied to the outputDir is relative to this sourceDir.
Optionalargs: Partial<FileSystemType.Copy.Args>Overrides for default options.
Array of paths to the newly-copied files/etc.
ExperimentalCopies a file to another path.
Location to write file.
Location to copy the source path to.
Optionalargs: Partial<CopyFileArgs>Optional configuration.
Path to file if written, or false on failure.
InternalDeletes given globs (via node.NodeFiles.delete).
Glob patterns for paths to delete.
Depth level for output to the console.
OptionaldryRun: booleanIf true, files that would be deleted are printed to the console and not deleted.
Optionalargs: Partial<FileSystemType.Glob.Args>Optional glob configuration.
ExperimentalRead the paths within a directory.
Directory to read.
Optionalargs: Partial<ReadDirArgs>Optional configuration.
Paths within the given directory.
InternalReads a file.
File to read.
Optionalargs: Partial<ReadFileArgs>Optional configuration.
Contents of the file.
InternalWrites a file.
Location to write file.
Contents to write.
Optionalargs: Partial<WriteFileArgs>Optional configuration.
Path to file if written, or false on failure.
InternalChanges just the file name of a path
Full path with updated basename.
InternalGets the valid paths matched against the input globs.
Glob patterns to match.
Optionalargs: Partial<FileSystemType.Glob.Args>Optional glob configuration.
Matched paths.
InternalReturns relative paths, based on the root defined the the opts.
Path to make relative.
InternalResolves relative to the root defined the the opts.
Paths to resolve.
InternalReturns a unique version of the inputPath (i.e., where no file exists) by appending a number.
Path to make unique.
Absolute, unique version of the given inputPath.
NodeFiles.changeBaseName Used to update the basename to test for uniqueness.
InternalRuns minify on the given file globs.
Glob patterns for paths to minify.
File format for the input globs.
Depth level for output to the console.
Optionalargs: Partial<FileSystemType.Minify.Args>Overrides for default options.
Optionalrenamer: (path: string) => stringFunction used to define the new basename for the minified files, if any.
Paths to the minified files (both source and output).
InternalRuns prettier on the given file globs.
Glob patterns for paths to run through prettier.
File format for the input globs.
Optionalargs: Partial<FileSystemType.Prettier.Args>Overrides for default options.
Paths to the formatted files.
InternalReplaces the given text or regex in the given file globs.
Glob patterns for paths to replace in.
Replacements to make. The first tuple item is a string or RegExp to find and the second item is a string to replace.
Depth level for output to the console.
Optionalargs: Partial<FileSystemType.Glob.Args>Optional glob configuration.
Paths to the replaced files.
Shape of the file/path utility class.
Defined here so that the type can easily be used before the FileSystem class is defined.
Since
0.1.0-alpha