Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

175 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Typescript Starter

React 18 starter

  • Typescript 5
  • Yarn 4
  • Vite 7
  • Vitest 3
  • Biome 2
  • Stylelint 16
  • Testing Library React 16
  • CSSNano 7
  • PostCSS preset-env 10
  • Playwright 1

This is what I currently like to use as a starter mix to make a web application. Sets up a page with React and Vite, backed with react-refresh. Tests with Vitest and @testing-library.

Install

$ yarn install
➤ YN0000: · Yarn 4.5.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 221ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 0s 511ms

Usage

$ yarn dev

  VITE v7.3.5  ready in 118 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
$ yarn build
vite v7.3.5 building for production...
✓ 31 modules transformed.
dist/index.html                   0.41 kB │ gzip:  0.28 kB
dist/assets/index-Cq5YsKkN.css    0.02 kB │ gzip:  0.04 kB
dist/assets/index-Y3J0mTAw.js   142.47 kB │ gzip: 45.74 kB
✓ built in 824ms
$ yarn test

 DEV  v3.2.6 /home/rockerboo/code/react-typescript-starter

 ✓ src/app.test.tsx (1)
   ✓ app

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  11:22:27
   Duration  562ms (transform 23ms, setup 0ms, collect 87ms, tests 14ms, environment 244ms, prepare 97ms)

Configure

Some values in the starter may need to be changed to work well as your project.

  • package.json (author, name)
  • src/app.tsx
  • index.html

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages