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

feat: Making include accept an array of globs, like source does #227

Merged
merged 2 commits into from
Jan 29, 2019

Conversation

dbanksdesign
Copy link
Member

Issue #, if available: #215

Description of changes: Changing the behavior of include attribute on the config to match the behavior of source. Now include 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.

expect(StyleDictionaryExtended.properties).toEqual(helpers.fileToJSON(__dirname + "/__properties/paddings.json"));
});

it('should override existing properties include is given', () => {
Copy link
Contributor

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?

Copy link
Member Author

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'.

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', () => {
Copy link
Contributor

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

@chazzmoney
Copy link
Collaborator

LGTM

@chazzmoney chazzmoney merged commit 41c9f27 into develop Jan 29, 2019
@dbanksdesign dbanksdesign deleted the feat/include-globs branch January 29, 2019 20:57
dbanksdesign added a commit that referenced this pull request Feb 5, 2019
* 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)
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