reactry
v1.0.5
Published
Generate react project structure and get building.
Downloads
9
Maintainers
Readme
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
- 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