-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add a version check gulp task to default #568
Conversation
d4d7df0
to
5f08af2
Compare
5f08af2
to
5b757aa
Compare
@@ -225,10 +225,25 @@ gulp.task("replace-js-strings", ["webpack", "minify-js"], function () { | |||
.pipe(gulp.dest(dirs.dist)); | |||
}); | |||
|
|||
gulp.task("version-check", function () { | |||
var shrinkwrapVersion = require("./npm-shrinkwrap")["node-version"]; | |||
var packageVersion = require("./package").engines.node; |
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.
The package.json is already required here:
https://github.com/mesosphere/marathon-ui/blob/feature/version-check/gulpfile.js#L17
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.
packageNodeVersion
?
Great idea! Really helpful. |
f2d5ca7
to
783fb9d
Compare
⚡ |
Add a version check gulp task to default
@philipnrmn and I added a version check to gulp to prevent version divergence. This ensures that npm-shrinkwrap does not get corrupted by different versions of node.