User Tools

Site Tools


wwwgjs:automating_our_workflow

This is an old revision of the document!


→ grunt watches

→ grunt contrib-watch (quand y'a contrib devant un plugin → grunt team)

<npm install grunt-contrib-watch –save-dev

→ Bonne habitude : aller dans le get started du plugin et just pécho le code associé.

(...)
  watch:{
    options: {
      spawn: false,
    },
    script: {
      files: ['builds/development/**/*.html',
      'components/scripts/**/*.html',
      'components/sass/**/*.scss'], // les fichiers a surveiller
      tasks: ['concat', 'sass'], // les tâches à lancer
    }
  },
(...)
grunt loadNpmTask('grunt-contrib-watch');
(...)
grunt.registerTask('default', ['concat', 'sass', 'watch']
wwwgjs/automating_our_workflow.1459243665.txt.gz · Last modified: 2016/03/29 11:27 by leo