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

feat: add recommendations depending on the platform #37

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

rafalcymerys
Copy link
Member

This PR adds a support for recommendedForPlatforms field in Spree Template.s

We've noticed that a lot of people try to use the dockerized version on Mac, which has some severe performance issues caused by the slow filesystem sync between mac and docker. For an application of this size, this causes it to work really slow.

With this PR, it's possible to tag a template as recommended for a certain platform - in such case, the CLI will prioritize it when running on given OS and will display "Recommended" next to the name of the template.

@rafalcymerys rafalcymerys requested a review from letelete January 22, 2023 17:47
src/domains/spree/buildSpreeChoices.ts Outdated Show resolved Hide resolved
src/domains/spree/buildSpreeChoices.ts Show resolved Hide resolved
src/domains/spree/getSpree.ts Outdated Show resolved Hide resolved
@rafalcymerys rafalcymerys force-pushed the feat/spree_option_recommendation branch from d8da4bc to 83180e2 Compare January 23, 2023 17:29
@rafalcymerys rafalcymerys requested a review from letelete January 23, 2023 17:30
@rafalcymerys
Copy link
Member Author

@letelete good points, I updated the PR. Please take a look one more time when you have a moment :)

@@ -0,0 +1,65 @@
import { buildSpreeChoices } from '../../../src/domains/spree';
Copy link
Collaborator

@letelete letelete Jan 24, 2023

Choose a reason for hiding this comment

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

I was just thinking, we could replace relative paths with absolute ones (for all project files, in a dedicated PR). Relative paths are quite messy and difficult to read, which leads to mistakes.

@rafalcymerys rafalcymerys merged commit d487865 into main Jan 24, 2023
@delete-merged-branch delete-merged-branch bot deleted the feat/spree_option_recommendation branch January 24, 2023 08:42
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