summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md')
-rw-r--r--devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md b/devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md
new file mode 100644
index 0000000000..71db97622e
--- /dev/null
+++ b/devtools/client/shared/vendor/REACT_PROP_TYPES_UPGRADING.md
@@ -0,0 +1,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
+ */
+```