Skip to content

Commit

Permalink
chore: release v1.0.1
Browse files Browse the repository at this point in the history
* (bluefox) Added `copyFolderRecursiveSync`
  • Loading branch information
GermanBluefox committed Sep 8, 2024
1 parent 21349af commit 64530f6
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ And use in `package.json` `scripts`:
### **WORK IN PROGRESS**
-->
## Changelog
### **WORK IN PROGRESS**
### 1.0.1 (2024-09-08)
* (bluefox) Added `copyFolderRecursiveSync`

### 1.0.0 (2024-09-08)
Expand Down
28 changes: 25 additions & 3 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
/**
* Delete all folders recursive (sync function)
*/
export declare function deleteFoldersRecursive(
/** Path to the folder */
path: string,
/** List of exceptions */
exceptions?: string[]): void;
/**
* Copies folder recursive (sync function)
*/
export declare function copyFolderRecursiveSync(
/** Source folder */
src: string,
/** Destination folder */
dest: string,
/** List of files to exclude */
exclude?: string[]): void;
export declare function readDirRecursive(path: string, _list?: string[]): string[];
export declare function collectFiles(patterns: string[] | string): {
name: string;
Expand All @@ -15,13 +28,19 @@ export declare function copyFiles(patterns: string[] | string, dest: string, opt
text: string;
}[];
}): void;
export declare function npmInstall(src: string, options?: {
export declare function npmInstall(
/** Path to the folder where npm must be executed */
src: string,
/** Options */
options?: {
/** Set to false if you want to execute without `--force` flag */
force?: boolean;
}): Promise<void>;
export declare function buildReact(
/** React directory to build */
src: string, options?: {
src: string,
/** Options */
options?: {
/** use craco instead of react-scripts */
craco?: boolean;
/** Root directory to copy the version from */
Expand All @@ -31,9 +50,12 @@ src: string, options?: {
/** Max memory size for exec */
ramSize?: number;
}): Promise<void>;
/** @deprecated use buildReact with the craco flag */
export declare function buildCraco(
/** React directory to build */
src: string, options?: {
src: string,
/** Options */
options?: {
/** Root directory to copy the version from */
rootDir?: string;
/** Use exec and not fork */
Expand Down
42 changes: 38 additions & 4 deletions build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64530f6

Please sign in to comment.