npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fca-cli

v1.0.8

Published

The **Flutter Clean Architecture CLI** (`fca-cli`) is a command-line tool that helps you quickly set up a **clean architecture** structure in Flutter projects. It provides organized modules and components, making your code more scalable, testable, and eas

Downloads

573

Readme

Flutter Clean Architecture CLI (fca-cli)

The Flutter Clean Architecture CLI (fca-cli) is a command-line tool that helps you quickly set up a clean architecture structure in Flutter projects. It provides organized modules and components, making your code more scalable, testable, and easier to maintain.

Installation

You can install fca-cli globally:

npm install -g fca-cli@latest

Or, you can run it using npx without installation:

npx fca-cli@latest [options] [command]

Usage

fca-cli [options] [command]

This CLI tool supports various commands to generate specific components within your Flutter project's clean architecture.

Options

  • -V, --version
    Output the version number of fca-cli.

  • -h, --help
    Display help for the command.

Deprecation Notice

⚠️ The `fca-cli add-usecase` command is deprecated.
Please use the new command `fca-cli add-use-case` instead.

Commands

| Command | Description | | ---------------------------------------------------------- | ------------------------------------------------------------------------------------- | | add-feature <featureName> [options] | Adds a new feature module to lib/features with a clean folder structure. | | add-data-source [options] <featureName> [dataSourceName] | Creates a data source (local or remote) within the specified feature. | | add-repository <featureName> <repositoryName> | Generates a repository template inside a feature for managing data sources. | | add-model <featureName> <modelName> | Creates a data model within the specified feature for handling API or data responses. | | add-entity <featureName> <entityName> | Defines an entity within the specified feature, representing core business objects. | | add-usecase <featureName> <usecaseName> [repositoryName] | Sets up a use case within the specified feature, focusing on specific business logic. | | add-page <featureName> [pageName] | Adds a page template within the specified feature for user interfaces. | | add-bloc <featureName> <blocName> | Generates a Bloc within the specified feature to handle state management. | | add-widget <featureName> <widgetName> | Adds a reusable widget within the specified feature for UI components. | | help [command] | Display help for a specific command. |

Example Usage

Here are some examples of how you can use fca-cli to generate various components:

  1. Add a Feature:

    fca-cli add-feature Authentication

    or using npx:

    npx fca-cli@latest add-feature Authentication
  2. Add a Repository:

    fca-cli add-repository Authentication Auth

    or using npx:

    npx fca-cli@latest add-repository Authentication Auth
  3. Add a Local Data Source:

    fca-cli add-data-source -local Authentication Auth

    or using npx:

    npx fca-cli@latest add-data-source -local Authentication Auth
  4. Add a Model:

    fca-cli add-model Authentication User

    or using npx:

    npx fca-cli@latest add-model Authentication User
  5. Add an Entity:

    fca-cli add-entity Authentication User

    or using npx:

    npx fca-cli@latest add-entity Authentication User
  6. Add a Use Case:

    fca-cli add-use-case Authentication Login

    or using npx:

    npx fca-cli@latest add-use-case Authentication Login
  7. Add a Page:

    fca-cli add-page Authentication Login
    
    or using `npx`:
    
    ```bash
    npx fca-cli@latest add-page Authentication Login
  8. Add a Bloc:

    fca-cli add-bloc Authentication Login

    or using npx:

    npx fca-cli@latest add-bloc Authentication Login
  9. Add a Widget:

    fca-cli add-widget Authentication LoginButton

    or using npx:

    npx fca-cli@latest add-widget Authentication LoginButton

Help

For help on a specific command, use:

fca-cli help <command>

Example:

fca-cli help add-model

or using npx:

npx fca-cli@latest help add-model

License

This project is licensed under the MIT License.