Add React.PropTypes.object
This commit is contained in:
parent
719c260ce9
commit
fe921f967c
|
@ -3,11 +3,15 @@ title: Browserify
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
browserify input.js
|
browserify input.js
|
||||||
-o output.js
|
-o output.js
|
||||||
-t coffeeify
|
-t coffeeify
|
||||||
-t [ coffeeify --extension coffee ]
|
-t [ coffeeify --extension coffee ]
|
||||||
|
|
||||||
|
-u react (--exclude: omit a file)
|
||||||
|
-x react (--external: reference in another bundle)
|
||||||
|
-i react (--ignore: stub a file)
|
||||||
|
-s Myapp (--standalone: generate a UMD bundle)
|
||||||
--debug
|
--debug
|
||||||
|
|
||||||
### Programmatic usage
|
### Programmatic usage
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
---
|
||||||
|
title: Deis
|
||||||
|
---
|
||||||
|
|
||||||
|
### Deploy
|
||||||
|
|
||||||
|
```
|
||||||
|
deis create app-name
|
||||||
|
git push deis master
|
||||||
|
deis open
|
||||||
|
```
|
||||||
|
|
||||||
|
### Deploy dockerfile
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ deis create app-name
|
||||||
|
$ deis pull redis:latest
|
||||||
|
Creating build... done, v2
|
||||||
|
# default process type is `cmd`
|
||||||
|
```
|
||||||
|
|
||||||
|
### Config
|
||||||
|
|
||||||
|
```
|
||||||
|
deis config:list
|
||||||
|
deis config:set FOO=bar BAZ=foo
|
||||||
|
deis config:unset FOO
|
||||||
|
deis config:pull # writes to .env
|
||||||
|
deis config:push # reads from .env
|
||||||
|
```
|
||||||
|
|
||||||
|
### Managing instances
|
||||||
|
|
||||||
|
```
|
||||||
|
deis logs
|
||||||
|
deis run rake db:migrate
|
||||||
|
deis ps
|
||||||
|
```
|
||||||
|
|
||||||
|
### Custom domains
|
||||||
|
|
||||||
|
```
|
||||||
|
deis domains:list
|
||||||
|
deis domains:add www.myapp.com
|
||||||
|
deis domains:remove www.myapp.com
|
||||||
|
```
|
||||||
|
|
||||||
|
### Limits
|
||||||
|
|
||||||
|
```sh
|
||||||
|
deis limits:set web=1G
|
||||||
|
deis limits:set web=1024 --cpu
|
||||||
|
# (`web` is a process type)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Sharing
|
||||||
|
|
||||||
|
```
|
||||||
|
deis perms:create otheruser
|
||||||
|
```
|
||||||
|
|
||||||
|
### [SSL](http://docs.deis.io/en/latest/using_deis/app-ssl/)
|
||||||
|
|
||||||
|
```
|
||||||
|
deis certs:add server.crt server.key
|
||||||
|
```
|
|
@ -0,0 +1,88 @@
|
||||||
|
---
|
||||||
|
title: Flynn
|
||||||
|
---
|
||||||
|
|
||||||
|
### General workflow
|
||||||
|
|
||||||
|
* Start a flynn cluster (on amazon or vagrant)
|
||||||
|
* `flynn cluster add` to add that cluster
|
||||||
|
* `flynn create NAME` in your app
|
||||||
|
* `git push flynn master` to deploy
|
||||||
|
|
||||||
|
### Creating a cluster (AWS)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn install # (provisions AWS EC2 stuff)
|
||||||
|
flynn key add # (adds your pubkey to AWS)
|
||||||
|
```
|
||||||
|
|
||||||
|
* This creates `XXXX.flynnhub.com`
|
||||||
|
* Dashboard in `dashboard.XXXX.flynnhub.com`
|
||||||
|
* Use `flynn -a dashboard env get LOGIN_TOKEN` to get login token
|
||||||
|
* Apps live in `APP.XXXX.flynnhub.com`
|
||||||
|
|
||||||
|
### Using a flynn cluster
|
||||||
|
|
||||||
|
Managed in `~/.flynnrc`
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn cluster
|
||||||
|
flynn cluster add [-g githost] [-p pin] NAME URL KEY
|
||||||
|
flynn cluster remove NAME
|
||||||
|
flynn cluster default NAME # use this current
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setting up a new app
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd ~/project
|
||||||
|
flynn create example # adds the `flynn` remote
|
||||||
|
flynn route # prints http routes
|
||||||
|
git push flynn master
|
||||||
|
```
|
||||||
|
|
||||||
|
### Environment vars
|
||||||
|
|
||||||
|
```
|
||||||
|
flynn env
|
||||||
|
flynn env set FOO=bar BAZ=foobar
|
||||||
|
flynn env unset FOO
|
||||||
|
```
|
||||||
|
|
||||||
|
### Scale
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn ps
|
||||||
|
flynn scale web=3
|
||||||
|
```
|
||||||
|
|
||||||
|
### Logs
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn log
|
||||||
|
flynn log flynn-d55c7a...
|
||||||
|
```
|
||||||
|
|
||||||
|
### Running commands
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn run rake db:migrate
|
||||||
|
```
|
||||||
|
|
||||||
|
### Manage routes
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn route
|
||||||
|
flynn route add http example.com
|
||||||
|
# then make a CNAME from example.com to myapp.xxxx.flynnhub.com
|
||||||
|
```
|
||||||
|
|
||||||
|
### More
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flynn ps
|
||||||
|
flynn kill <job>
|
||||||
|
|
||||||
|
flynn meta
|
||||||
|
flynn meta set foo=baz
|
||||||
|
```
|
1
react.md
1
react.md
|
@ -240,6 +240,7 @@ React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
email: React.PropTypes.string,
|
email: React.PropTypes.string,
|
||||||
seats: React.PropTypes.number,
|
seats: React.PropTypes.number,
|
||||||
|
settings: React.PropTypes.object,
|
||||||
callback: React.PropTypes.func,
|
callback: React.PropTypes.func,
|
||||||
isClosed: React.PropTypes.bool,
|
isClosed: React.PropTypes.bool,
|
||||||
any: React.PropTYpes.any,
|
any: React.PropTYpes.any,
|
||||||
|
|
Loading…
Reference in New Issue