Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the setup script, install yarn with npm #6696

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tjmw
Copy link
Member

@tjmw tjmw commented Jan 15, 2025

What are you doing in this PR?

In the setup script install yarn with npm.

Why are you doing this?

This is the approach recommended by yarn. I'm looking at general improvements to the setup script and this is a first baby step.

How to test

How can we measure success?

Have we considered potential risks?

Accessibility test checklist

Screenshots

This is the recommendation cross platform. We'll already have npm
through installing Node.
Copy link
Contributor

Size Change: 0 B

Total Size: 2.1 MB

ℹ️ View Unchanged
Filename Size
./public/compiled-assets/javascripts/[countryGroupId]/events/router.js 90.5 kB
./public/compiled-assets/javascripts/[countryGroupId]/router.js 259 kB
./public/compiled-assets/javascripts/ausMomentMap.js 108 kB
./public/compiled-assets/javascripts/contributionsRedirectStyles.js 20 B
./public/compiled-assets/javascripts/digitalSubscriptionLandingPage.js 228 kB
./public/compiled-assets/javascripts/downForMaintenancePage.js 67.7 kB
./public/compiled-assets/javascripts/error404Page.js 67.6 kB
./public/compiled-assets/javascripts/error500Page.js 67.5 kB
./public/compiled-assets/javascripts/favicons.js 617 B
./public/compiled-assets/javascripts/paperSubscriptionCheckoutPage.js 166 kB
./public/compiled-assets/javascripts/paperSubscriptionLandingPage.js 87.9 kB
./public/compiled-assets/javascripts/payPalErrorPage.js 66.1 kB
./public/compiled-assets/javascripts/payPalErrorPageStyles.js 20 B
./public/compiled-assets/javascripts/promotionTerms.js 73.9 kB
./public/compiled-assets/javascripts/subscriptionsLandingPage.js 73.2 kB
./public/compiled-assets/javascripts/subscriptionsRedemptionPage.js 118 kB
./public/compiled-assets/javascripts/supporterPlusLandingPage.js 225 kB
./public/compiled-assets/javascripts/unsupportedBrowserStyles.js 20 B
./public/compiled-assets/javascripts/weeklySubscriptionCheckoutPage.js 163 kB
./public/compiled-assets/javascripts/weeklySubscriptionLandingPage.js 88.1 kB
./public/compiled-assets/webpack/136.js 2.17 kB
./public/compiled-assets/webpack/187.js 21.7 kB
./public/compiled-assets/webpack/344.js 2.01 kB
./public/compiled-assets/webpack/643.js 22.4 kB
./public/compiled-assets/webpack/706.js 107 kB

compressed-size-action

if linux && ! installed yarn; then
sudo apt-get install yarn
install_yarn() {
if ! installed yarn; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this recognise if yarn is installed with Homebrew?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think so. The installed function uses the hash utility, and I can see that it can understands utilities installed with homebrew. For example in bash:

bash-3.2$ which dev-nginx
/opt/homebrew/bin/dev-nginx
bash-3.2$ hash dev-nginx # no output == found it
bash-3.2$ hash dev-nginxssss
bash: hash: dev-nginxssss: not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants