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

Add a version check gulp task to default #568

Merged
merged 2 commits into from
Jan 21, 2016
Merged

Conversation

Poltergeist
Copy link
Contributor

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

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

packageNodeVersion ?

@aldipower
Copy link
Contributor

Great idea! Really helpful.

@aldipower
Copy link
Contributor

aldipower added a commit that referenced this pull request Jan 21, 2016
Add a version check gulp task to default
@aldipower aldipower merged commit d692bf4 into master Jan 21, 2016
@aldipower aldipower deleted the feature/version-check branch January 21, 2016 10:27
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