Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Get rid of drush and use a plain PHP script for scaffolding #218

Merged
merged 2 commits into from
May 7, 2018

Conversation

ccjjmartin
Copy link
Collaborator

@ccjjmartin ccjjmartin commented Mar 20, 2018

Apparently I pushed this to the wrong repo. Let me know if I should reopen this from Emulsify for consistency

Addresses:

Testing:

  • Mess around with all the command line options:
    'arguments' => array(
      'human_readable_name' => 'The name of your theme.',
    ),
    'options' => array(
      'machine-name' => 'The machine-readable name of your theme. This will be auto-generated from the human_readable_name if ommited.',
      'description' => 'The description of your theme',
      'path' => 'Supports three options contrib, custom, none.  Defaults to "custom".',
      'slim' => 'Only copy base files',
    ),
  • Example:
    php emulsify.php test2 --slim --machine-name awesome3 --path contrib --description "My really awesome description"
    php emulsify.php -h # for help

Notes:

  • I got tired of dependencies so the only dependency now is PHP

@thamas
Copy link
Contributor

thamas commented Mar 20, 2018

Great! Will check when I have time!

@thamas
Copy link
Contributor

thamas commented Mar 21, 2018

Just run php emulsify.php "Emulsify Mutant" --machine-name emutant and it created a copy of Emulsify at that moment when I hit Enter. Great! 👍

@thamas
Copy link
Contributor

thamas commented Mar 21, 2018

FYI php emulsify.php -h shows the same info in the "Examples" block as in the "Options" block.

@ccjjmartin
Copy link
Collaborator Author

@thamas Oops, copy paste fail.

@ddavidd
Copy link

ddavidd commented Mar 22, 2018

I'm pretty excited about this. Just ran php emulsify.php "Most Amazing" --machine-name amazing and a copy was created as expected. 👍 Perhaps this goes without saying, but the readme will need to be changed as well.

@backlineint
Copy link

I also ran into this issue with Drush 9 and found this as a workaround. php emulsify.php components-layout --machine-name components_layout --path custom --description "Components and Layouts Emulsify Subtheme" worked nicely for me as well.

Copy link
Contributor

@evanmwillhite evanmwillhite left a comment

Choose a reason for hiding this comment

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

This has been functionally tested quite a bit, so I say let's get it in.

@ccjjmartin ccjjmartin merged commit 3356325 into fourkitchens:develop May 7, 2018
@ccjjmartin ccjjmartin deleted the scaffold-fix branch May 7, 2018 23:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants