New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "sculpin new" command. #292
Conversation
Add a new command called "sculpin new" to quickly create the base directories and files needed for a new Sculpin site.
|
Like this! What needs to be done here? |
|
I've cleaned up some of the things that I wanted to from the initial version. The main remaining things for me are:
These are probably questions for @simensen to answer. |
|
I think this would be a great feature to have in Sculpin. A while ago I started working on a similar command (which I called "init"), but this PR is further along than my attempt. As a sculpin user with several sites, and a tendency to want to quickly spin up simple sites, I would like to see the following functionality put in place by the "new" command (but the visual stylings of it can be completely spartan): source/index.html That, to me, is a solid sampling of the basic functionality of a Sculpin blog. It's OK (to me) if it looks like 1996's Yahoo or 1991's first web page on first run. Themes or Templates can come along later as an additional feature. Also, if I decide I want to use it as a site or a landing page or something other than a blog, it's easy to strip out the bits I wouldn't want. |
|
I wondered about using https://github.com/sculpin/sculpin-blog-skeleton as the starting point. I tend to start with a blank site and add the files I need (hence the minimal approach at https://github.com/opdavies/sculpin-minimal), but I can see how this may not suit everyone. I guess that it's a question for @simensen to make, and I'm happy to implement it. |
|
@beryllium @opdavies very old versions of sculpin had the concept of generating a skeleton. it shipped two two skeletons stored within the package itself. you can get an idea here: if you want to implement something along these lines (shipping a skeleton) i'm all for it. |
|
@simensen Awesome. I'll take a look at that. :) |
|
@opdavies sure thing. the command was called I can't remember why it was removed. Might just be that I decided to try and ship skeleton repositories instead. And I also wanted to focus on Embedded Composer. |
|
Common way to provide project setup functionality currently is via Should you want to resume this feature, https://github.com/sculpin/sculpin-blog-skeleton would be the correct place to do so. |
|
@opdavies If we pick this up again, I'd be happy to consider it. In the meantime, we're trying to clean up the repository so that we can get a better idea where things stand WRT actionable issues & PR's. |
|
Created issue to track this topic at sculpin/sculpin-blog-skeleton#47 |
I've created this as a proof of concept, to quickly create the base directories and files needed for a new Sculpin site using a "sculpin new" command.
I wasn't sure if the
Filesystemclass was already available or being injected in automatically. If so, I'd be happy to refactor the code to incorporate this.I also wasn't sure how much to create by default. At the moment I've just added
app/config/sculpin_site.ymlandsource/index.mdwith minimal information.