Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
Version 1.0.0-beta.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmr committed Nov 15, 2016
1 parent 9892994 commit b100bf5
Show file tree
Hide file tree
Showing 10 changed files with 154 additions and 111 deletions.
1 change: 1 addition & 0 deletions examples/complex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "VG",
"license": "MIT",
"dependencies": {
"koa-session": "3.4.0",
"react-toggle": "~2.1.1",
"redux-api-middleware": "~1.0.2",
"redux-fetcher": "~2.0.0",
Expand Down
1 change: 1 addition & 0 deletions examples/complex/src/components/about/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default class About extends Component {
<h1 style={{color: this.props.color}}>About us</h1>
<button onClick={ () => this.props.reload() }>Reload</button>
<pre>{ JSON.stringify(props, null, 2) }</pre>
<pre>{ JSON.stringify(location, null, 2)}</pre>
</div>
);
}
Expand Down
17 changes: 15 additions & 2 deletions examples/complex/src/koa-middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@
// If we have a querystring then counter will on the server be incremented.

// Important that the middlewares yield next for everyting to work correct
export default function middlewares() {
return [function* (next) {

const session = require('koa-session');

export default function middlewares(_, { server }) {
server.keys = ['secret'];
return [session(server), function* (next) {
if (this.path == '/session/') {
var n = this.session.views || 0;
this.session.views = ++n;
this.body = n + ' views';
} else {
yield next;
}

}, function* (next) {
if (this.querystring.length > 0) {
this.state.reduxStore.dispatch({
type: 'CLICKED'
Expand Down
4 changes: 2 additions & 2 deletions extensions/roc-package-web-app-react-dev/docs/Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ It is therefore _never to be included_ as a direct dependency in app or componen
### roc-package-webpack-dev — [v1.0.0-beta.4](https://www.npmjs.com/package/roc-package-webpack-dev)
Package providing module support.

### roc-package-webpack-node-dev — [v1.0.0-beta.2](https://www.npmjs.com/package/roc-package-webpack-node-dev)
### roc-package-webpack-node-dev — [v1.0.0-beta.3](https://www.npmjs.com/package/roc-package-webpack-node-dev)
Package providing Node support through Webpack for Roc (Development)

### roc-package-webpack-web-dev — [v1.0.0-beta.3](https://www.npmjs.com/package/roc-package-webpack-web-dev)
Package providing browser support through Webpack for Roc (Development)

### roc-package-web-app-dev — [v1.0.0-beta.5](https://www.npmjs.com/package/roc-package-web-app-dev)
### roc-package-web-app-dev — [v1.0.0-beta.6](https://www.npmjs.com/package/roc-package-web-app-dev)
Package for building web applications using Roc (Development)

## Plugins
Expand Down
14 changes: 14 additions & 0 deletions extensions/roc-package-web-app-react-dev/docs/Hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* [get-webpack-targets](#get-webpack-targets)
* [roc-package-webpack-node-dev](#roc-package-webpack-node-dev)
* [dev-process-created](#dev-process-created)
* [dev-process-stopping](#dev-process-stopping)
* [roc-plugin-style-css](#roc-plugin-style-css)
* [add-style](#add-style)

Expand Down Expand Up @@ -153,6 +154,19 @@ __Expected return value:__ _Nothing_
| ------------- | --------------------------- | ---- | -------- | ------------ |
| serverProcess | The created server process. | | No | |

### dev-process-stopping

Used to react before the development server is stopped.

__Initial value:__ _Nothing_
__Expected return value:__ _Nothing_

#### Arguments

| Name | Description | Type | Required | Can be empty |
| ------------- | ----------------------------------------- | ---- | -------- | ------------ |
| serverProcess | The server process that is being stopped. | | No | |

## roc-plugin-style-css

### add-style
Expand Down
207 changes: 107 additions & 100 deletions extensions/roc-package-web-app-react-dev/docs/Settings.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/roc-package-web-app-react-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "roc-package-web-app-react-dev",
"description": "Package for building React applications with Roc (Development)",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"main": "lib/index.js",
"scripts": {
"lint": "eslint .",
Expand Down
13 changes: 10 additions & 3 deletions extensions/roc-package-web-app-react/docs/Dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ __Version__: ^2.1.0
__Extension__: roc-package-web-app-react
__Custom resolve function__: No

### [intl](https://www.npmjs.com/package/intl)
__Version__: ^1.2.5
__Extension__: roc-package-web-app-react
__Custom resolve function__: No

### [intl-locales-supported](https://www.npmjs.com/package/intl-locales-supported)
__Version__: ^1.0.0
__Extension__: roc-package-web-app-react
__Custom resolve function__: No

### [react](https://www.npmjs.com/package/react)
__Version__: ^15.3.2
__Extension__: roc-plugin-react
Expand Down Expand Up @@ -118,9 +128,6 @@ __Version__: ~1.3.0
#### [koa-lowercase-path](https://www.npmjs.com/package/koa-lowercase-path)
__Version__: ~1.0.0

#### [koa-mount](https://www.npmjs.com/package/koa-mount)
__Version__: ~1.3.0

#### [koa-normalize-path](https://www.npmjs.com/package/koa-normalize-path)
__Version__: ~1.0.0

Expand Down
4 changes: 2 additions & 2 deletions extensions/roc-package-web-app-react/docs/Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ It is therefore _never to be included_ as a direct dependency in app or componen
### roc-package-webpack — [v1.0.0-beta.4](https://www.npmjs.com/package/roc-package-webpack)
Package providing Webpack support for Roc

### roc-package-webpack-node — [v1.0.0-beta.2](https://www.npmjs.com/package/roc-package-webpack-node)
### roc-package-webpack-node — [v1.0.0-beta.3](https://www.npmjs.com/package/roc-package-webpack-node)
Package providing Node support through Webpack.

### roc-package-webpack-web — [v1.0.0-beta.3](https://www.npmjs.com/package/roc-package-webpack-web)
Package providing support bundling for Browser runtimes.

### roc-package-web-app — [v1.0.0-beta.5](https://www.npmjs.com/package/roc-package-web-app)
### roc-package-web-app — [v1.0.0-beta.6](https://www.npmjs.com/package/roc-package-web-app)
Package for building web applications using Roc

## Plugins
Expand Down
2 changes: 1 addition & 1 deletion extensions/roc-package-web-app-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "roc-package-web-app-react",
"description": "Package for building React applications with Roc",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"main": "lib/index.js",
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit b100bf5

Please sign in to comment.