@mondaycom/apps-cli
Version:
A cli tool to manage apps (and monday-code projects) in monday.com
19 lines (18 loc) • 1.07 kB
TypeScript
/// <reference types="node" />
export declare const readFileData: (filePath: string) => Buffer;
export declare const readZipFileAsBuffer: (filePath: string) => Buffer;
export declare const compressBuildToZip: (dirPath: string) => Promise<string>;
export declare const verifyClientDirectory: (directoryPath: string) => void;
export declare const checkIfFileExists: (filePath: string) => boolean;
export declare const getFileExtension: (filePath: string) => string;
export declare const createTarGzArchive: (directoryPath: string, fileName?: string) => Promise<string>;
export declare const createGitignoreAndAppendConfigFileIfNeeded: (directoryPath: string, fileName?: string) => void;
/**
* Detect if the project is yarn project with a build step
* if so, we will need to abort the build process as
* gcloud buildpacks does not support it yet
* @param directoryPath the path where the project is located
* @throws Error if the project is yarn project with a build step
* @returns void
**/
export declare const validateIfCanBuild: (directoryPath: string) => void;