Giter Site home page Giter Site logo

ryandsilva / feature_folder_cli Goto Github PK

View Code? Open in Web Editor NEW
44.0 3.0 10.0 52 KB

CLI utility that generates folder by feature file structure

Home Page: https://pub.dev/packages/feature_folder_cli

License: MIT License

Dart 100.00%
cli dart developer-tools flutter dartlang feature-folders template template-generator mason

feature_folder_cli's Introduction

Folder by Feature CLI Utility ๐Ÿ“‚

A Dart CLI tool that generates the folder structure for the folder-by-feature pattern. This tool helps to reduce the repetitive work required to setup directories for models, services, repositories, screens and widgets.

The folder structure generated by the cli is as follows:

feature/
โ”ฃ domain/
โ”ƒ โ”ฃ models/
โ”ƒ โ”ฃ repository/
โ”ƒ โ”ฃ services/
โ”ƒ โ”— index.dart
โ”ฃ screens/
โ”ƒ โ”ฃ feature_screen.dart
โ”ƒ โ”— index.dart
โ”ฃ widgets/
โ”ƒ โ”ฃ feature_component.dart
โ”ƒ โ”— index.dart
โ”ฃ providers/
โ”ƒ โ”ฃ feature_provider.dart
โ”ƒ โ”— index.dart
โ”— index.dart

Command Usage ๐Ÿ”ง

Make sure you are in the root of your project

ff generate -n <feature_name> -t <type> -p <path>

Currently supporting only the simple and getx types

feature_folder_cli's People

Contributors

ryandsilva avatar yusufakyol2597pc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

feature_folder_cli's Issues

Need more details to use this plugins and update

Hello Sir,

Can you add some more details about this plugin like installation instructions and activation?
Also, we are not able to understand why features and types are there. Like What kind of type is supported.
I hope you will update the documentation of this plugin so more users can understand how to make a hierarchy with this.

Also this plugin is outdated since 9 months ago kindly update this plugin with a new flutter sdk environment.

image

Failed to execute generate command

Hello, was going through your article and tried the cli
how ever im getting this issue

Can't load Kernel binary: Invalid SDK hash.                                                                             
feature_folder_cli 0.0.4 requires the Flutter SDK, which is unsupported for global executables.

simple_feature requires mason version 0.1.0-dev.49, version solving failed.

getting the following error while generating feature structure

bazi@Muhammeds-Mac-mini project-flutter % ff generate -n login -t simple            

Time Taken: 14 milliseconds

โœ“ Feature login created successfully
โœ– The current mason version is 0.1.0-dev.50.
Because simple_feature requires mason version 0.1.0-dev.49, version solving failed.
Screenshot 2023-07-12 at 10 02 16 AM

Mason Cache File Deletion Failure During Generation

FileSystemException: Deletion failed, path = 'C:\Users\jlambright\AppData\Local\Mason\Cache\git\feature_folder_cli_aHR0cHM6Ly9naXRodWIuY29tL1J5YW5Ec2lsdmEvZmVhdHVyZV9mb2xkZXJfY2xp_efb98f7bcbaaa7b1aded22abcf8654c33ec6456f' (OS Error: The system cannot find the path specified. , errno = 3)

Has this been seen? Happens after reactivating the package as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.