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

モダンなフロントエンド開発環境について

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for jaxx2104 jaxx2104
February 01, 2016

 モダンなフロントエンド開発環境について

2016年2月の社内勉強会にて

Avatar for jaxx2104

jaxx2104

February 01, 2016
Tweet

More Decks by jaxx2104

Other Decks in Programming

Transcript

  1. SCSS とは • CSSをよりプログラミングに近い形で書ける言語 • ブラウザでそのまま使うことは出来ない • compass などを使ってコンパイルする CSSを拡張したメタ言語

    http://sass-lang.com/guide 出来ること • 変数宣言 • 演算子 • セレクタのネスト • ミックスイン • セレクタの継承
  2. ES2015 とは • 他言語の構文を多く採用して5年ぶりのアップデート • 最新ブラウザで対応が始まっている • 標準コンパイラのBabelを使うことを推奨 https://babeljs.io/docs/learn-es2015/ JavaScript

    の標準化言語 出来ること • let・constキーワードによる変数宣言 • class構文 • テンプレート文字列 • importとexportによるモジュール構文 http://www.slideshare.net/dynamis/java-scripttrendspec
  3. node-sample • ライブコンパイル • ファイル圧縮 • ウェブサーバー • ライブリロード •

    エラー通知 • ドキュメント生成 フロントエンド開発に必要な環境を構築してくれるツール できること https://github.com/jaxx2104/node-sample/
  4. 環境構築は3行 $ yum install node $ git clone [email protected]:jaxx2104/node-sample.git $

    npm install 1. node.js をインストール 2. node-sample をダウンロードして展開 3. sublime-textからnpm install 実行はコマンドかエディタで可能! Mac の場合(コマンド不要) Linux の場合