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

Remove build/modules/ at beginning of grunt and grunt test #980

Merged
merged 1 commit into from
Jan 28, 2014

Conversation

benjamn
Copy link
Contributor

@benjamn benjamn commented Jan 27, 2014

Little-known fact: instead of writing copies of compiled module files to build/modules/, the bin/jsx-internal script actually just makes hard links to the master versions of files in the .module-cache/, so re-populating build/modules/ is very inexpensive.

Closes #856.

@@ -42,6 +42,10 @@ module.exports = function(grunt) {

grunt.registerTask('download-previous-version', require('./grunt/tasks/download-previous-version.js'));

grunt.registerTask('delete-build-modules', function() {
grunt.file.delete('build/modules');
Copy link
Member

Choose a reason for hiding this comment

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

grunt.file.exists('build/modules') &&

Little-known fact: instead of writing copies of compiled module files to
build/modules/, the bin/jsx-internal script actually just makes hard links
to the master versions of files in the .module-cache/, so re-populating
build/modules/ is very inexpensive.

Closes facebook#856.
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.

Only run tests built from files that exist in src/
2 participants