This is a template for a React application built with TypeScript and Webpack.
- TypeScript: The project is written in TypeScript, which provides static type checking and improved developer experience.
- Webpack: The project uses Webpack as the bundler, allowing for easy configuration and optimization.
- Linting and Formatting: The project uses ESLint and Prettier to enforce code style and quality.
- Husky and Lint-Staged: Git hooks are set up to run linting and formatting on staged files before committing.
-
Clone the repository:
git clone https://github.com/your-username/my-app.git
-
Install dependencies:
cd my-app npm install
-
Start the development server:
npm start
This will start the Webpack development server and open the application in your default browser.
npm start
: Starts the Webpack development server.npm build
: Builds the production-ready bundle.npm lint
: Runs ESLint on thesrc
directory.npm lint:fix
: Runs ESLint with the--fix
option to automatically fix linting issues.npm prettify
: Runs Prettier to format the code in thesrc
directory.npm check
: Runs the TypeScript compiler to check for type errors.
react
: ^17.0.1react-dom
: ^17.0.1
@babel/core
: ^7.24.5@babel/plugin-transform-runtime
: ^7.24.3@babel/preset-env
: ^7.24.5@babel/preset-react
: ^7.24.1@babel/preset-typescript
: ^7.24.1@babel/runtime
: ^7.24.5@types/node
: ^20.12.12@types/react
: ^18.3.2@types/react-dom
: ^18.3.0@types/webpack
: ^5.28.5@typescript-eslint/eslint-plugin
: ^7.9.0@typescript-eslint/parser
: ^7.9.0babel-loader
: ^9.1.3clean-webpack-plugin
: ^4.0.0css-loader
: ^7.1.1eslint
: 8.57.0eslint-config-prettier
: ^9.1.0eslint-plugin-prettier
: ^5.1.3eslint-plugin-react
: ^7.34.1eslint-plugin-react-hooks
: ^4.6.2eslint-plugin-sonarjs
: ^1.0.3eslint-webpack-plugin
: ^4.1.0fork-ts-checker-webpack-plugin
: ^9.0.2html-webpack-plugin
: ^5.6.0husky
: ^9.0.11lint-staged
: ^15.2.2prettier
: ^3.2.5style-loader
: ^4.0.0ts-node
: ^10.9.2typescript
: ^5.4.5webpack
: ^5.91.0webpack-cli
: ^5.1.4webpack-dev-server
: ^5.0.4
This project is licensed under the MIT License.