linkedin / css-blocks

High performance, maintainable stylesheets.
http://css-blocks.com/
BSD 2-Clause "Simplified" License
6.33k stars 152 forks source link

feat(eyeglass): Adds new package that enables simple Eyeglass support. #402

Closed abritinthebay closed 4 years ago

abritinthebay commented 4 years ago

Fixes #398

Should be a cleaner TS implementation than my previous PR (thanks for the feedback and help using Namespaces as types). I'm using Sinon spies in the tests, and because of that found I didn't need to use the module importer mock you mentioned (as rather than testing all of css-blocks in the unit tests I'm just testing what this package takes in and puts out, as well as that the created functions are called).

Code test coverage is 100%, which is nice.

abritinthebay commented 4 years ago

Updated with those couple of small changes 😄