Code Monkey home page Code Monkey logo

generator-rnc's Introduction

generator-rnc Travis David npm

๐ŸŽฉ A yeoman generator to scaffold a ready-to-go react-native component

This yeoman generator is pretty much inspired from the works of generator-nm.

Nutshell Features:

  • โœ… Robust package.json with set peer dependencies, author, issue link, etc.
  • โœ… Pre-configured Jest for react-native
  • โœ… Flat-square readme badges for Travis, David DM, and NPM downloads
  • โœ… .gitignore with ignores for emac files and a whole bunch of nonsense
  • โœ… MIT license and listed on readme

image

Install

$ npm install --global generator-rnc

Usage

  1. Install Yo
  2. Run generator, $ yo rnc
  3. Answer the prompts and go ๐Ÿš€!

Tips & Troubleshooting

Importing/Publishing

How to import locally without have to publish every change?

  1. cd into your generated component directory and run npm link to create a symlink
  2. cd into your application where you want to import component directory and run npm link <package name of component>

Feel free to read over the link for more information regarding npm link

Testing

CI Build fails because of snapshot error?

Most likely you have an old snapshot, run npm run renew-snap or jest --updateSnapshot to renew existing snapshot.

Read the Snapshot Testing Docs for more information.

Unit test keep failing even after changes

This can be caused by cached files by jest, run jest --no-cache or npm run clean-test to run the test at a clean state.

For more additional help, visit the Jest Troubleshoot Page

Open-Source Components Built by generator-rnc

  • react-native-open-maps: A simple lib to open up the corresponding map (Google or Apple Maps) from a set of coordinates (latitude & longitude) within react-native.

Did you built something recently? Feel free to add your component on here for others to reference and submit a PR.

Contributors

๐Ÿ‘‹๐Ÿฝ Hello, currently looking to add more features, please submit PR's or issues if you have any additional enhancements!

License

MIT ยฉ Brandon Him

generator-rnc's People

Contributors

brh55 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yeoman-projects

generator-rnc's Issues

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.