https://github.com/pinqy520/simple-tsx-starter-kit
Minimal React Webpack TypeScript Boilerplate
https://github.com/pinqy520/simple-tsx-starter-kit
boilerplate minimal starter starter-kit tsx typescript webpack
Last synced: 3 months ago
JSON representation
Minimal React Webpack TypeScript Boilerplate
- Host: GitHub
- URL: https://github.com/pinqy520/simple-tsx-starter-kit
- Owner: pinqy520
- License: mit
- Created: 2016-12-04T11:24:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T10:38:01.000Z (over 9 years ago)
- Last Synced: 2025-01-12T11:19:18.508Z (over 1 year ago)
- Topics: boilerplate, minimal, starter, starter-kit, tsx, typescript, webpack
- Language: JavaScript
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-tsx-starter-kit
> Minimal React Webpack TypeScript Starter Kit
Based on [alicoding/react-webpack-babel](https://github.com/alicoding/react-webpack-babel.git)
```
git clone https://github.com/pinqy520/simple-tsx-starter-kit.git
npm install
npm start
```
Open the web browser to `http://localhost:8888/`
### To build the production package
```
npm run build
```
### Nginx Config
Here is an example Nginx config:
```
server {
# ... root and other options
gzip on;
gzip_http_version 1.1;
gzip_types text/plain text/css text/xml application/javascript image/svg+xml;
location / {
try_files $uri $uri/ /index.html;
}
location ~ \.html?$ {
expires 1d;
}
location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {
access_log off;
log_not_found off;
expires max;
}
}
```
### Eslint
There is a .eslint.yaml config for eslint ready with React plugin.
To use it, you need to install additional dependencies though:
```
npm install --save-dev eslint eslint-plugin-react
```
To do the actual linting, run:
```
npm run lint
```