UNPKG

add-manifest

Version:

Add Manifest backend

54 lines (53 loc) 1.86 kB
import { Command } from '@oclif/core'; export declare class MyCommand extends Command { /** * The run method is called when the command is run. * * Steps: * 1. Create a folder with the name `manifest`. * 2. Create a file inside the folder with the name `manifest.yml`. * 3. Update the `package.json` file with the new packages and scripts. * 4. Update the .vscode/extensions.json file with the recommended extensions. * 5. Update the .vscode/settings.json file with the recommended settings. * 6. Update the .gitignore file with the recommended settings. * 7. Update the .env file with the environment variables. * 8. If no README.md file exists, create one. * 9. Install the new packages. * 10. Serve the new app. * 11. Wait for the server to start. * 12. Seed the database. * 13. Open the browser. */ run(): Promise<void>; /** * Check if the server is ready. * * @returns {Promise<boolean>} - Returns a promise that resolves to a boolean. * **/ isServerReady(): Promise<boolean>; /** * Wait for the server to be ready. * * @returns {Promise<void>} - Returns a promise that resolves to void when the server is ready. * **/ waitForServerToBeReady(): Promise<void>; /** * Transform a JSON with comments to a JSON without comments. * * @param {string} jsonWithComments - The JSON with comments. * * @returns {string} - The JSON without comments. * **/ removeComments(jsonString: string): string; /** * Kill a process without logging an error if it fails. * * @param {number} pid - The process ID. * @returns {Promise<void>} - A promise that resolves when the process is killed. * */ silentKill(pid: number): Promise<void>; }