Gatsby: Add API to allow plugins to add/modify CLI commands

Created on 28 Apr 2016  路  4Comments  路  Source: gatsbyjs/gatsby

The process for creating a new post (e.g in blog-starter) in gatsby is a bit cumbersome - Creating a folder with unique name, creating a markup file with specific format, etc.

Writing a post generator would be trivial, but I wonder, is there something in gatsby that already does it?

stale?

Most helpful comment

Just saw this on Twitter https://www.npmjs.com/package/microgen

All 4 comments

There's not. I'm currently designing a revamp of Gatsby's APIs + a plugin system that'd let you add additional commands to Gatsby's CLI tool e.g. gatsby create post or something like that to setup a default new post. You could then distribute that tool as a plugin on NPM.

In the meantime, I don't know of any open sourced post generator tool that you can install. If you're looking for some sample code, @pamo built one for her blog at https://github.com/pamo/pamo.github.io/blob/development/new_post.js

Just saw this on Twitter https://www.npmjs.com/package/microgen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benstr picture benstr  路  3Comments

signalwerk picture signalwerk  路  3Comments

magicly picture magicly  路  3Comments

kalinchernev picture kalinchernev  路  3Comments

dustinhorton picture dustinhorton  路  3Comments