-
Notifications
You must be signed in to change notification settings - Fork 579
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
feat: Making include accept an array of globs, like source does #227
Conversation
__tests__/extend.test.js
Outdated
expect(StyleDictionaryExtended.properties).toEqual(helpers.fileToJSON(__dirname + "/__properties/paddings.json")); | ||
}); | ||
|
||
it('should override existing properties include is given', () => { |
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.
Not my native language but is this description correct?
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.
Good catch, looks like it is missing 'if' in between 'properties' and 'include'.
__tests__/extend.test.js
Outdated
expect( | ||
StyleDictionary.extend.bind(null, {include: ['foo']}) | ||
).toThrow("Cannot find module 'foo'"); | ||
it('should not update properties if sourche glob paths dont resolve to anything', () => { |
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.
typos in sourche
and dont
LGTM |
* feat: add registerFilter method (#233) * doc: remove registerTemplate from examples (#232) * feat: add node example (#228) * feat: making include accept an array of globs, like source does (#227) * fix: the naming for Sass/Scss in documentation, tests, formats, fixes #213 (#222) * fix: handle showFileHeader option in androids formats templates, fixes #237 (#243)
Issue #, if available: #215
Description of changes: Changing the behavior of
include
attribute on the config to match the behavior ofsource
. Nowinclude
accepts an array of path globs, instead of just file paths. This change should be a superset change, as normal file paths still function the same.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.