Opened 5 years ago

Closed 5 years ago

#30764 closed Cleanup/optimization (wontfix)

Ignore node_modules by default for makemessages

Reported by: Anthony Ricaud Owned by: nobody
Component: Uncategorized Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I think most projects never want to translate content found in node_modules. This directory usually has a lot of files so it would be a performance improvement to ignore them by default.

 time ./manage.py makemessages -v3|wc -l
        1.49 real         1.20 user         0.27 sys
   15285 time ./manage.py makemessages -v3 --ignore=node_modules|wc -l 
        1.00 real         0.86 user         0.14 sys
     378

Change History (1)

comment:1 by Claude Paroz, 5 years ago

Resolution: wontfix
Status: newclosed

Sorry, but this is too specific to be included for everyone. You can override the default makemessages command for your project to hard-code this exclude.

Note: See TracTickets for help on using tickets.
Back to Top