https://github.com/adam-robson/webpackjs
https://github.com/adam-robson/webpackjs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adam-robson/webpackjs
- Owner: Adam-Robson
- Created: 2024-08-08T23:33:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T06:28:47.000Z (4 months ago)
- Last Synced: 2025-03-25T07:28:14.184Z (4 months ago)
- Language: JavaScript
- Size: 293 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack--react--template
This is a boilerplate template for setting up a React project using Webpack, Babel, ESLint, Prettier, and Jest.
This template provides a clean and organized structure to kickstart your React project, written in JavaScript.
## Features
- **React**: Frontend library for building user interfaces.
- **Webpack**: Module bundler for efficient builds and hot module reloading.
- **Babel**: JavaScript compiler to ensure compatibility across different browsers.
- **ESLint**: Linter to maintain code quality and enforce consistent coding styles.
- **Prettier**: Code formatter to automatically format your code.
- **Jest**: Testing framework for writing unit tests.## Installation
1. Clone the repository:
```bash
git clone https://github.com/theycallherlou/webpack--react--template.git
cd webpack--react--template
```2. Install the dependencies:
```bash
npm install
```## Scripts
- **Start the development server**:
```bash
npm dev
```Runs the development server.
- **Build the production bundle**:
```bash
npm run build
```Build the project in the `dist/` directory, for production.
- **Lint the code**:
```bash
npm run lint
```Lints the code using ESLint.
- **Run tests**:
```bash
npm test
```Runs unit tests using Jest.
## Folder Structure
```bash
.
├── src
│ ├── components
│ ├── App.js
│ └── index.js
├── public
│ └── index.html
├── .gitignore
├── .prettierrc
├── babel.config.cjs
├── eslint.config.js
├── jest.config.js
├── jsconfig.json
├── package.json
├── webpack.config.js
└── README.md
```## License
This project is licensed under the MIT License.