If you need to create MXP files to easily distribute your components and extensions, we have a document on the MXI file format (which is used to create MXP files).
You can find the document here.