Giter Site home page Giter Site logo

fdaciuk / boilerplate-vite-react Goto Github PK

View Code? Open in Web Editor NEW
97.0 5.0 35.0 242 KB

Create a new project with React.js, TypeScript and jest with Vite

Shell 0.66% HTML 3.25% TypeScript 81.22% CSS 8.58% JavaScript 6.29%
react reactjs typescript eslint husky vite

boilerplate-vite-react's Introduction

Boilerplate React.js + TypeScript + Vite 👋

Version License: MIT Twitter: fdaciuk

All Contributors

Boilerplate to create React.js apps with Vite

Which techs this boilerplate have in it?

This boilerplate is ready to be used by devs who want to start a new project using React.js, TypeScript and Jest with Vite.

Main configurations

  • React.js 18+ with TypeScript;
    • You can import "svgs" with import { ReactComponent as MyIcon } from './icon-path.svg';
    • You can import any other media (images, videos, etc) that is located inside src directory;
    • You can use absolute imports, using @ as src directory;
  • Eslint:
  • Automatic lint and type-checking with Husky before every commit.

Usage

Install the dependencies:

yarn install

Run dev server:

yarn dev

You can run type-checking in watch mode in another terminal, if you may:

yarn type-check --watch

Run tests

yarn test

Production version

To generate the production version, you can run:

yarn build

All files you have to deploy will be located at the dist directory.

Run production version locally

To check if everything will be ok in production before the deployment, you can run this command after yarn build:

yarn preview

Author

👤 Fernando Daciuk

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

✨ Contributors

Thanks goes to these wonderful people (emoji key):

Fernando Daciuk
Fernando Daciuk

💻 📖
Gabriel Pinheiro
Gabriel Pinheiro

💻
NewCapital.in
NewCapital.in

💻
Vinícius Bispo
Vinícius Bispo

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

boilerplate-vite-react's People

Contributors

allcontributors[bot] avatar fdaciuk avatar sallescosta avatar vinibispo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

boilerplate-vite-react's Issues

Fix Vite Plugin Lint package

After cloning the project and running yarn install or yarn update-deps, the installation failed due to the vite-plugin-lint package. This prevents users from using the boilerplate without removing the package.

image

Import pattern

Remove default of export in app.tsx for follow the pattern of importation, and import named import { App } from
Explaining:
When exporting by default can't change the name's component in importation, then, if change the name in component should be changed in importation too, however, if export without default, you can change the name of importation component facilitating a refactoring of code.
Explained in class: 05/20

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.