/*
 * Travail d'Initiative Personnelle Encadr
 * https://github.com/LeoColomb/TIPE
 * Copyright (c) 2014 Lo Colombaro
 * Licensed under MIT License
 */
module.exports = function (grunt) {
  'use strict';
  // Project configuration
  grunt.initConfig({
    latex: {
      pdf: {
        src: 'TIPE.tex',
        options: {
          outputDirectory: 'dist/',
          jobname: 'TIPE'
        }
      },
      bib: {
        src: 'dist/TIPE.aux',
        options: {
          engine: 'bibtex',
          interaction: false
        }
      }
    },
    connect: {
      server: {
        options: {
          hostname: 'localhost',
        }
      }
    },
    watch: {
      latex: {
        files: '**/*.tex',
        tasks: ['latex:pdf', 'latex:bib', 'latex:pdf']
      },
      bibtex: {
        files: '**/*.bib',
        tasks: ['latex:bib', 'latex:pdf']
      },
      livereload: {
        options: {
          livereload: true
        },
        files: ['dist/TIPE.pdf'],
      },
    }
  });

  // These plugins provide necessary tasks
  grunt.loadNpmTasks('grunt-latex');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-connect');

  // Default task
  grunt.registerTask('default', ['connect', 'watch']);
};

@@ -517,32 +517,179 @@
 false%0A        %7D%0A
+      %7D,%0A      glos: %7B%0A        src: 'dist/TIPE.aux',%0A        options: %7B%0A          engine: 'makeglossaries',%0A          interaction: false%0A        %7D%0A
       %7D%0A    %7D,%0A 
@@ -876,25 +876,8 @@
 atex
-:pdf', 'latex:bib
 ', '

Make glossaries