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

Build: Validate number of generated manifests #1241

Merged
merged 1 commit into from
May 9, 2014
Merged

Build: Validate number of generated manifests #1241

merged 1 commit into from
May 9, 2014

Conversation

jzaefferer
Copy link
Member

To prevent a pre-release with a missing manifest file in the future, I've added a bit of validation to check if there's one manifest for each source file. When running this on top of #1240, the task runs to the end - currently it correctly fails.

});
});

uiFiles = grunt.file.expand( "ui/*.js" ).length;
if ( totalManifests < uiFiles ) {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be if ( totalManifests !== uiFiles ) to be a proper check?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that makes more sense. Updated.

@scottgonzalez
Copy link
Member

Looks good.

@jzaefferer jzaefferer merged commit 5bbf276 into jquery:master May 9, 2014
@jzaefferer jzaefferer deleted the manifest-validation branch March 6, 2015 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants