Giter Club home page Giter Club logo

ng2handson20160724-ng2-5minquickstart's Introduction

ng2handson20160724-ng2-5minquickstart

Angular2公式"5 Min Quickstart"ちょいアレンジ版


Original Tutorial

Angular2 rc.4対応

Editor

Visual Studio Code ver.1.3.1

Setup

$ npm install

Run

$ npm start

公式チュートリアルからの変更点

  • systemjs.config.jsは初めて見る人は面食らうと思うのでsystemjs.config.easy.jsを別に書いた。
  • typescriptのバージョンを2.0にした。(せっかくなので)
  • tscの出力結果を.destフォルダに分離して尚且つ.dest.gitignoreに追加した。
  • lite-serverの起動時にconfig/browsersync.jsonを読み込むようにした。
  • minifyされたumdファイルを読み込むためのsystemjs.config.easy.min.jsを書いた。(index.html<script src="systemjs.config.easy.js"></script>を変更する)
  • async/awaitを有効にするためのtsconfig.jsonforAsyncAwaitフォルダに作成した。

Run with async/await

まずforAsyncAwait/tsconfig.jsonをルートにコピーしてそれから

$ npm run tsbabel

補足

  • babel-cliのbabelコマンドは--minifiedをオプションとして与えると変換後のファイルはminifyされる。(大して圧縮されないけど…)
  • Angular2向けSystem.configの書き方の定石はこれ→ovrmrw/systemjs.config.js

ng2handson20160724-ng2-5minquickstart's People

Contributors

ovrmrw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.