Created "ghost:theme [name]" command and improved README.md file #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Per my main proposal on this PR for the Ghost-Cli and per all the feedback received, the first step for me was to get familiar with your generator for Yeoman, which I feel like we can keep maintaining it so users have 2 ways to create/generate stuff for Ghost: through Yeomain (this generator) and through Ghost-Cli (which is going to call this generator somehow, still working on this portion).
Anyway, back to the point, here is my proposal to create a very basic scaffolding for a Ghost theme from scratch, let me know what do you think about it :)
To test it yourself, use
npm/yarn link
command from the inside of this project folder, update the dependencies withnpm install
oryarn
command, and later just runyo ghost:theme [your_new_themes_name]
.The next step is to actually move everything to support ES6 and work with the latest practices/standards/version of Yeomain (per the tutorials I followed when I was doing a generator from scratch the code look a little bit different).
Later once I get this done and also implemented on Ghost-Cli, my goal is to create a command like
yo ghost:theme-export [src_folder] [dest_filename]
that basically performsnpm run build
(this will require a minor improvement on the skeleton theme) script in your theme to compile the assets and later compress the theme folder into a zip file so you can share your theme with anyone else.What do you think?