mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Building DevTools is currently the long pole for the runtime CI job. Let's see if we can get the overall runtime for runtime build and test down by speeding this one step up. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32266). * #32267 * __->__ #32266
33 lines
735 B
Bash
Executable File
33 lines
735 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mkdir -p build/devtools
|
|
|
|
cd packages/react-devtools
|
|
npm pack
|
|
mv ./react-devtools*.tgz ../../build/devtools/
|
|
|
|
cd ../react-devtools-core
|
|
npm pack
|
|
mv ./react-devtools-core*.tgz ../../build/devtools/
|
|
|
|
cd ../react-devtools-inline
|
|
npm pack
|
|
mv ./react-devtools-inline*.tgz ../../build/devtools/
|
|
|
|
cd ../react-devtools-extensions
|
|
if [[ -n "$1" ]]; then
|
|
yarn build:$1
|
|
mv ./$1/build/ReactDevTools.zip ../../build/devtools/$1-extension.zip
|
|
else
|
|
yarn build
|
|
for browser in chrome firefox edge; do
|
|
mv ./$browser/build/ReactDevTools.zip ../../build/devtools/$browser-extension.zip
|
|
done
|
|
fi
|
|
|
|
# Compress all DevTools artifacts into a single tarball for easy download
|
|
cd ../../build/devtools
|
|
tar -zcvf ../devtools.tgz .
|