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

Allowing a custom config_file relative to the project #30

Merged
merged 20 commits into from
Dec 18, 2023
Merged

Allowing a custom config_file relative to the project #30

merged 20 commits into from
Dec 18, 2023

Conversation

barbieswimcrew
Copy link
Contributor

This PR allows one to set a custom path to the tailwind.config.js

@barbieswimcrew
Copy link
Contributor Author

@bocharsky-bw i resolved all issues the ci tool identified. is there anything else for me to do? 🙂

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Hey, thanks for sending this PR! I left some comments

Also, I see you make this config path configurable... but I wonder what use case is behind of this feature? IMO hardcoded Tailwind CSS config file in the root folder is kind of standard makes things simpler, no? I mean, could you describe your specific use case better, where are you keeping your config file and why not in the project root?

@@ -28,6 +28,7 @@ class TailwindBuilder
public function __construct(
private readonly string $projectRootDir,
string $inputPath,
private readonly string $configPath,
Copy link
Member

Choose a reason for hiding this comment

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

It looks like a BC break. I think if we will add it to the end and give it a default value - we will be able to avoid BC breaks

config/services.php Outdated Show resolved Hide resolved
src/Command/TailwindInitCommand.php Show resolved Hide resolved
@barbieswimcrew
Copy link
Contributor Author

Hey, thanks for sending this PR! I left some comments

Also, I see you make this config path configurable... but I wonder what use case is behind of this feature? IMO hardcoded Tailwind CSS config file in the root folder is kind of standard makes things simpler, no? I mean, could you describe your specific use case better, where are you keeping your config file and why not in the project root?

Hi @bocharsky-bw thanks for your reply. The ability to configure the path of the configuration file makes it possible to deliver the configuration in an encapsulated bundle. I have a Shopware6 project based on Symfony and have created a bundle for a custom theme. Each theme is a separate bundle, hence the requirement.

config/services.php Outdated Show resolved Hide resolved
@bocharsky-bw
Copy link
Member

Hey @barbieswimcrew ,

Sorry for the delay on this! It seems like this now has merge conflicts... sorry about it too! Could you fix them to move it forward?

@barbieswimcrew
Copy link
Contributor Author

Hey @barbieswimcrew ,

Sorry for the delay on this! It seems like this now has merge conflicts... sorry about it too! Could you fix them to move it forward?

Hey @bocharsky-bw

no worries! Updated the pr... let me know if I can help in any way :-)

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Looks ready to me, thank you!

@bocharsky-bw bocharsky-bw merged commit f313019 into SymfonyCasts:main Dec 18, 2023
11 checks passed
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