Giter Site home page Giter Site logo

selbyk / react-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.76 MB

React using Typescript, Next.js, and Storybook with auto formatting, commit linting, and some other helpful stuff

Home Page: https://react-template.selbyk.now.sh

TypeScript 94.75% JavaScript 4.77% CSS 0.48%

react-template's Introduction

Selby's React Template

React using Typescript, Next.js, and Storybook with auto formatting, commit linting, and some other helpful stuff (most listed below under Scripts & References)

Live app demo

Live Storybook demo

Scripts

Dev

  • npm run dev
    • Runs live dev server
  • npm run storybook
    • Runs storybook
  • npm test or npm run test
    • Runs tests
  • npm run commit
    • Commitizen can help you build your commit messages. Run after you have staged files

CI

  • npm run build
    • Runs next build
  • npm start or npm run start
    • Runs the app with next start
  • npm run build-storybook
    • Builds storybook

Utilities

  • npm run format
    • Formats code using prettier-eslint
  • npm run lint-staged
    • Formats only staged files

Getting started

git clone [email protected]/selbyk/react-template
cd react-template
npm install
npm run dev # run live dev server @ http://localhost:3000
npm run storybook # run storybook @ http://localhost:6006

Contributing

  1. All changes should be made to a feature branch

    • git checkout -b feat/<NAME> or git checkout -b <COMMIT_TYPE>/<NAME>
  2. Commit messages should follow conventional commits guidelines

    • Make a change in some files
    • Stage them with git add or GUI of choice
    • Run npm run commit to help format your commit message
    • If the commit fails because of linting or tests run npm run commit -- --retry to retry with the same params after fixing the errors and staging the changes
  3. Push your branch to GitHub and open a PR!

References

Helpful guides & API docs

Typescript

JavaScript with some flare

React

Front-end lib

Next.js

Tooling on top of react for nice things like SSR (e.g. npm run dev, npm start)

Storybook

Component story manager for testing and development

Enzyme

Testing lib to simulate user interaction

Bulma

CSS framework

react-template's People

Contributors

selbyk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.