* 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>
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copied from https://github.com/facebook/create-react-app/blob/053f9774d3f592c17741d2a86de66a7ca58f90c0/tasks/local-registry.sh
|
|
|
|
custom_registry_url=http://localhost:4873
|
|
default_verdaccio_package=verdaccio@~4.3.3
|
|
|
|
function startLocalRegistry {
|
|
# Start local registry
|
|
tmp_registry_log=`mktemp`
|
|
echo "Registry output file: $tmp_registry_log"
|
|
(cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &)
|
|
|
|
# Wait for Verdaccio to boot
|
|
grep -q "http address" <(tail -f $tmp_registry_log)
|
|
|
|
# Set registry to local registry
|
|
export NPM_CONFIG_REGISTRY="$custom_registry_url"
|
|
export YARN_NPM_PUBLISH_REGISTRY="$custom_registry_url"
|
|
export YARN_NPM_REGISTRY_SERVER="$custom_registry_url"
|
|
export YARN_NPM_AUTH_IDENT="username:password"
|
|
}
|
|
|
|
function loginLocalRegistry {
|
|
export YARN_NPM_AUTH_IDENT="username:password"
|
|
}
|
|
|
|
function stopLocalRegistry {
|
|
# Restore the original NPM and Yarn registry URLs and stop Verdaccio
|
|
fuser -k 4873/tcp
|
|
unset NPM_CONFIG_REGISTRY
|
|
unset YARN_NPM_PUBLISH_REGISTRY
|
|
unset YARN_NPM_REGISTRY_SERVER
|
|
}
|