phase2 / generator-pattern-lab-starter

This is a Yeoman Generator for pattern-lab-starter: https://github.com/phase2/pattern-lab-starter
10 stars 5 forks source link

Overhaul on upstream retrieval. #27

Closed grayside closed 6 years ago

grayside commented 6 years ago

A few little changes, but the heart of this is to minimize the amount of exec'd commands. I wanted to use a library such as tarball-extract (alluded to in #25) but that project depends on an ancient release of a node wget library that can't follow redirects, which immediately slams against Github's infrastructure.

This change adds a new --release flag to facilitate testing/using the generator with code other than master on the particle project.

There is also some general robustness improvements, such as failing earlier if curl asplodes, removing extra file copy and delete operations, and supporting the generator recursively creating the base directory of the theme in case someone specified a deeply nested location.

With this change I suppose I'll follow up with a v3.1.0 release.