web pack and friends

42
Maciej Hryniszak Webpack and friends

Upload: matthias-hryniszak

Post on 16-Apr-2017

156 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Web pack and friends

Maciej HryniszakWebpack and friends

Page 2: Web pack and friends
Page 3: Web pack and friends
Page 4: Web pack and friends
Page 5: Web pack and friends
Page 6: Web pack and friends
Page 7: Web pack and friends
Page 8: Web pack and friends
Page 9: Web pack and friends
Page 10: Web pack and friends

mvn clean install

mvn archetype:generate

mvn release:prepare

mvn release:perform

mvn tomcat:run

mvn tomcat7:run

Page 11: Web pack and friends

mvn clean install

mvn archetype:generate

mvn release:prepare

mvn release:perform

mvn tomcat:run

mvn tomcat7:run

Page 12: Web pack and friends

VERBOS

Emvn clean install

mvn archetype:generate

mvn release:prepare

mvn release:perform

mvn tomcat:run

mvn tomcat7:run

Page 13: Web pack and friends
Page 14: Web pack and friends
Page 15: Web pack and friends
Page 16: Web pack and friends

Build tool -

check!

Page 17: Web pack and friends
Page 18: Web pack and friends

???

Page 19: Web pack and friends

Hello!

My name is Maciej Hryniszak

http://padcom13.blogspot.comhttp://github.com/padcom

https://pl.linkedin.com/in/padcom

Page 20: Web pack and friends
Page 21: Web pack and friends

JavaScript module ~ Java class

Page 22: Web pack and friends

Java class -> class

Page 23: Web pack and friends

JavaScript module -> value

Page 24: Web pack and friends
Page 25: Web pack and friends

Why should I care?

Page 26: Web pack and friends
Page 27: Web pack and friends

dom.jsdoT.jsdust.jsEJSHandlebars.jsHogan.jsICanHaz.jsJadeJsRenderMarkup.jsMicrotemplatingMustache.jsNumjucksPlates.jaPure.js

EcmaScript 6EcmaScript 7TypeScriptCoffeeScript

LessSass/SCSSStylusCSS-CrushMythReworkClayDtCSS

Page 28: Web pack and friends

dom.jsdoT.jsdust.jsEJSHandlebars.jsHogan.jsICanHaz.jsJadeJsRenderMarkup.jsMicrotemplatingMustache.jsNumjucksPlates.jaPure.js

EcmaScript 6EcmaScript 7TypeScriptCoffeeScript

LessSass/SCSSStylusCSS-CrushMythReworkClayDtCSS

FONTS

IMAGES

Audio & video

Page 29: Web pack and friends

Configuring Webpack

Page 30: Web pack and friends

and Friends?

Page 31: Web pack and friends

mvn clean

mvn install

mvn test

mvn javadoc:javadoc

mvn archetype:generate

mvn release:prepare / perform

mvn tomcat:run

rm -rf target

npm install

karma [args]

yuidoc -c <config>

yo <generator> [args]

git tag && npm publish

webpack-dev-server --hot --inline

Page 32: Web pack and friends

mvn clean

mvn install

mvn test

mvn javadoc:javadoc

mvn archetype:generate

mvn release:prepare / perform

mvn tomcat:run

rm -rf target

npm install

karma [args]

yuidoc -c <config>

yo <generator> [args]

git tag && npm publish

webpack-dev-server --hot --inline

Page 33: Web pack and friends

npm run clean

npm run install

npm test

npm run doc

yo <generator> [args]

npm run deploy

npm start

mvn clean

mvn install

mvn test

mvn javadoc:javadoc

mvn archetype:generate

mvn release:prepare / perform

mvn tomcat:run

Page 34: Web pack and friends

Webpack with frameworks

Page 35: Web pack and friends

https://github.com/AngularClass/angular2-webpack-starter

generator-angular-webpack-es6

Page 36: Web pack and friends

https://github.com/tulios/ember-webpack-example

https://medium.com/@tulios/using-ember-with-webpack-e03290b61dec

Page 37: Web pack and friends

https://github.com/tulios/ember-webpack-example

don’t use, stick with ember-cli

Page 38: Web pack and friends

webpack-react-redux-mocha-karma

react-webpackreact-webpack-redux

Page 39: Web pack and friends

Key takeaways

➔ Webpack is AWESOME!➔ Yo is your friend➔ npm run all your commands➔ Globally installed packages are evil

Page 40: Web pack and friends

References

https://blog.madewithlove.be/post/webpack-your-bags/ https://webpack.github.io https://github.com/padcom/generator-webpack-react-redux-mocha-karma

https://github.com/AngularClass/angular2-webpack-starter

https://medium.com/tulios/using-ember-with-webpack-e03290b61dec https://github.com/tulios/ember-webpack-loaders

Page 41: Web pack and friends

Q & A

Page 42: Web pack and friends

Thank you!