|
пре 7 година | |
---|---|---|
src | пре 7 година | |
test | пре 7 година | |
tools | пре 7 година | |
.babelrc | пре 8 година | |
.eslintrc | пре 7 година | |
.gitattributes | пре 8 година | |
.gitignore | пре 8 година | |
.stylelintrc | пре 7 година | |
.travis.yml | пре 8 година | |
LICENSE.txt | пре 7 година | |
README.md | пре 7 година | |
package.json | пре 7 година | |
postcss.config.js | пре 7 година | |
webpack.config.js | пре 7 година |
✓ Modern JavaScript syntax (ES2015+) via Babel
✓ Modern CSS/SCSS syntax (CSS3+) via PostCSS
✓ Application state management via Redux
✓ Routing and navigation via React Router, React Router Redux, History
✓ Modular styles via CSS Modules
✓ Code-splitting and async chunk loading
✓ Hot Module Replacement (HMR) /w React Hot Loader
✓ Bundling and optimization with Webpack
✓ Cross-device testing with Browsersync
✓ IE8 Support (Need to build after)
.
├── /build/ # The folder for compiled output
├── /node_modules/ # 3rd-party libraries and utilities
├── /src/
├── /components/ # Shared/generic UI components
│ ├── /Layout/ # Layout component
│ ├── /Button/ # Button component
│ └── /... # etc.
├── /containers/ # containers
├── /routes/ # View/screen UI components + routing information
│ ├── /About/ # About page
│ ├── /NotFound/ # Error page
│ ├── /Home/ # Home page
│ └── /... # etc.
├── /static/ # Static files such as favicon.ico etc.
├── /store/ # redux store
├── /test/ # Unit and integration tests
├── /tools/ # Build automation scripts and utilities
│── LICENSE.txt # Licensing information
│── package.json # The list of project dependencies and NPM scripts
└── README.md # Project overview / getting started guide
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/jun0205/react-static-boilerplate.git MyApp
$ cd MyApp
$ npm install # Install project dependencies listed in package.json
$ npm start # Build and launch the app, same as "node tools/start.js"
NODE: Make sure that you have Node.js v6 installed on your local machine.
react <= 0.14.8 or <= 15.0.2
react-dom <= 0.14.8 or <= 15.0.2
react-router <= 2.3.0
webpack = 1.15.0
The unit tests are powered by chai and mocha.
$ npm test
$ npm run build # Build production release
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
This source code is licensed under the MIT license found in the LICENSE.txt file.