-
Notifications
You must be signed in to change notification settings - Fork 27
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 icons option to build script #794
Conversation
6e4e2fd
to
9b772bf
Compare
options.icons is an array of icon names. If this option is used, only icon names that match options.icons will be included in Assembly. Closes #782
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
return expect(buildJs({ | ||
outfile: tmp, | ||
icons: ['airplane', 'pizza'] | ||
})).rejects.toEqual(Error('an icon matching pizza does not exist')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know about this rejects
thing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, I didn't either. Had trouble testing a rejecting promise case, so ended up looking into it a little and came across this. It's new as of Jest 0.20.0.
options.icons is an array of icon names. If this option is used, only icon names that match options.icons will be included in Assembly. Closes #782
* adjust icon sizing, add icon-wrapper class, closes #763 * rename icon-wrapper to icon-inliner, other small fixes * force txt-bold to be 1em line height, fixes line height offsets, closes #775 * rework size scale, closes #749 * Add limiter class, consistify scale even more * only single-declaration utility classes should have important (#785) * New copy of Open Sans (#786) Reverts prior line-height change to bold weight. Closes #775. * reset abbr text-decoration, fixes txt-abbr rule (#788) * Weight loss program (#787) See changes in changelog.md * Lighten gray-faint and add a line of caution to color documentation * Reintroduce darken5 and lighten5 for backgrounds only * Add icons option to build script (#794) options.icons is an array of icon names. If this option is used, only icon names that match options.icons will be included in Assembly. Closes #782 * adds color and hover state to prose links (#798) * Make uglify-js a real dependency Closes #800. * add unprose class, closes #793 (#795) * add select--xs class to match btn--xs (#811) * fix spin animation utility (#812) closes #790 * prepare v0.14.0 (#813)
options.icons is an array of icon names. If this option is used, only icon names that match options.icons will be included in Assembly. Closes #782
In order to properly test changes, I had to upgrade Jest (jestjs/jest#3068).
@davidtheclark for review.