1.0.5 • Published 4 years ago
reactry v1.0.5
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.jsto your project root directory - run
npx reactryto 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- astring[]of components specific to the desktop version of the projectcomponents.tablet- astring[]of components specific to the tablet version of the projectcomponents.mobile- astring[]of components specific to the mobile version of the projectcomponents.util- astring[]of utility components which span multiple devices