summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md
blob: 71db97622ecd94f4ab00994c5abd9100834809cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[//]: # (
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
)

# Upgrading react-prop-types

## Getting the Source

```bash
git clone git@github.com:facebook/prop-types.git
cd prop-types
```

## Building

```bash
npm install
NODE_ENV=development browserify index.js -t envify --standalone PropTypes -o react-prop-types-dev.js
NODE_ENV=production browserify index.js -t envify --standalone PropTypes -o react-prop-types.js
```

## Copying files to your Firefox repo

```bash
mv react-prop-types.js /firefox/repo/devtools/client/shared/vendor/react-prop-types.js
mv react-prop-types-dev.js /firefox/repo/devtools/client/shared/vendor/react-prop-types-dev.js
```

## Adding Version Info

Add the version to the top of `react-prop-types.js` and `react-prop-types-dev.js`.

```js
 /**
  * react-prop-types v15.6.0
  */
```