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

[WIP] improvements to use it #1

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open

[WIP] improvements to use it #1

wants to merge 41 commits into from

Conversation

ElectricMaxxx
Copy link
Member

This are the first improvements to use it in cmf and to which leads to first dispatch: symfony-cmf/seo-bundle#339

@ElectricMaxxx
Copy link
Member Author

@dbu that is it.

Copy link
Member

@dbu dbu left a comment

Choose a reason for hiding this comment

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

great work, looks good to me! i commented a few things.


.PHONY: test docs
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

we do not have docs to test in our bundles/components.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, but unless i missed something, you completely removed .PHONY. this should list all meta targets that are not files (which is every target for us, as we are not compiling code with the makefile)

do a touch test && make test on the commandline to see the effect of having or not having phony.

@@ -0,0 +1,23 @@
SeoBundle
Copy link
Member

Choose a reason for hiding this comment

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

this should be a placeholder or the line be deleted.

const GITHUB_EMAIL = '[email protected]';
const PACKAGIST_GROUP = 'sonata-project';
const GITHUB_GROUP = 'symfony-cmf';
const GITHUB_USER = 'electricmaxxx';
Copy link
Member

Choose a reason for hiding this comment

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

would we have to create a specific user for the dev-kit?

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, and i would like to put those parameters in a .env (with a checked in .env.dist to keep this application reusable and maybe push something back to sonata.

}

$branchConfig = $projectConfig['branches'][$currentBranch];
$composerAsJson['require']['php'] = $this->evaluateVersionString($branchConfig['php']);
Copy link
Member Author

Choose a reason for hiding this comment

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

@dbu i crate php version constraint, and the symfony version constraints in here.

Copy link
Member

Choose a reason for hiding this comment

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

that is quite cool!

$this->evaluateVersionString($branchConfig['versions']['symfony']),
'^2.8 | '
);
} elseif (preg_match('/symfony\//', $package) && 'friendsofsymfony/jsrouting-bundle' !== $package) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@dbu you are better in regex, right? can you give me an regex not to exclude friendsofsymfony/ that ugly way. I should be something that starts with symfony/

Copy link
Member

Choose a reason for hiding this comment

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

this is working with the parsed json, right? then you could do preg_match('/^symfony\//', $package). the caret symbol at the beginning of the expression matches the beginning of the subject.

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.

3 participants