بدون توضیح

Konstantin Tarkus 67c25d7369 Merge branch 'patch-1' of https://github.com/HaNdTriX/react-static-boilerplate into HaNdTriX-patch-1 9 سال پیش
src a2a2c8f1da Major refactoring 9 سال پیش
test a2a2c8f1da Major refactoring 9 سال پیش
tools f57412b1a9 Update npm script commands 9 سال پیش
.babelrc bdfc82a852 Initial commit 10 سال پیش
.editorconfig bdfc82a852 Initial commit 10 سال پیش
.eslintrc cb3bd44650 Update ESLint settings 10 سال پیش
.gitattributes bdfc82a852 Initial commit 10 سال پیش
.gitignore bdfc82a852 Initial commit 10 سال پیش
.travis.yml b0650b396f Update README.md 9 سال پیش
LICENSE.txt a2a2c8f1da Major refactoring 9 سال پیش
README.md f57412b1a9 Update npm script commands 9 سال پیش
package.json 67c25d7369 Merge branch 'patch-1' of https://github.com/HaNdTriX/react-static-boilerplate into HaNdTriX-patch-1 9 سال پیش

README.md

React Static Boilerplate

NPM version NPM downloads Build Status Dependency Status

A static website starter kit powered by React.js and Webpack.

Join #react-static-boilerplate chatroom on Gitter to stay up to date.

Features

    ✓ Generates static .html pages from React components
    ✓ Generates routes based on the list of files in the /src folder
    ✓ Next generation JavaScript with Babel
    ✓ Next generation CSS with postCSS and cssnext
    ✓ Development web server with React Hot Loader
    ✓ Bundling and optimization with Webpack
    ✓ Code-splitting and async chunk loading
    ✓ Easy deployment to GitHub Pages or Amazon S3
    ✓ Yeoman generator (generator-react-static)

Getting Started

Just clone the repo, install Node.js modules and run npm start:

$ git clone -o react-static-boilerplate -b master --single-branch \
      https://github.com/koistya/react-static-boilerplate.git MyApp
$ cd MyApp
$ npm install
$ npm start

Then open http://localhost:3000/ in your browser.

Directory Layout

.
├── /build/                     # The folder for compiled output
├── /node_modules/              # 3rd-party libraries and utilities
├── /src/                       # React.js-based web pages
│   ├── /blog/                  # Blog post entries example
│   ├── /img/                   # Website images
│   ├── /js/                    # JavaScript code and React.js components
│   ├── /404.js                 # 'Not found' page
│   ├── /about.js               # 'About' page
│   └── /index.js               # 'Home' page
├── /test/                      # Unit tests
├── /tools/                     # Build automation scripts
│── LICENSE.txt                 # License file
│── package.json                # Dev dependencies and NPM scripts
└── README.md                   # Project overview

How to Test

The unit tests are powered by chai and mocha.

$ npm test

How to Deploy

$ npm run deploy                # Deploys the project to GitHub Pages

How to Update

You can always fetch and merge the recent changes from this repo back into your own project:

$ git checkout master
$ git fetch react-static-boilerplate
$ git merge react-static-boilerplate/master
$ npm install

Related Projects

Learn More


Made with ♥ by Konstantin Tarkus (@koistya) and contributors  |  MIT License