flowtype入門以前

npm6.xインストール

Ubuntu 16.04では以下の通り

$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
$ sudo apt-get install -y build-essential nodejs

便利なものは最初にインストールしておく

$ sudo npm install -g flow-bin
$ sudo npm install -g webpack

何らかのnpmのプロジェクトのサンプル実行

以下を実行後に public/index.html とか index.html とか test.html があるのでブラウザで確認する

$ npm install
$ npm run build
$ flow                    # 型チェック
$ webpack