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 icons option to build script #794

Merged
merged 1 commit into from
Jun 12, 2017
Merged

Add icons option to build script #794

merged 1 commit into from
Jun 12, 2017

Conversation

samanpwbb
Copy link
Contributor

@samanpwbb samanpwbb commented Jun 10, 2017

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.

@samanpwbb samanpwbb force-pushed the control-svgs branch 3 times, most recently from 6e4e2fd to 9b772bf Compare June 10, 2017 23:07
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
@samanpwbb samanpwbb changed the title Add svgs option to build script Add icons option to build script Jun 11, 2017
Copy link
Contributor

@davidtheclark davidtheclark left a 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'));
Copy link
Contributor

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!

Copy link
Contributor Author

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.

@samanpwbb samanpwbb merged commit da2558b into dev-pages Jun 12, 2017
@samanpwbb samanpwbb deleted the control-svgs branch June 12, 2017 13:53
davidtheclark pushed a commit that referenced this pull request Jul 2, 2017
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
samanpwbb added a commit that referenced this pull request Jul 5, 2017
* 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)
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.

2 participants