fam 1.0.6 copy "fam: ^1.0.6" to clipboard
fam: ^1.0.6 copied to clipboard

Fam is a scripting service for flutter project asset management.

icon

Language: 🇺🇸 English | 🇨🇳 Chinese

  • Special Note
    The upgrade method of the Fam version is as follows:

    1. Users whose Fam version is less than 1.0.5 use flutter pub global activate fam to update.
    2. Users whose Fam version is greater than or equal to 1.0.5 can use fam --update or fam --update x.x.x to update.
  • Fam Introduction

    Fam is a scripting service designed for flutter project asset management.The service has the characteristics of complete functions, convenient operation, support for multiple platforms, beautiful interface, and strong customization.

  • Fam Configuration

    Fam is hosted on pub.dev, you can run the following command to configure it, the command is as follows:

    flutter pub global activate fam
    

    If you have never configured the .pub-cache path, the configuration prompt will be output after the above command is executed, as follows:

    macOS users:

    pub-catch
    Follow the above prompts to configure.

    window users:

    fam-window
    Follow the above prompts to configure.

  • Fam Command

    1. fam or fam --help or fam -h This command provides a quick look at the level one commands and introductions Fam has to offer.The command output is as follows: fam - help

    2. fam init
      Fam script service initialization configuration for project Asset file management.Running this command in a terminal will let you enter the asset management filename and class name, like this:
      fam-init Note:

      1. The name of the file is composed of lowercase letters, for example: fam; the fam.dart file will be generated later.
      2. The class name of the file is composed of letters, and the first letter must be capitalized, such as Fam ; the class name will be generated later abstract class Fam {}.
    3. fam run Execute the service of project asset management Fam, after execution, you can use the class name to quickly access the asset file,The output of this command is as follows:
      fam-run

    4. fam filter size
      Filter whether there are files in the project asset file that exceed the specified size, the default size is 200KB. If there is, it will be output in the form of clicking:
      fam-filter-size You can also customize the unit of the search size, for example:

      fam filter size -b 200  // 200 b 
      fam filter size -k 200  // 200 kb 
      fam filter size -m 200  // 200 mb 
      fam filter size -g 200  // 200 gb 
      
    5. fam filter unused Filter project asset files for files that are not used in the project. If there is, click the form to output, and do not delete unused files. As follows:
      fam-filter-unused If you want to delete directly after filtering, you can use fam filter unused delete.

    6. fam fix Fix problems with projects that have been managed by Fam. For example: fam.dart file is deleted by mistake; .fam file is deleted.

    7. fam rename Rename the project asset management file or rename the asset management class. There are two commands fam rename file xx and fam rename class xx.

    8. fam delete Delete the project's resource files. There are two commands fam delete file xx and fam delete mfile xx. delete file is to delete a single resource file; delete mfile is to delete multiple resource files.

    Note: The following commands can only be used if the Fam version is greater than or equal to 1.0.5

    1. fam --version
      Get the currently installed Fam version.
    2. fam --releases
      Get all installable versions of Fam.
    3. fam --update&fam --update x.x.x
      Upgrade to the latest version of Fam, you can also specify a version upgrade.
  • Fam Advantage Compared with other plugins, Fam has the following advantages.

    1. Fam is managed by pub.dev.
    2. Fam supports multiple platforms.
    3. Fam does not distinguish between project development tools, as long as there is a terminal.
    4. Fam provides some common resource management functions.
    5. Fam's asset reference has a short file name and can be fully prompted.
    6. Fam clearly classifies project assets.
10
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Fam is a scripting service for flutter project asset management.

Homepage

License

unknown (LICENSE)

Dependencies

args, dio, io, path

More

Packages that depend on fam