Repository navigation
T47 mvc new - #60
Merged
Merged
T47 mvc new#60
Conversation
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
This comment has been minimized.
This comment has been minimized.
Code Metrics Report
Details | | master (dd811be) | #60 (ce913f0) | +/- |
|---------------------|------------------|---------------|-------|
+ | Coverage | 99.6% | 99.6% | +0.0% |
| Files | 65 | 72 | +7 |
| Lines | 1753 | 1885 | +132 |
+ | Covered | 1746 | 1878 | +132 |
- | Test Execution Time | - | 5s | +5s |Code coverage of files in pull request scope (100.0% → 100.0%, patch 100.0%)
Reported by octocov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello!
crest newfor the MVC flavor #47In raising this pull request, I confirm the following:
composer test,composer csandcomposer analyzeall passnew --flavor=adr|mvc:crest new my-app --flavor=mvcwrites an MVC project that runs:AppFrontwithPhalcon\Mvc\Application, a dispatcher provider and a view provider insrc/Providers/,IndexControllerand its base insrc/Controllers/, and the views inthemes/default/.newasks for the flavor first.new --template-engine: the view engine of an MVC project. It acceptsphtml, the default. An ADR project has no views, so the option stopsnew.stub:publish --flavor: the flavor of a project stub before the project exists,adrby default. When the flavor does not have the project stub and another flavor does, the error says which:pass --flavor=mvc.provider(src/Providers) andviews(themes/default), and the MVC project stubsproject-front,project-readme,project-provider-dispatcher,project-phtml-provider,project-phtml-layoutandproject-phtml-index.Crest\Generator\Project:Skeleton(the files, the values and the first artifacts of the project of a flavor),AdrSkeleton,MvcSkeleton,Skeletons,AnswersandTemplateEngines, andCrest\Generator\ControllerBase.project-compose,project-composer,project-config,project-dockerfile,project-env,project-gitignore,project-htrouter,project-indexandproject-launcherare the same in both flavors, and moved toresources/stubs/shared/. A copy that was published intoresources/stubs/adr/still wins for ADR projects, and has no effect on MVC projects. To use one copy for both flavors, publish it again.project-configstub:'flavor' => '{{ flavor }}'.Crest\Project\Settingshas the flavor as its first value.newkey: it names the publishedproject-configthatnewused.new: it checks that the writtencrest.phphas the chosen flavor. A publishedproject-configwith a fixed flavor stops it, with an error that names the stub.Crest\Command\Make\ControllerCommand::BASEandBASE_FOLDERtoCrest\Generator\ControllerBase::NAMEandFOLDER.Thanks