GeezerVison is showing github.com — Cleaned up some extnesions build script stuff · react/react@441d014
File treeExpand file treeCollapse file tree Open diff view settings react-devtools-extensions
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-core/webpack.backend.js +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | const {resolve} = require('path'); | 2 | 2 | const {DefinePlugin} = require('webpack'); | 3 | | -const {getGitHubURL, getVersionString} = require('../../shells/utils'); | | 3 | +const { | | 4 | + getGitHubURL, | | 5 | + getVersionString, | | 6 | +} = require('react-devtools-extensions/utils'); | 4 | 7 |
| 5 | 8 | const NODE_ENV = process.env.NODE_ENV; | 6 | 9 | if (!NODE_ENV) { | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-core/webpack.standalone.js +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | const {resolve} = require('path'); | 2 | 2 | const {DefinePlugin} = require('webpack'); | 3 | | -const {getGitHubURL, getVersionString} = require('../../shells/utils'); | | 3 | +const { | | 4 | + getGitHubURL, | | 5 | + getVersionString, | | 6 | +} = require('react-devtools-extensions/utils'); | 4 | 7 |
| 5 | 8 | const NODE_ENV = process.env.NODE_ENV; | 6 | 9 | if (!NODE_ENV) { | |
Collapse file Copy file name to clipboard +9-15Lines changed: 9 additions & 15 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -This repo is a work-in-progress rewrite of the [React DevTools extension](https://github.com/facebook/react-devtools). A demo of the beta extension can be found online at [react-devtools-experimental.now.sh](https://react-devtools-experimental.now.sh/). | | 1 | +This is the source code for the React DevTools browser extension. | 2 | 2 |
| 3 | 3 | # Installation | 4 | 4 |
| 5 | | -Installation instructions are available online as well: | 6 | | -* [Chrome](https://react-devtools-experimental-chrome.now.sh/) | 7 | | -* [Firefox](https://react-devtools-experimental-firefox.now.sh/) | | 5 | +The easiest way to install this extension is as a browser add-on: | | 6 | +* [Chrome web store](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) | | 7 | +* [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/) | 8 | 8 |
| 9 | | -Or you can build and install from source: | 10 | | -```sh | 11 | | - | 12 | | - | 13 | | -cd react-devtools-experimental | | 9 | +# Build | 14 | 10 |
| | 11 | +You can also build and install from source: | | 12 | +```sh | 15 | 13 | yarn install | 16 | 14 |
| 17 | | -yarn build:extension:chrome # builds at "shells/browser/chrome/build" | 18 | | -yarn build:extension:firefox # builds at "shells/browser/firefox/build" | | 15 | +yarn build:extension:chrome # builds at "packages/react-devtools-extensions/chrome/build" | | 16 | +yarn build:extension:firefox # builds at "packages/react-devtools-extensions/firefox/build" | 19 | 17 | ``` | 20 | | - | 21 | | -# Support | 22 | | - | 23 | | -As this extension is in a beta period, it is not officially supported. However if you find a bug, we'd appreciate you reporting it as a [GitHub issue](https://github.com/bvaughn/react-devtools-experimental/issues/new) with repro instructions. |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/babel.config.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -const chromeManifest = require('./shells/browser/chrome/manifest.json'); | 2 | | -const firefoxManifest = require('./shells/browser/firefox/manifest.json'); | | 1 | +const chromeManifest = require('./chrome/manifest.json'); | | 2 | +const firefoxManifest = require('./firefox/manifest.json'); | 3 | 3 |
| 4 | 4 | const minChromeVersion = parseInt(chromeManifest.minimum_chrome_version, 10); | 5 | 5 | const minFirefoxVersion = parseInt( | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/build.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ const {execSync} = require('child_process'); | 7 | 7 | const {readFileSync, writeFileSync, createWriteStream} = require('fs'); | 8 | 8 | const {copy, ensureDir, move, remove} = require('fs-extra'); | 9 | 9 | const {join} = require('path'); | 10 | | -const {getGitCommit} = require('../../utils'); | | 10 | +const {getGitCommit} = require('./utils'); | 11 | 11 |
| 12 | 12 | // These files are copied along with Webpack-bundled files | 13 | 13 | // to produce the final web extension | @@ -27,7 +27,6 @@ const build = async (tempPath, manifestPath) => { | 27 | 27 | __dirname, | 28 | 28 | '..', | 29 | 29 | '..', | 30 | | - '..', | 31 | 30 | 'node_modules', | 32 | 31 | '.bin', | 33 | 32 | 'webpack', | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/chrome/build.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ const {execSync} = require('child_process'); | 7 | 7 | const {existsSync} = require('fs'); | 8 | 8 | const {isAbsolute, join, relative} = require('path'); | 9 | 9 | const {argv} = require('yargs'); | 10 | | -const build = require('../shared/build'); | | 10 | +const build = require('../build'); | 11 | 11 |
| 12 | 12 | const main = async () => { | 13 | 13 | const {crx, keyPath} = argv; | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/chrome/deploy.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | 'use strict'; | 4 | 4 |
| 5 | | -const deploy = require('../shared/deploy'); | | 5 | +const deploy = require('../deploy'); | 6 | 6 |
| 7 | 7 | const main = async () => await deploy('chrome'); | 8 | 8 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/deploy.html +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 22 | 22 | </h3> | 23 | 23 |
| 24 | 24 | <p> | 25 | | - This is a preview build of an <a href="https://github.com/bvaughn/react-devtools-experimental">unreleased DevTools extension</a>. | | 25 | + This is a preview build of an <a href="https://github.com/facebook/react/tree/master/packages/react-devtools-extensions">unreleased DevTools extension</a>. | 26 | 26 | It has no developer support. | 27 | 27 | </p> | 28 | 28 |
| @@ -34,7 +34,7 @@ <h2>Installation instructions</h2> | 34 | 34 |
| 35 | 35 | <h2>Bug reports</h2> | 36 | 36 | <p> | 37 | | - Please report bugs as <a href="https://github.com/bvaughn/react-devtools-experimental/issues/new?labels=bug">GitHub issues</a>. | | 37 | + Please report bugs as <a href="https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools">GitHub issues</a>. | 38 | 38 | Please include all of the info required to reproduce the bug (e.g. links, code, instructions). | 39 | 39 | </p> | 40 | 40 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/deploy.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ const {readFileSync, writeFileSync} = require('fs'); | 7 | 7 | const {join} = require('path'); | 8 | 8 |
| 9 | 9 | const main = async buildId => { | 10 | | - const root = join(__dirname, '..', buildId); | | 10 | + const root = join(__dirname, buildId); | 11 | 11 | const buildPath = join(root, 'build'); | 12 | 12 |
| 13 | 13 | execSync(`node ${join(root, './build')}`, { | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/firefox/build.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | 'use strict'; | 4 | 4 |
| 5 | 5 | const chalk = require('chalk'); | 6 | | -const build = require('../shared/build'); | | 6 | +const build = require('../build'); | 7 | 7 |
| 8 | 8 | const main = async () => { | 9 | 9 | await build('firefox'); | |
|