Guest User

Untitled

a guest
Nov 19th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. module.exports = function (grunt) {
  2. grunt.initConfig({
  3. watch: {
  4. dev: {
  5. files: ["*.html"]
  6. }
  7. },
  8.  
  9. connect: {
  10. local: {
  11. options: {
  12. keepalive: true,
  13. hostname: 'localhost',
  14. port: 9100
  15. }
  16. }
  17. },
  18.  
  19. open: {
  20. dev: {
  21. path: 'http://localhost:9100/',
  22. app: 'Google Chrome'
  23. }
  24. }
  25. });
  26.  
  27. grunt.loadNpmTasks('grunt-contrib-watch');
  28. grunt.loadNpmTasks('grunt-contrib-connect');
  29. grunt.loadNpmTasks('grunt-contrib-livereload');
  30. grunt.loadNpmTasks('grunt-open');
  31.  
  32. grunt.registerTask('default', ['connect:local', 'open:dev', 'watch']);
  33. };
  34.  
  35. {
  36. "name": "demo",
  37. "version": "1.0.0",
  38. "description": "",
  39. "main": "index.js",
  40. "scripts": {
  41. "test": "echo "Error: no test specified" && exit 1"
  42. },
  43. "author": "",
  44. "license": "ISC",
  45. "devDependencies": {
  46. "grunt": "^1.0.1",
  47. "grunt-contrib": "^0.11.0",
  48. "grunt-contrib-connect": "^1.0.2",
  49. "grunt-contrib-cssmin": "^2.2.1",
  50. "grunt-contrib-livereload": "^0.1.2",
  51. "grunt-contrib-watch": "^1.0.0",
  52. "grunt-open": "^0.2.3"
  53. }
  54. }
Add Comment
Please, Sign In to add comment