Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automatisez votre build web avec Grunt

Automatisez votre build web avec Grunt

Vous utilisez probablement déjà un outil de build pour construire votre application serveur. Votre front-end web ne mérite-t-il pas lui aussi une automatisation de son processus de construction ?

La solution open-source Grunt répond à cette problématique. De la minification de Javascript au préprocessing CSS, en passant par l'analyse statique de code et l'exécution des tests, ce talk présente les possibilités offertes par cet outil et la richesse de son écosystème.

Démos :
- https://github.com/antoine-richard/introductory-examples-to-grunt/tree/master/demo-1
- https://github.com/antoine-richard/introductory-examples-to-grunt/tree/master/demo-2
- https://github.com/antoine-richard/angular-movie-workshop/tree/step-9

Antoine RICHARD

June 13, 2013
Tweet

More Decks by Antoine RICHARD

Other Decks in Programming

Transcript

  1. QUE RETOURNE CETTE FONCTION ? +PREMIER NIVEAU •Corps de texte

    DEUXIÈME NIVEAU •Corps de texte 3 function f() { var value = 2; return { a: value, b: 42, c: "Obi Wan Kenobi" }; }
  2. AUTOMATIC SEMICOLON INSERTION ! +PREMIER NIVEAU •Corps de texte DEUXIÈME

    NIVEAU •Corps de texte 4 function f() { var value = 2; return; { a: value, b: 42, c: "Obi Wan Kenobi" }; } Code non-accessible
  3. DEMO TIME 12 JSHint : goo.gl/qbz6m LESS + Watch :

    goo.gl/t2tRJ Build complet : goo.gl/hBX5u
  4. GRUNTJS.COM / PLUGINS 13 KARMA QUNIT COPY CLEAN WATCH LIVERELOAD

    COFFEE COMPASS COMPRESS SSH CONNECT CONCAT OVERSPRITE CSSLINT CSSMIN HANDLEBARS JADE JASMINE JSHINT JST LESS NODEUNIT REQUIREJS SASS UGLIFY HTML2JS USEMIN