https://github.com/xizon/uix-webpack-typescript-jest-react-scaffold
A scaffold boilerplate including TypeScript, React, Jest and ESLint.
https://github.com/xizon/uix-webpack-typescript-jest-react-scaffold
boilerplate boilerplate-template eslint jest react reactjs scaffold typescript webpack5
Last synced: about 2 months ago
JSON representation
A scaffold boilerplate including TypeScript, React, Jest and ESLint.
- Host: GitHub
- URL: https://github.com/xizon/uix-webpack-typescript-jest-react-scaffold
- Owner: xizon
- License: mit
- Created: 2022-01-02T07:50:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-04T05:13:09.000Z (over 3 years ago)
- Last Synced: 2025-01-14T12:50:00.752Z (3 months ago)
- Topics: boilerplate, boilerplate-template, eslint, jest, react, reactjs, scaffold, typescript, webpack5
- Language: JavaScript
- Homepage: https://xizon.github.io/uix-webpack-typescript-jest-react-scaffold/public/index.html
- Size: 835 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uix-webpack-typescript-jest-react-scaffold
[](https://www.npmjs.com/package/uix-webpack-typescript-jest-react-scaffold)
[](LICENSE)A scaffold boilerplate including TypeScript, React, Jest and ESLint.
## File Structures
```sh
/
├── README.md
├── LICENSE
├── tsconfig.json
├── babel.config.js
├── package-lock.json
├── package.json
├── dist/
├── src/
├── test/
├── public/
│ ├── index.html
│ └── assets/
├── build/
│ └── config.js
└──
```## Installation And Test
You will need to have [node](https://nodejs.org/) setup on your machine. That will output the built distributables to `./dist/*` .
**Step 1.** Use NPM (Locate your current directory of project, and enter the following command.) or download the latest version from [Github](https://github.com/xizon/uix-webpack-typescript-jest-react-scaffold). For nodejs you have to install some dependencies.
```sh
$ sudo npm install uix-webpack-typescript-jest-react-scaffold
```Or clone the repo to get all source files including build scripts:
```sh
$ git clone git://github.com/xizon/uix-webpack-typescript-jest-react-scaffold.git
```**Step 2.** First, using an absolute path into your `"uix-webpack-typescript-jest-react-scaffold/"` folder directory.
```sh
$ cd /{your_directory}/uix-webpack-typescript-jest-react-scaffold
```**Step 3.** Before doing all dev stuff make sure you have `Node 10+` installed. After that, run the following code in the main directory to install the node module dependencies.
```sh
$ sudo npm install
```**Step 4.** Commonly used commands:
Debug application. It can be checked separately as TypeScript without compiling and packaging behavior.
```sh
$ npm run check
```**Step 5.** When you’re ready to deploy to production, create a minified bundle with:
```sh
$ npm run build
```**Step 6.** When you have done, this will spin up a server that can be accessed at
```sh
http://localhost:8080
```💡 Note:
**If you upgrade the version of Node, please execute the following code:**```sh
$ sudo npm install
$ sudo npm rebuild node-sass
```## Supported development environment
- React 17 +
- TypeScript 4.x.x +
- Babel 7.x.x +
- Webpack 5.x.x
- Jest 27.x.x## Licensing
Licensed under the [MIT](https://opensource.org/licenses/MIT).