1.0.2 • Published 5 years ago

marcelabomfim-react-scripts v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

react-scripts

This package includes scripts and configuration used by Create React App. Please refer to its documentation:


Usage

npx create-react-app --scripts-version marcelabomfim-react-scripts project-name

What is included ?

  • All advantages from facebook/create-react-app
  • styled-components
  • react-router-dom
  • redux
  • react-redux
  • redux-logger
  • redux-promise
  • redux-thunk
  • husky
  • lint-staged
  • prettier

Tree structure

- public
- build
- node_modules
- src
    |_ assets
    |_ components
        |_ MyComponent
            |_ index.js                 // export component
            |_ MyComponent.jsx          // jsx extension for all react files
            |_ MyComponent.styles.jsx   // styles with styled-components
    |_ containers
        |_ MyContainer
            |_ index.js                 // export container
            |_ MyContainer.jsx          // .jsx extension for all react files
            |_ MyContainer.styles.jsx   // styles with styled-components
    |_ store
        |_ actions
            |_ ActionTypes.js           // export actions constants
            |_ Example.actions.js
        |_ reducers
            |_ Example.reducer.js
            |_ index.js                 // combine reducers
        |_ index.js                     // initialize and setup store
    |_ utils
        |_ styles
            |_ global.js                // all global styles
            |_ helpers.js
    |_ App.jsx
    |_ index.js
- .env
- .prettierrc

For more details see the original create-react-app repository