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

Uglify during build #531

Merged
merged 6 commits into from
Jan 16, 2018
Merged

Uglify during build #531

merged 6 commits into from
Jan 16, 2018

Conversation

jessetan
Copy link
Contributor

Adds an extra uglify task when running grunt build.
The symbol jQuery is left as-is so other code may use this identifier if needed.
IE6-8 compatibility is turned on just in case.

Fixes #527

package.json Outdated
@@ -12,6 +12,7 @@
"grunt-contrib-connect": "^1.0.2",
"grunt-contrib-copy": "~1.0.0",
"grunt-contrib-sass": "~1.0.0",
"grunt-contrib-uglify": "^3.3.0",
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use a Tilda to match most other deps? Not really sure on this though. We should come up with a better policy for versions. @agjohnson @ericholscher How does RTD handle this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think npm switched from using caret instead of tilde by default a while ago if you add a dependency using --save-dev.
Basically ^3.3.0 will upgrade to any 3.x.y but not to 4.0.0. ~3.3.0 will upgrade to any 3.3.y, but not to 3.4.y.
Since we're talking about semver, caret should be safe enough, but I'm fine with tilde if the extra safety is desired.

Copy link
Member

Choose a reason for hiding this comment

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

I am fine with whatever, it just would be nice to keep consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed it to tilde for consistency.

Copy link
Member

@Blendify Blendify left a comment

Choose a reason for hiding this comment

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

LGTM but think we should come back to making sure how we handle dependencies matches the rest of RTD.

@Blendify
Copy link
Member

Blendify commented Jan 3, 2018 via email

@davidfischer
Copy link
Contributor

This looks good to me.

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