Giter Site home page Giter Site logo

omdxp / react-native-help-create Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 1.0 2.86 MB

This command line helps you create components, screens, navigations and even redux implementation for your react native project

Home Page: https://omdxp.github.io/react-native-help-create/

License: MIT License

JavaScript 69.80% TypeScript 5.07% CSS 0.79% MDX 24.35%
react-native rnhc react-native-help-create mobile-development best-practice best-practices cross-platform redux typescript javascript

react-native-help-create's Introduction

react-native-help-create

react-native-help-create

Focus on your code, not your project structure!

This command line helps you create components, screens, navigations and even redux implementaion for your react native project.

react-native-help-create is released under the MIT license. Current npm package version. PRs welcome!

Rate this package

How to install it?

  • To install it globally in your system run:
npm i react-native-help-create -g

Or

yarn global add react-native-help-create
  • To install it as a dev dependency in your react native project run:
npm i react-native-help-create --save-dev

Or

yarn add react-native-help-create --dev
  • If you want to use it without installing it (using npm cache) run:
npx react-native-help-create --help

How to use it?

Please follow this documentation to see how to use this helper command.

Or you may follow the documentation website.

Or you can see this medium article that explains it.

Contributing

Please check this if you consider to contribute to this project.

react-native-help-create's People

Contributors

dependabot[bot] avatar omdxp avatar snyk-bot 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

Watchers

 avatar  avatar  avatar

react-native-help-create's Issues

update docs

Update documentation for creating, deleting and combining components with atom design pattern.

combine components created with atom design pattern options

Options to be used with combine -c command to combine components in atom design pattern.

Examples

  • combine atom components:
rnhc combine -c test1 test2 --atom -f example

this will combine the test1 and test2 components under ./src/components/atoms/example

  • combine molecule components:
rnhc combine -c test1 test2 --molecule -f example

this will combine the test1 and test2 components under ./src/components/molecules/example

  • combine organism components:
rnhc delete -c test --organism -f example

this will combine the test1 and test2 components under ./src/components/organisms/example

create components in atom design pattern

Options to be used with create -c command to create in atom design pattern.

Examples

  • create atom components:
rnhc create -c test --atom

this will create the test component under ./src/components/atoms/test

  • create molecule components:
rnhc create -c test --molecule

this will create the test component under ./src/components/molecules/test

  • create organism components:
rnhc create -c test --organism

this will create the test component under ./src/components/organisms/test

Check `fs.readdirSync()` when using in dev dependency

Describe the bug
When using rnhc as a devDependency fs.readdirSync is reading in the current path instead of the given path.

To Reproduce
Steps to reproduce the behavior:

  1. Create navigation using rnhc create -n stack * -f auth
  2. It reads from the current directory

Expected behavior
Read from the given path to the method

delete components created with atom design pattern options

Options to be used with delete -c command to delete in atom design pattern.

Examples

  • delete atom components:
rnhc delete -c test --atom

this will delete the test component under ./src/components/atoms/test

  • delete molecule components:
rnhc delete -c test --molecule

this will delete the test component under ./src/components/molecules/test

  • delete organism components:
rnhc delete -c test --organism

this will delete the test component under ./src/components/organisms/test

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.