generate function

void generate(
  1. Arguments arguments, {
  2. bool isMonitoring = false,
})

Implementation

void generate(
  Arguments arguments, {
  bool isMonitoring = false,
}) {
  generateVectorResources(
    input: join(arguments.assetsLocation, 'vectors'),
    output: arguments.outputLocation,
    package: arguments.package,
  );
  generateImageResources(
    input: join(arguments.assetsLocation, 'images'),
    output: arguments.outputLocation,
    package: arguments.package,
  );
  generateFontResources(
    input: join(arguments.assetsLocation, 'fonts'),
    output: arguments.outputLocation,
    package: arguments.package,
  );
  generateScriptResources(
    input: join(arguments.assetsLocation, 'scripts'),
    output: arguments.outputLocation,
    package: arguments.package,
  );
  generateColorResources(
    input: join(arguments.assetsLocation, 'colors'),
    output: arguments.outputLocation,
  );
  generateStringResources(
    input: join(arguments.assetsLocation, 'translations'),
    output: arguments.outputLocation,
  );
  generateConfigResources(
    input: join(arguments.assetsLocation, 'configs'),
    output: arguments.outputLocation,
  );
  generateValueResources(
    input: join(arguments.assetsLocation, 'values'),
    output: arguments.outputLocation,
  );
  generateRawResources(
    input: join(arguments.assetsLocation, 'raws'),
    output: arguments.outputLocation,
    package: arguments.package,
  );
  generateRootResources(
    output: arguments.outputLocation,
  );
  if (!isMonitoring) {
    declarePubspecAssets(
      arguments.assetsLocation,
      hasFlavors: false,
    );
  }
}