Skip to content

Commit

Permalink
Merge pull request #6 from kiki-le-singe/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
kiki-le-singe authored Jan 29, 2017
2 parents bd22683 + 1938969 commit b2adcae
Show file tree
Hide file tree
Showing 115 changed files with 9,693 additions and 751 deletions.
14 changes: 13 additions & 1 deletion .babelrc
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"presets": ["es2015", "react", "stage-0"],
"presets": [["latest", { "modules": false }], "react", "stage-0"],
"plugins": ["transform-runtime"],
"env": {
"test": {
"plugins": [
[
"istanbul", {
"exclude": ["**/*.spec.js"]
}
]
]
},
"server": {
"plugins": ["system-import-transformer"]
},
"production": {
"presets": ["react-optimize"]
}
Expand Down
Empty file modified .editorconfig
100755 → 100644
Empty file.
15 changes: 7 additions & 8 deletions .eslintrc.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ env:
browser: true
node: true
es6: true
parserOptions:
sourceType: module
ecmaVersion: 7
ecmaFeatures:
jsx: true
experimentalObjectRestSpread: true
parser: babel-eslint
plugins:
- react
- jsx-a11y
Expand All @@ -29,9 +24,13 @@ globals:
__SERVER__: false
__DEV__: false
__PROD__: false
__DEBUG__: false
webpackIsomorphicTools: false
rules:
semi: [2, "never"]
comma-dangle: [1, "never"]
comma-dangle: 0
no-underscore-dangle: off
global-require: 0
react/forbid-prop-types: 0
react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }]
react/prefer-stateless-function: [2, {"ignorePureComponents": true}]
react/require-extension: "off"
9 changes: 9 additions & 0 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ dist
.sass-cache
build/*
reports
coverage

# ready to deploy
readyToDeploy/*
!readyToDeploy/static
!readyToDeploy/package.json
!readyToDeploy/yarn.lock
!readyToDeploy/README.md
readyToDeploy/static/dist/

# webpack-isomorphic-tools
webpack-assets.json
Expand Down
17 changes: 17 additions & 0 deletions .release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"non-interactive": false,
"dry-run": false,
"verbose": true,
"force": false,
"pkgFiles": ["package.json"],
"increment": "patch",
"commitMessage": "Release %s",
"tagName": "%s",
"tagAnnotation": "Release %s",
"changelogCommand": "conventional-changelog -p angular -i CHANGELOG.md -s",
"github": {
"release": true,
"releaseName": "Release %s",
"tokenRef": "GITHUB_API_TOKEN"
}
}
Empty file modified .travis.yml
100755 → 100644
Empty file.
133 changes: 133 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<a name="2.0.2"></a>
# [2.0.2](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v2.0.1...v2.0.2) (2017-01-18)


### Bug Fixes

* **webpack.cssnext:** change include path ([06173ea](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/06173ea))



<a name="2.0.0"></a>
# [2.0.0](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.8.1...v2.0.0) (2017-01-13)


### Bug Fixes

* **koa.prod:** update path ([992fee2](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/992fee2))
* **package:** fix json error ([43d4922](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/43d4922))
* **setup:** remove wrong command line ([269ae83](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/269ae83))
* **webpack:** fix syntax error ([da61df6](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/da61df6))


### Features

* **AboutView:** add About view ([a1e5a0e](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/a1e5a0e))
* **AboutView.cssnext:** add About view cssnext ([6965cd8](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/6965cd8))
* **AppLayout:** add counter link ([58d45ee](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/58d45ee))
* **AppLayout:** implement App Layout ([dbb15be](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/dbb15be))
* **AppLayout.cssnext:** implement App Layout cssnext ([60f9e86](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/60f9e86))
* **config:** add DIR_PROJECT_CONFIG constant ([7979583](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/7979583))
* **config:** add project config ([7add9f1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/7add9f1))
* **config:** set staticDir ([be032c3](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/be032c3))
* **config:** update config ([782d537](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/782d537))
* **config:** update configuration ([6cd7c6b](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/6cd7c6b))
* **Counter:** add Counter route ([516f0a1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/516f0a1))
* **Counter:** add Counter view ([90ce274](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/90ce274))
* **HelloView:** add Hello view ([7f6bbb2](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/7f6bbb2))
* **HomeView:** implement Home view ([b8a4c74](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/b8a4c74))
* **Html:** transform Html as component ([9577eee](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/9577eee))
* **Html:** use serialize-javascript package ([053416e](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/053416e))
* **koa:** implement htmlMinifier ([fe9f890](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/fe9f890))
* **koa:** implement koa-compress ([cdbefef](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/cdbefef))
* **koa:** implement koa-helmet package ([caa6410](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/caa6410))
* **koa:** implement static cache ([6c64e90](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/6c64e90))
* **react.perf:** implement whyDidYouUpdate tool ([a233c5f](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/a233c5f))
* **redux:** add counter actions ([4cb5fc1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/4cb5fc1))
* **redux:** add counter reducer ([a7141c8](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/a7141c8))
* **redux:** add logger middleware ([580446e](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/580446e))
* **redux:** add store ([604caff](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/604caff))
* **render:** add render utils file ([ef8ef3f](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/ef8ef3f))
* **routes:** add AboutRoute ([ec31c9d](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/ec31c9d))
* **routes:** add HelloRoute ([beb81a0](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/beb81a0))
* **routes:** add HomeRoute route ([f7d855d](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/f7d855d))
* **routes:** add NotFoundRoute ([e5f7f83](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/e5f7f83))
* **routes:** add some routes ([040daf1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/040daf1))
* **routes:** transform jsx routes to plain routes ([0c77ea1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/0c77ea1))
* **routes:** use routes as function to pass some options ([f07818d](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/f07818d))
* **server:** update server ([12d87dc](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/12d87dc))
* **server:** use babel-register instead of babel-node for prod mode ([ebbaf28](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/ebbaf28))
* **setup:** add next setup file ([e350fd6](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/e350fd6))
* **setup:** Remove bin dir ([6256e0f](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/6256e0f))
* **styles:** add default(scss) styles ([344a856](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/344a856))
* **styles.cssnext:** add cssnext styles ([fcd4eaa](https://github.com/kiki-le-singe/react-redux-universal-boilerplate-next/commit/fcd4eaa))



<a name="1.8.1"></a>
# [1.8.1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.8.0...v1.8.1) (2016-10-31)


### Bug Fixes

* **package:** add missing `ext` option ([73a8395](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/73a83954902a0d0bff73d7306f27166e53f7ddff))


<a name="1.8.0"></a>
# [1.8.0](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.7.0...v1.8.0) (2016-10-16)


### Features

* **yarn:** add yarn file ([b7941dd](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/b7941dd))
* **README:** update documentation ([a01d845](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/a01d845))



<a name="1.7.0"></a>
# [1.7.0](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.6.0...v1.7.0) (2016-09-25)


### Features

* **babel:** implement babel latest preset ([78f2b0d](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/78f2b0d))
* **babel:** implement transform-react-jsx-source plugin ([4a818d5](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/4a818d5))



<a name="1.6.0"></a>
# [1.6.0](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.4.1...v1.6.0) (2016-09-16)


### Features

* **react.perf:** implement whyDidYouUpdate tool ([57a87e1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/57a87e1))



<a name="1.4.1"></a>
# [1.4.1](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.4.0...v1.4.1) (2016-09-11)


### Bug Fixes

* **webpack.dev:** set devtool to `source-map` ([25d9864](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/25d9864ec794b5002272c0b3eb702923eb877aeb))



<a name="1.3.0"></a>
# [1.3.0](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/compare/v1.0.10...v1.3.0) (2016-09-10)


### Bug Fixes

* **karma.conf:** import missing yargs package ([80162a4](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/80162a4))

### Features

* **config:** use local ip as default server host ([efe8350](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/efe8350))
* **Hello:** add Hello component ([fb4c54a](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/fb4c54a))
* **Hello:** set className attribute to `hello` ([733a0ee](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/733a0ee))
* **HelloView:** implement the Hello component ([32b6416](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/32b6416))
* **test.config:** setup webpack to use enzyme ([b8ae060](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/b8ae060))
* **webpack.prod:** generate a manifest file ([b86de24](https://github.com/kiki-le-singe/react-redux-universal-boilerplate/commit/b86de24))
53 changes: 53 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Contributing

I am open to any contributions made by you.

### Linting

Please check your code using `npm run lint` before submitting your pull requests.

> Some .cssnext.js files will display an error. This is normal because we use sass as default extension language.

### Testing

Please check your code using `npm run test` before submitting your pull requests.


### Commit Message Format

Each commit message should include a **type**, a **scope** and a **subject**:

```
<type>(<scope>): <subject>
```

Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.

#### Type

Must be one of the following:

* **feat**: A new feature
* **fix**: A bug fix
* **docs**: Documentation only changes
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
semi-colons, etc)
* **refactor**: A code change that neither fixes a bug or adds a feature
* **perf**: A code change that improves performance
* **test**: Adding missing tests
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
generation

#### Scope

The scope could be anything specifying place of the commit change. For example `webpack`, `server`,
`eslint`, `babel`, `reactComponentName` etc...

#### Subject

The subject contains succinct description of the change:

* use the imperative, present tense: "change" not "changed" nor "changes"
* don't capitalize first letter
* no dot (.) at the end
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Anthony Albertini

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
55 changes: 18 additions & 37 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,59 +1,40 @@
# React Router Animation Examples

## Introduction

This project is just an example using [`React Router`](https://github.com/reactjs/react-router) and [`React's Animations`](https://facebook.github.io/react/docs/animation.html) in a mobile context. So reduce your screen size.

In this example I only use `react-router` but in my opinion we can't only use the router to navigate from one screen to the other. Because obviously the route will change and you'll lose the previous displayed screen. This is not always the wanted effect in a mobile application. Maybe we could combine the router with the pushing and popping techniques like [`React Native`](https://facebook.github.io/react-native/)'s [`Navigation`](https://facebook.github.io/react-native/docs/navigation.html) or native mobile apps.

## Installation

```shell
$ git clone git@github.com:kiki-le-singe/react-router-animation-examples.git
$ cd react-router-animation-examples
$ npm install
```
> Note: This example uses [react-redux-universal-boilerplate](https://github.com/kiki-le-singe/react-redux-universal-boilerplate)
## Scripts

### Development
## Requirements

```shell
$ npm start
```
* [nodejs](http://nodejs.org/)

Serves your app at `localhost:3000`. HMR will be enabled in development. A proxy is used for when you request http://localhost:3000/, it will fetch http://localhost:3001/ and return.
> Node `>=6.0.0`
```shell
$ npm run start:server
```

Starts the `dev` server to serve your app at `localhost:3000`.
## Optional

```shell
$ npm run start:client:server
```
* [yarn](https://yarnpkg.com/)

Starts the `webpack dev server` to serve your `webpack bundle` at `localhost:3001` and enable HMR in development.


### Production

```shell
$ npm run compile
```

It does some optimizations and Compiles the application, for the production, to disk (`~/static/dist`).
## Installation

```shell
$ npm run deploy
$ git clone https://github.com/kiki-le-singe/react-router-animation-examples.git <name>
$ cd <name>
$ npm install or yarn
```

Cleans the `~/static/dist` folder previously created, then compiles your application to disk and starts the `prod` server.

```shell
$ npm run prod
```

Starts the `prod` server to serve your app at `localhost:3000`.
## Features
* [react](https://github.com/facebook/react)
* [react-router](https://github.com/reactjs/react-router)
* [Animation Add-Ons](https://facebook.github.io/react/docs/animation.html)
* [webpack 2](https://github.com/webpack/webpack)
* code splitting


## Sources
Expand Down
Loading

0 comments on commit b2adcae

Please sign in to comment.