-
-
Notifications
You must be signed in to change notification settings - Fork 15
Rewrite #21
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
Rewrite #21
Conversation
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 sure it's a good idea to have postcss as a dep for a non postcss project... (I had in mind that other stuff like rework might use it).
If that's too postcss related why not merging this with postcss-calc directly?
Also it seems you don't cover all previous tests with the new tests so regressions are possible. Any reason to not keep previous tests in addition to new ones?
.babelrc
Outdated
@@ -0,0 +1,12 @@ | |||
{ | |||
"presets": ["es2015-loose", "stage-0"], |
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.
why not "just" babel-preset-latest?
@@ -0,0 +1,86 @@ | |||
--- |
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.
Any preset maybe?
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.
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.
Why not
package.json
Outdated
"files": [ | ||
"index.js" | ||
"dist", | ||
"LICENSE" |
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.
LICENSE is unecessary and automatic like README
@MoOx it's not dependent upon postcss. It might just be some leftover copypasta from the postcss-calc rewrite. I'll fix it when I get home from work. |
#22 supersedes this pull request. |
This rewrite is done with the intent of fixing inconsistent behaviour between reduce-css-calc and the W3C specification, as well as enabling better optimisation of
calc()
expressions. The rewrite is done from the ground-up in ES6 while still staying compatible with the existing API. It reducescalc()
functions by transforming ASTs generated from the expressions.The rewrite also solves the following issues: