+ All Categories
Home > Technology > Devoxx France : GruntJs In Action

Devoxx France : GruntJs In Action

Date post: 07-Apr-2017
Category:
Upload: xebia-france
View: 214 times
Download: 4 times
Share this document with a friend
12
Devoxx France 2016 GruntJs In Action Sarah Buisson 1
Transcript
Page 1: Devoxx France : GruntJs In Action

#DevoxxFR

Devoxx France 2016GruntJs In Action

Sarah Buisson

1

Page 2: Devoxx France : GruntJs In Action

#DevoxxFR

Plan

2

● Introduction

● Grunt & Maven

● Live Coding– Plugin de base et hello World– Bower: Gestions des dépendances– Sass– Jasmine & CasperJs : Tests automatisés du front– Browserify :

● Modularisation ● Transpilation

Page 3: Devoxx France : GruntJs In Action

#DevoxxFR

Des nouvelles duFront-End

3

Injection des dépendances

Effets de bordsCompatibilité inter-navigateur

Css monolithique

Compatibilité inter-device

Versionning des dépendances

Régréssions

Page 4: Devoxx France : GruntJs In Action

#DevoxxFR

Des nouvelles duFront-End

4

Injection des dépendances

Effets de bordsCompatibilité inter-navigateur

Css monolithique

Compatibilité inter-device

Versionning des dépendances

Régréssions

Page 5: Devoxx France : GruntJs In Action

#DevoxxFR

Build & Front-End

5

Complexification du front-end.→ Necéssité d'un outil de build

Avantages & Inconvénients de Grunt

Page 6: Devoxx France : GruntJs In Action

#DevoxxFR

Maven & Grunt

6

Page 7: Devoxx France : GruntJs In Action

#DevoxxFR

7

Step 1 : <goal>create-resources</goal>

Initialise

Page 8: Devoxx France : GruntJs In Action

#DevoxxFR

8

Step 2 : <goal>npm</goal>

Installe lesdépendancesdu build

Page 9: Devoxx France : GruntJs In Action

#DevoxxFR

Step 3 : <goal>grunt</goal>

Task:MavenPrepare /src/main/webapp/static /target-grunt

Task:[…] /target-grunt /target-grunt/dist

Task:mavenDist /target-grunt/dist /target/main/static

Page 10: Devoxx France : GruntJs In Action

#DevoxxFR

Step 3 : <goal>grunt</goal>

Task:MavenPrepare /src/main/webapp/static /target-grunt

Task:[…] /target-grunt /target-grunt/dist

Task:mavenDist /target-grunt/dist /target/main/static

Page 11: Devoxx France : GruntJs In Action

#DevoxxFR

Live Coding

11

– Plugin de base et hello World– Bower: Gestions des dépendances– Sass– Jasmine & CasperJs : Tests automatisés du front– Browserify :

● Modularisation ● Transpilation

Page 12: Devoxx France : GruntJs In Action

#DevoxxFR

Merci de votreattention

12

BackStopJS


Recommended