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

Grunt express server isn't necessarily the most accurate name #77

Open
drawveloper opened this issue Nov 21, 2014 · 9 comments
Open

Grunt express server isn't necessarily the most accurate name #77

drawveloper opened this issue Nov 21, 2014 · 9 comments

Comments

@drawveloper
Copy link
Collaborator

I know this is a minor nit-pick, but any node server, no, actually, any webserver that can be spawned and prints to stdout could be used with this task.

What more generic names would you guys suggest?

I guess that we could even plead to becoming something like a grunt-contrib-server because this is the only task that works correctly with grunt-contrib-watch.

Ideas? @ericclemmons @paulpflug @justcfx2u

@ericclemmons
Copy link
Owner

Hah, that's actually true and I never realized it :)

I mean, you could spawn python -m SimpleHTTPServer, php -S or similar.

The core feature is spawning an instance, watching for output, and restarting upon changes.

I suppose it could fork/rename to grunt-watch-server or grunt-server-restart or whatever.

@drawveloper
Copy link
Collaborator Author

Yes, those are neat names but what about the contrib folks? They don't any de-facto solution for running a node server in development.

@ericclemmons
Copy link
Owner

Oh, do they want this project? I thought they had to sanction it :)

@ericclemmons
Copy link
Owner

I can ping 'em and get el ball-o rollin'!

@drawveloper
Copy link
Collaborator Author

I don't know if they want it, but I think they should :)

I think it's very unnerving not to have a solid default task for running a server with grunt. Most generators and examples use grunt-develop or grunt-nodemon, both which don't play well with watch.

@drawveloper
Copy link
Collaborator Author

@ericclemmons how would we go about pinging them?

@ericclemmons
Copy link
Owner

How about this...

Howdy, @cowboy @geddski @sindresorhus! What do you guys think about forking/adopting this project into GruntJS as grunt-contrib-serve or similar?

Per this thread's 1st comment, today this project works well with grunt-contrib-watch to spawn connect/express servers as well as their coffeescript equivalent.

However, with some minor tweaks & doc changes, it can support a wider alternative of servers, such as python -m SimpleHTTPServer or php -S localhost:8000.

(All this plugin really does is spawn a process, watch for stdout, and continue onto the next task)

Let me know. Thanks!

@sindresorhus
Copy link

What do you guys think about forking/adopting this project into GruntJS as grunt-contrib-serve or similar?

We're not accepting new entries as the current ones are already more than we can handle.

The grunt-contrib prefix is reserved for grunt tasks in the gruntjs org.

@drawveloper
Copy link
Collaborator Author

Oh, I'm sorry, I didn't realize you guys would need to become responsible for support.
We would still be available as maintainers, naturally, if you would have us :)

Anyway, then, @ericclemmons, I think we should continue with a rename in order to make this more... findable.

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

No branches or pull requests

3 participants