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

suggested improvements to gulpfile.js #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iavasquez
Copy link

Thank you for writing mean-machine. Read it and really found it useful. I used your gulpfile to create my own build workflow. In doing so, I noticed some issues / areas for improvement that I wanted to suggest to you. In order of appearance in the gulpfile:

  1. Use jshint-stylish lint reporter for better readability of jshint. You already had it in your dev-dependencies but weren't using it in the gulpfile.

  2. Split jshint tasks into separate server-side and client-side js tasks in order to use different options for error reporting ( node: true for server side js, browser: true for client side js)

  3. Nodemon task as written didn't work for me. I think the issue is that it was redundant to call the watch task from nodemon on events. Nodemon is already watching the file extensions specified and restarting every time there is an update. If you want nodemon to call tasks on restart, you can simply specify those in the "tasks" element of the options object.

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

1 participant