-
Notifications
You must be signed in to change notification settings - Fork 111
Determine what to ship inside source/ #34
Comments
@dmolsen does PL/PHP ship with a |
Not sure what you mean. Can you give me an example of what you might be looking for?
|
sure. right now during dev, for convenience, I've left https://github.com/pattern-lab/edition-node-gulp/tree/dev/source populated with a default pattern tree. This makes pulling it down and running easier, but I wonder what PL/PHP does at the edition level. Is a user expected to load a starterkit first? |
With the caveat that I think you can go in whichever direction you think makes sense for Node and NPM. I've said it before and I'll say it again, the Installer has been where I've spent a ton of time. I'm hesitant to make it part of spec and force you to follow. I also think this is a key area that will be tested by real use. It's still quasi-theoretical though the Drupal guys have rolled with it. Obviously a PL/PHP Edition from the official org does not ship with files in
The first one is managed via Composer. The last two are managed by custom code within PL/PHP and are downloaded as Zip files. via Composer as an Explicit DependencyAs noted, a user can set up the following "require": {
"php": ">=5.3.6",
"pattern-lab/core": "^2.1.0",
"pattern-lab/patternengine-twig": "^2.0.0",
"pattern-lab/styleguidekit-twig-default": "^2.0.0",
"pattern-lab/starterkit-twig-default": "^2.0.0"
}, PL/PHP takes "advantage" of various install events exposed by Composer. Custom code moves stuff from If the StarterKit has been updated then a via Zip as a Suggestion or CommandThis feature only works with GitHub currently. This feature ensures that a StarterKit is a true starting point and that dependency updates to their work won't affect
via StarterKitSuggestionsThis works kind of like Yeoman in that, on install, Pattern Lab will prompt the user via the command line and ask which one they might want to install. They choose a number, PL goes and grabs the Zip related to the choice, and installs it. via a CommandThe command offers these options (loses some of its formatting pasting here):
TL;DRWell, you'll have to read a bunch of that. I just want to reiterate that you can find a solution that works for you. There's a lot of custom code in that set-up/install process. |
No description provided.
The text was updated successfully, but these errors were encountered: