Skip to content

PabloPenia/vite-react-ts-starter

Repository files navigation

vite-react-ts-starter

Yet another Frontend Starter Kit.

CHANGELOG

How to build

On your preferred CLI run:

  • Clone this repository git clone 'https://github.com/PabloPenia/yet-another-react-ts-template'.
  • Install dependencies: yarn ci or npm ci.

Included Scripts

  • Run in development mode: yarn dev or npm run dev.
  • Run in production mode: yarn preview or npm run preview. (this will build for production before run.)
  • Build for production: yarn build or npm run build.
  • Show linter warnings: yarn lint or npm run lint.
  • Auto-Fix linter warnings: yarn lint:fix or npm run lint:fix.
  • Run tests: yarn test or npm run test.
  • Generate a new component: yarn gen MyComponent or npm run gen MyComponent.
  • Generate a new route: yarn gen:route MyRoute or npm run gen:route MyRoute.

Extra

  • Style ready, resets, fluidtypo, and more: check src/theme folder
  • Header component.
  • Theme switcher dark/light with context ready.
  • LazyLoad Wrapper
  • Loading Spinner
  • Routing with router dom and pre-configured routes.
  • Not Found Page
  • Usefull common components: Button, Hyperlink extended from standard html.

CHANGELOG

07/27/2023 - v1.1.0

Main updates

  • Typescript 5.1
  • React 18.2
  • Eslint 6.2

Removed

  • Standard Style guide.

04/17/2023

  • Added Hyperlink and Button Components: These components are extended from html standards so you can use it this way:
  <Button onClick={() => setState(newState)}>My Button</Button>
  <Hyperlink to='#mylink' title='Title to my link'>My Link<Hyperlink>

You can add any other standard prop such as aria-*, className, etc. Only href (for links) has been changed to to for better compatibility with react-router-dom

  • Improved Icon Component: A fully responsive component to work with svg sprites. check src/components/atoms/icon
  • Added a few dependencies: lodash and classnames
  • All included components have been refactored to adapt to the Atomic Design Pattern.
  • Also GRC templates have been refactored.

About

React-Typescript starter kit for Frontend development using Vite. Includes linting, formatting, unit testing and more tools.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Contributors