Skip to content

Instantly share code, notes, and snippets.

@matheusoliveira-luizalabs
Last active August 7, 2017 16:50
Show Gist options
  • Save matheusoliveira-luizalabs/baa96b60069c88d32c097d7b13c71ed7 to your computer and use it in GitHub Desktop.
Save matheusoliveira-luizalabs/baa96b60069c88d32c097d7b13c71ed7 to your computer and use it in GitHub Desktop.
Sheldon

Sheldon

react-app generator.

repositório: github.com/luizalabs/sheldon

Dependencies

Features

  • Generator basic container sheldon bazinga Users. Output:

    • __tests__
      • ${--container-name}.test.js
    • actions.js
    • contansts.js
    • index.js
    • Users.jsx
    • reducer.js

    Crud example:

    • sheldon bazinga --crud Users. Output:
      • Basic scaffold +
      • ${--container-name}{'',List,Detail,Form}.jsx
  • Autoload Routes and Reducers

  • HTTP resource

  • service workers

  • Hash history

  • async/await

  • SSR?

Styleguide

Back-for-front

Folders

my-app/
  api/
  ui/
    public/
      favicon.ico
      index.html
      manifest.json
    src/
      components/
        index.js
      config/
        reducer.js
        store.js
      containers/
        Users/
          __tests__/
            Users.test.js
            UsersList.test.js
          actions.js
          constants.js
          index.js
          Users.jsx
          UsersList.jsx
          UsersDetail.jsx
          UsersForm.jsx
          reducer.js
      index.js
      registerServiceWorker.js
    .env
    .eslintrc
    .gitignore
    package.json
    README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment