meltmedia / generator-express-static

A yeoman generator for the express-static site builder.
MIT License
2 stars 0 forks source link

Updated app to include grunt watch command to utilize grunt-nodemon task... #13

Closed kyleaclark closed 10 years ago

kyleaclark commented 10 years ago

... as a file watcher to auto-reload app.js on file changes

Resolves Issue #10

kyleaclark commented 10 years ago

Steps to test:

  1. yo express-static choose handlebars
  2. Execute 'grunt watch' command in terminal
  3. Open localhost port in the browser 4 Add partialTest.html to views/partials folder and include test content e.g. "

    Hello test"

  4. Add handlebars partial include in views/index.html e.g. {{> partialTest}}
  5. Refresh browser to view partialTest content inside root html (app.js was auto-reloaded inside the terminal, so the developer does not have to restart 'node app.js' manually)