Skip to content
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

Closed
wants to merge 10 commits into from
Closed

Add "sculpin new" command. #292

wants to merge 10 commits into from

Conversation

opdavies
Copy link

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 Filesystem class 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.yml and source/index.md with minimal information.

Add a new command called "sculpin new" to quickly create the base
directories and files needed for a new Sculpin site.
@opdavies opdavies changed the title Add sculpin:new command. Add "sculpin new" command. Nov 23, 2015
@TomasVotruba
Copy link

Like this!

What needs to be done here?

@opdavies
Copy link
Author

opdavies commented Mar 6, 2016

I've cleaned up some of the things that I wanted to from the initial version.

The main remaining things for me are:

  • What do we want the default structure and content to be when generating a new site?
  • How interactive do we want this to be? We could use the Console component to prompt the user to enter which content types they want, what they want the site title to be etc, but it's a case of this is needed.

These are probably questions for @simensen to answer.

@beryllium
Copy link
Member

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
source/blog.html
source/blog/categories.html
source/blog/categories/category.html
source/blog/tags.html
source/blog/tags/tag.html
source/_posts/initial-post.md
source/_views/default.html
source/_views/post.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.

@opdavies
Copy link
Author

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.

@simensen
Copy link
Member

@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.

@opdavies
Copy link
Author

@simensen Awesome. I'll take a look at that. :)

@simensen
Copy link
Member

@opdavies sure thing. the command was called init and it was pretty simple:

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.

@Xerkus
Copy link
Member

Xerkus commented Feb 27, 2017

Common way to provide project setup functionality currently is via composer create-project
I am going to close this PR as it is no longer relevant.

Should you want to resume this feature, https://github.com/sculpin/sculpin-blog-skeleton would be the correct place to do so.

@Xerkus Xerkus closed this Feb 27, 2017
@simensen
Copy link
Member

@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.

@Xerkus
Copy link
Member

Xerkus commented Feb 27, 2017

Created issue to track this topic at sculpin/sculpin-blog-skeleton#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants