Closed imathis closed 12 years ago
Good thoughts Brandon. I added a post install message to the gem about this last night. I like the idea of having config.ru generate a nicer message. Shouldn't be too hard to fix..
So I've added a Gemfile to generated Serve projects which should help with this, too:
https://github.com/jlong/serve/blob/master/lib/serve/templates/Gemfile
So is this resolved now to your satisfaction @imathis?
@ntalbott that file doesn't seem to exist anymore. At least not in that location.
I like it. The post create message is a nice touch: https://github.com/jlong/serve/blob/master/lib/serve/project.rb#L132
As I understand it though, Serve still requires Compass and Sass. Even if you remove them from the Gemfile, you still must have them installed in order to use Serve. It should be in the project Gemfile, but it if my assumption is correct, it seems like it should also be a dependency of Serve.
I'll close this issue, and leave it up to you to decide what whether to create an issue about adding Compass/Sass as a dependency.
Serve doesn't require Sass or Compass. The serve create
command bakes this functionality in, but it's not a requirement.
Serve's
create
command generates a project example which relies on Sass and Compass. I set up a new project, installed Serve, ranserve create .
and thenserve
and it complained that it needed Sass (then Compass later). It seems to me that either Sass and Compass should be included as dependencies of Serve, or thecreate
command should output a little message saying "Serve has generated a basic project for you in #[directory}. Make sure you have 'compass' gem or [take whatever steps necessary to remove Compass]"I'm not sure what is best, but
/project/config.ru:16:in require': no such file to load -- sass (LoadError)
doesn't make for a very nice first run experience.