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

Cast js-defined variables to string #84

Merged
merged 1 commit into from Sep 26, 2018

Conversation

shonie
Copy link
Contributor

@shonie shonie commented Sep 10, 2018

Fix #83

Cast js-defined variables to string

@MadLittleMods MadLittleMods changed the title casting js-defined variables to string Cast js-defined variables to string Sep 16, 2018
Copy link
Owner

@MadLittleMods MadLittleMods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @shonie!

Some small nits

test/test.js Outdated
'null-value': null,
'undefined-value': undefined,
'object-value-passed-by-mistake': {}
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a Boolean(true/false)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, done in shonie@2c651e8f3df1b835aa023375d74a2306c9bfef96

test/test.js Outdated
@@ -22,6 +22,14 @@ var MOCK_JS_VARIABLES = {
'js-defined-no-prefix': '#ff0000'
};

var INVALID_JS_VARIABLES = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps rename to NON_STRING_VARIABLES

Copy link
Contributor Author

@shonie shonie Sep 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree too. It is in shonie@2c651e8f3df1b835aa023375d74a2306c9bfef96 too.

Can i squash commits now?

Thank you for review!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash welcome 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@MadLittleMods MadLittleMods merged commit 60d16ca into MadLittleMods:master Sep 26, 2018
MadLittleMods added a commit that referenced this pull request Sep 26, 2018
@MadLittleMods
Copy link
Owner

Published in postcss-css-variables@0.10.0 🚀

Thanks @shonie ❤️

@shonie
Copy link
Contributor Author

shonie commented Oct 3, 2018

You welcome, @MadLittleMods! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants