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

Add --unique option to support spritezero's generateLayoutUnique #10

Merged
merged 3 commits into from
Jun 10, 2016

Conversation

vdumont
Copy link
Contributor

@vdumont vdumont commented Jun 6, 2016

Add --unique option to support spritezero's generateLayoutUnique.
Also regenerate fixtures since they were stale. ie: A fresh copy of origin/master fails to run tests since it picks up spritezero 3.5+ which switched to shelf-pack instead of bin-pack.

Also regenerate fixtures since they were stale.
A fresh copy of origin/master fails to run tests since it picks up spritezero 3.5+ which switched to shelf-pack instead of bin-pack.
@vdumont vdumont changed the title generateLayoutUnique option support Add --unique option to support spritezero's generateLayoutUnique. Jun 6, 2016
@vdumont vdumont changed the title Add --unique option to support spritezero's generateLayoutUnique. Add --unique option to support spritezero's generateLayoutUnique Jun 6, 2016
@vdumont
Copy link
Contributor Author

vdumont commented Jun 6, 2016

@bhousel This is the companion patch that adds --unique option to the CLI to leverage generateLayoutUnique (mapbox/spritezero@00dd132)


if (argv.retina) {
ratio = 2;
} else if (argv.ratio) {
ratio = parseFloat(argv.ratio);
} else if (argv.unique) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be an exclusive option to argv.ratio - else if will mean that if argv.ratio is defined, the argv.unique option will not have an effect, which is incorrect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@vdumont
Copy link
Contributor Author

vdumont commented Jun 10, 2016

@bhousel @tmcw Can you guys take a look when you have a minute?

@bhousel
Copy link
Contributor

bhousel commented Jun 10, 2016

Looks good @vdumont, thanks!

@bhousel bhousel merged commit 0af4c5c into mapbox:master Jun 10, 2016
@vdumont
Copy link
Contributor Author

vdumont commented Jun 10, 2016

@bhousel Awesome, thanks much!

@vdumont
Copy link
Contributor Author

vdumont commented Jun 10, 2016

@bhousel Sorry forgot one thing, any chance you can tag this for a new release?

@vdumont vdumont deleted the unique_option_support branch June 10, 2016 18:29
@bhousel
Copy link
Contributor

bhousel commented Jun 10, 2016

@vdumont yes, already done - it's v1.1.0

Need @tmcw to grant permission for me to npm publish it...

@vdumont
Copy link
Contributor Author

vdumont commented Jun 10, 2016

Awesome, thank you so much! 👍

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