phylum-dev / community-extensions

A collection of community extensions for the Phylum CLI
https://www.phylum.io/
GNU General Public License v3.0
1 stars 1 forks source link

All project data export #37

Closed louislang closed 7 months ago

louislang commented 7 months ago

Adds an extension that iterates through all of a users projects. The project data is fetched for each project and the resulting JSON is stored such that the project key is the project ID and the value is the project JSON. This is saved to all-projects.json on disk.

Closes #36

louislang commented 7 months ago

Is the output meant to be pretty formatted (human readable) or left as a single long json line (machine readable)?

The intent was to make it machine readable. The request was to allow the data to be dumped and imported into another system. I'm not 100% sure if we need all of the data, so hoping this serves as a first pass and we can trim down the data based on feedback.

louislang commented 7 months ago

The functionality was confirmed with local testing and works as expected. The new comments are mostly the result of passing the main.ts file through a formatter. The suggestions do not need to hold this PR up if time is of the essence.

Went ahead and added those changes!