Skip to content

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

Closed
wants to merge 7 commits into from
Closed

Rewrite #21

wants to merge 7 commits into from

Conversation

andyjansson
Copy link
Contributor

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 reduces calc() functions by transforming ASTs generated from the expressions.

The rewrite also solves the following issues:

Copy link
Owner

@MoOx MoOx left a 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"],
Copy link
Owner

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 @@
---
Copy link
Owner

Choose a reason for hiding this comment

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

Any preset maybe?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Owner

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"
Copy link
Owner

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

@andyjansson
Copy link
Contributor Author

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

@ben-eb ben-eb mentioned this pull request May 7, 2017
@ben-eb
Copy link
Collaborator

ben-eb commented May 7, 2017

#22 supersedes this pull request.

@ben-eb ben-eb closed this May 7, 2017
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