Skip to content

Generate React Project Files Based on Components.

License

Notifications You must be signed in to change notification settings

kimjisena/reactry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactry

Generate react project directories and files based on your components.

Installation

using npm

  • $ npm i -D reactry

using yarn

  • $ yarn add --save-dev reactry

How to use.

  • setup your project using create-react-app (recommended)
  • add reactry.config.js to your project root directory
  • run npx reactry to generate your component files

reactify.config.js

reactry.config.js exports a components object of this structure:

// ./reactry.config.js

module.exports = {
    components: {
        desktop: [],
        tablet: [],
        mobile: [],
        util: []
    }
};
  • components.desktop - a string[] of components specific to the desktop version of the project
  • components.tablet - a string[] of components specific to the tablet version of the project
  • components.mobile - a string[] of components specific to the mobile version of the project
  • components.util - a string[] of utility components which span multiple devices

About

Generate React Project Files Based on Components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published