Closed tphdev closed 8 years ago
@t3patterson you are crushing it this weekend!
Here are a few minor comments. Your code works and is well written so don't be put off by the wall of text here. I just wanted to explain my reasoning behind each of these requests.
NODE_ENV=production
to the start script and I think that could cause problems with Heroku deployment. When we deploy to heroku it's expecting NODE_ENV=heroku
but uses that same npm start
command to boot up the server, so forcing NODE_ENV=production
will likely break Heroku deploys. Sorry that's my bad. I should have thought about that earlier. The change to npm run dev
looks perfect though.npm run eslint
to see any problems with your code.Server is running at ...
message after the first sass compilation, js compilation and server are booted up. I'd recommend using async (which is already a dependency) inside of the bin/build file. Each of the functions loader(...)
, sass(...)
and server(...)
have a callback argument so if you wrap them inside of async.parallel
you can be sure they are all complete and then display your message.This is awesome! Thank you so much for the help! If you have any questions about my comments let me know. I'm happy to clarify anything that's cryptic.
@alarner I think this is what you were after. Let me know if I'm making a PR to the right branch.