Giter Club home page Giter Club logo

react-template's Introduction

React template

Contributor Covenant

Minimum node version Minimum npm version

Recommended node version Recommended pnpm

AS A PACKAGE MANAGER, I HIGHLY RECOMMEND USING PNPM

AS A NODE.JS VERSION MANAGER, I HIGHLY RECOMMEND USING NVM

Installation

git clone repo_url
cd project_location
pnpm i

Scripts

Start developer mode (support hot reload)

pnpm dev

Start production mode (with some build optimizations)

pnpm prod

Dev & prod scripts use the 8080 port

http://localhost:8080/

Clean build folder

pnpm clean

Build application for deploy

pnpm buildapp

Clean build folder & rebuild application for deploy

pnpm build

Start webpack plugin for bundle analyze

pnpm analyze

Husky utility script, starts only once, at the packages installation (not need to be manually called anytime)

pnpm prepare

Start formatter check on all files

pnpm prettier

Start formatter autofix on all files

pnpm prettier:fix

Start ESLint check on all files

pnpm lint

Start ESLint autofix on all files

pnpm lint:fix

Start ESLint autofix only on git staged files

pnpm lint:fix-staged

Start stylelint check on all files

pnpm lint:css

Start stylelint autofix on all files

pnpm lint:css:fix

Start stylelint autofix only on git staged files

pnpm lint:css:fix-staged

Start ESLint config inspector

pnpm test:eslint-config

Start Webpack config test

pnpm test:webpack-config

Start prettier, ESLint & stylelint check processes in order

pnpm lint-all

Start prettier, ESLint & stylelint autofix processes in order

pnpm fix-all

Start lint-staged fix scripts from .lintstagedrc on git staged files (husky automatically call it on git pre-commit hook)

pnpm fix-staged

Start svgo on passed svg file (size optimization)

pnpm svgo $FILE_PATH

Start svgo on all svg files in the project (size optimization)

pnpm svgo-all

Known issues:

Temporary disabled postcss stylelint (still buggy)

Unstable packages (rc, beta & etc.):

Unmet peer [email protected] for ESLint plugins (wait ESLint v9 support releases):

Use fixupPluginRules from @eslint/compat to fix eslint-plugin-import plugin rules

Archived postcss-assets plugin

react-template's People

Contributors

alexey-koran avatar vitalidev05 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

Watchers

 avatar  avatar  avatar

react-template's Issues

Regenerator runtime problem

Should add new plugin

npm install --save-dev @babel/plugin-transform-runtime
npm install --save @babel/runtime

.babelrc

{
  ...
  "plugins": [
    ...
    ["@babel/plugin-transform-runtime"]
  ],
  "sourceType": "unambiguous"
}

https://babeljs.io/docs/en/babel-plugin-transform-runtime#regenerator

[You'll want to set the sourceType option to either "unambiguous" or "script" if your files aren't ES modules. The docs for the option explain, but essentially because the type is wrong, it will insert import statements into your CommonJS file, causing the error you're seeing.](babel/babel#8900.)

Write docs

Sections:

  • Quick start
  • Installation
  • Scripts usage
  • Packages & their settings, purpose
  • Strongly recommended VSCode plugins
  • Examples

Write docs

Sections:
Installation
Quick start
Packages & their settings, purpose
Strongly recommended VSCode plugins
Examples

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.