Skip to content

Create gulp serve:debug task #1628

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

Closed
doc82 opened this issue Feb 11, 2016 · 18 comments
Closed

Create gulp serve:debug task #1628

doc82 opened this issue Feb 11, 2016 · 18 comments

Comments

@doc82
Copy link

doc82 commented Feb 11, 2016

Maybe I'm missing something, but after diving through the gulp file, I don't seem to see the same debug option provided by grunt.

Am I being a noob, or has this yet to be put in yet?

Thank you!

@javidrashid
Copy link
Contributor

Maybe this is a new issue, but I created the App with gulp as task runner and everything got created good, but when I run gulp serve it says

No gulpfile found

howevey there is gulpfile.babel.js

@Awk34
Copy link
Member

Awk34 commented Feb 11, 2016

@javidrashid please ask your question in either the Gitter.im room, Stack Overflow, or a different issue.

@doc82 You're correct, there is no gulp serve:debug.

@doc82
Copy link
Author

doc82 commented Feb 12, 2016

Actually @javidrashid brought up a bug as well - when you provision a new app with gulp, and if you have never installed gulp - you have to npm install -g gulp-cli to get it to work. Confirmed this on both my mac + pc. Unrelated to this though, I'll open a new issue.

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

@doc82 This is documented in the Readme.md, but it should say to install gulp-cli, not gulp globally. Feel free to open a PR for that as well.

@doc82
Copy link
Author

doc82 commented Feb 12, 2016

Roger roger @Awk34 Thanks for all the awesome work by the way - absolutely in love with this repo

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

@doc82 😀 👍

@javidrashid
Copy link
Contributor

@Awk34 here is the PR: #1630

Also whenever I clone this repo with grunt or gulp on PC or an Mac, I always get tthe

No data received

ERR_EMPTY_RESPONSE

in the browser . Console shows this

GET http://localhost:9000/ net::ERR_EMPTY_RESPONSE

I know this is not related to repo as such but more to the network settings but I cloned at two different locations(ISPS, VPN's) but never seem to get around this issue. Any thoughts?

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

@javidrashid what are your exact steps?

@javidrashid
Copy link
Contributor

I have the generator installed updated again today and here is what I select when it questions?

Babel
Jade,
ui-router
sass
BootStrap
UI Bootstrap
Mongoose
Facebook for authentication (so boilerplate authentication yes)
Gulp
Jasmine

is that what you are asking?

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

That, and anything else. Are you using gulp serve to run the server?

@javidrashid
Copy link
Contributor

Yes and here is what it looks like

Developer:app1 Javid$ gulp serve
[23:47:58] Failed to load external module babel-register
[23:47:58] Requiring external module babel-core/register
[23:48:23] Using gulpfile /private/var/www/Projects/RNDPR/fullStackApps/angularFullStackWithGulp/app1/gulpfile.babel.js
[23:48:23] Starting 'serve'...
[23:48:23] Starting 'clean:tmp'...
[23:48:23] Starting 'constant'...
[23:48:23] Finished 'clean:tmp' after 222 ms
[23:48:23] Finished 'constant' after 222 ms
[23:48:23] Starting 'lint:scripts'...
[23:48:23] Starting 'lint:scripts:client'...
[23:48:23] Starting 'lint:scripts:server'...
[23:48:23] Starting 'inject'...
[23:48:23] Starting 'inject:js'...
[23:48:25] Starting 'inject:css'...
[23:48:25] Starting 'inject:scss'...
[23:48:25] Starting 'jade'...
[23:48:27] Finished 'jade' after 2.81 s
[23:48:28] gulp-inject Nothing to inject into index.html.
[23:48:28] gulp-inject 5 files into app.scss.
[23:48:28] Finished 'inject:scss' after 3.54 s
[23:48:28] Finished 'inject:css' after 3.6 s
[23:48:28] gulp-inject 24 files into index.html.
[23:48:28] Finished 'inject:js' after 4.75 s
[23:48:28] Finished 'inject' after 4.75 s

server/config/express.js
line 43 col 16 A constructor name should start with an uppercase letter.

⚠ 1 warning

[23:48:30] Finished 'lint:scripts:server' after 6.62 s
[23:48:30] Finished 'lint:scripts:client' after 6.78 s
[23:48:30] Finished 'lint:scripts' after 6.78 s
[23:48:30] Starting 'wiredep:client'...
[23:48:30] Finished 'wiredep:client' after 205 ms
[23:48:30] Starting 'transpile:client'...
[23:48:30] Starting 'styles'...
[23:48:32] Finished 'styles' after 1.79 s
[23:48:32] Finished 'transpile:client' after 2.12 s
[23:48:32] Starting 'start:server'...
[23:48:32] Finished 'start:server' after 32 ms
[23:48:32] Starting 'start:client'...
[nodemon] 1.8.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: /private/var/www/Projects/RNDPR/fullStackApps/angularFullStackWithGulp/app1/server/*/
[nodemon] starting node server
Express server listening on 9000, in development mode
finished populating users

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

If you have just generated an app, and run gulp serve, it should open a browser tab on your computer to the proper location.

@javidrashid
Copy link
Contributor

Yes it opens a browser tab but nothing shows up on the tag. Browser displays:

No data received

ERR_EMPTY_RESPONSE

Unable to load the webpage because the server sent no data.

@javidrashid
Copy link
Contributor

and if I do
curl http://localhost:9000

I get this

curl: (52) Empty reply from server

I hope thats clear to you.

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

@javidrashid think you can chat in Gitter.im? That would be easier, and I don't want to hijack this issue with your unrelated problem.

@javidrashid
Copy link
Contributor

I understand but I don't think this is unrelated problem.

@Awk34
Copy link
Member

Awk34 commented Feb 12, 2016

This GitHub issue refers to how there's no gulp serve:debug like there is with Grunt.

@javidrashid
Copy link
Contributor

Ohhh thats true, I thought you meant the problem is not related to this generator.

@Awk34 Awk34 changed the title no debug with gulp option Create gulp serve:debug task Mar 10, 2016
@Awk34 Awk34 closed this as completed May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants