LeaVerou/prism — pull request #277 by apfelbox (2014-06-17 12:30:08+00:00)
Title: Made components.js re-usable

Hi,

first up the list of changes:
* made `components.js` use a JSON-compatible structure
* remove the exclusion through bower

The background is that there are quite a lot of tools which use prism and provide an admin interface for the user to choose which extensions & languages the user wants to include.
They need the information from the `components.js` file, so that they can respect the order of plugins, know the names and know which plugins are available.

So they should be able to reuse the file. This is now quite easy by just stripping `var components = ` and `;` from it - the remaining part is valid JSON.