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

Yeoman で gulp の環境を さらっと作る

Matsuo (TAM)
September 25, 2015

Yeoman で gulp の環境を さらっと作る

2015.09.26
関西フロントエンドUG
いまどきのフロントエンド環境構築
http://kfug.connpass.com/event/17849/

Matsuo (TAM)

September 25, 2015
Tweet

More Decks by Matsuo (TAM)

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ • ·͓ͭ ͻΖ͠ (TAM inc.) • PHP / JavaScript

    / Tech Direction • PHPΧϯϑΝϨϯεؔ੢ ελοϑ • CoffeeScript ޷͖ͩͬͨͷͰ
 ͍·࿏಄ʹ໎͍ͬͯΔ
  2. Yeoman • ϑϩϯτΤϯυͷ։ൃ؀ڥͷ
 φΠεͳ਽ܗΛ४උͯ͘͠ΕΔπʔϧ • ίϚϯυ1ൃͰɺ͙͢։ൃʹ͔͔ΕΔ؀ڥ͕Ͱ͖Δ
 (Grunt / Gulp /

    Bower / npm ͋ͨΓΛۦ࢖) • for AngularJS, React, Polymer, WordPress ͳͲͳͲ • ຊ೔͸ Yeoman ͷ gulp-webapp Λ঺հ
  3. Yeoman gulp-webapp Λ࢖͏ͱ • ʮgulp Ͱ΢ΣϒαΠτ੍࡞ʯͷ؀ڥߏஙΛ
 ͯ͘͠ΕΔ • Yo ίϚϯυ

    1ͭͰɺ͋ͬͱ͍͏·ʹ
 gulp ؀ڥͰ͖͕͋Γ • gulpfile ʹ࢛ۤീۤͤͣɺ͍͖ͳΓ࢖͑Δ
  4. gulpfile.babel.js ͷத਎ • watch • browser_sync • SCSS • autoprefixer

    • babel • ESLint • sourcemap • mocha • Ϗϧυ ( /dist ʹग़ྗ) • HTML/CSS minify • uglify • imagemin
  5. ࢖͍ํ΋γϯϓϧ • gulp serve watch & live reload • gulp

    serve:test ςετ • gulp build Ϗϧυ • gulp serve:dist Ϗϧυ݁ՌΛ֬ೝ