* chore: use yarn 2 * chore: remove redundant yarn locks * chore: remove publishEslintPkg * chore: remove redundant make bootstrap * Update .yarnrc.yml Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com> * chore: use workspace protocol for eslint packages in the root Co-Authored-By: merceyz <merceyz@users.noreply.github.com> * chore: pin caniuse-lite versions Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie depends on specific caniuse-lite versions. We pinned the version here so we don't have to deal with fixture different in e2e-tests where all deps will be updated and tested. * chore: resolve yarn install warnings * chore: update yarn cache path on circle/travis * chore: add yarn deduplicate plugin * chore: deduplicate lock files * chore: move devDependencies to leaf packages * chore: remove @yarnpkg/plugin-constraints * chore: remove unused dedupe options * test: fix unwanted self reference * chore: remove output-file-sync dependency * chore: update browserify to 16.5.2 Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
49 lines
1.5 KiB
Bash
Executable File
49 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#==============================================================================#
|
|
# SETUP #
|
|
#==============================================================================#
|
|
|
|
# Start in scripts/integration-tests/ even if run from root directory
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
source utils/local-registry.sh
|
|
source utils/cleanup.sh
|
|
|
|
# Echo every command being executed
|
|
set -x
|
|
|
|
# Clone create-react-app
|
|
git clone --depth=1 https://github.com/facebook/create-react-app.git tmp/create-react-app
|
|
cd tmp/create-react-app || exit
|
|
|
|
#==============================================================================#
|
|
# TEST #
|
|
#==============================================================================#
|
|
|
|
# !!! WARNING !!!
|
|
# create-react-app uses the useBuiltIns: true option of @babel/preset-react,
|
|
# removed in Babel 8.0.0. And it does not specify runtime option. The test will break on
|
|
# runtime: "automatic", default of Babel 8.
|
|
# This change replaces useBuiltIns: true with runtime: "classic"
|
|
sed -i 's/useBuiltIns: true/runtime: "classic"/' packages/babel-preset-react-app/create.js
|
|
|
|
bump_deps="$PWD/../../utils/bump-babel-dependencies.js"
|
|
node "$bump_deps"
|
|
for d in ./packages/*/
|
|
do
|
|
(cd "$d"; node "$bump_deps")
|
|
done
|
|
|
|
# Don't use Yarn 2
|
|
export YARN_IGNORE_PATH=1
|
|
|
|
startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
|
yarn install
|
|
|
|
# Test
|
|
CI=true yarn test
|
|
|
|
unset YARN_IGNORE_PATH
|
|
cleanup
|