fs-extra#rm TypeScript Examples

The following examples show how to use fs-extra#rm. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: dev.ts    From gdmod with MIT License 6 votes vote down vote up
async execute() {
    console.log(chalk`{bold {cyan Launching production build}}`);
    const spinner: ora.Ora = ora(chalk.blueBright`Clean "dist"`).start();
    await emptyDir(`./dist`);
    spinner.succeed().start(chalk.magenta`Building bundle`);
    await buildBundle(`./dist/bundle.js`);
    spinner.succeed().start(chalk.magenta`Building mod file`);
    await buildMod();
    spinner.succeed().start(chalk.blueBright`Clean up temporary files`);
    await rm(`./dist/bundle.js`);
    spinner.succeed();
    console.info(
      chalk`{green {bold ✅ Success! You can now release the file {grey "{italic ./dist/mod.zip}"} and load it via a GDMod loader.}}`
    );
  }