2019年1月21日のブックマーク (1件)

  • Cloud Firestore エミュレータ を concurrently と一緒に使う

    概要 Cloud Firestore エミュレータ を コマンドの並列実行支援モジュール concurrently と一緒に使う場合、コマンドを少し工夫しないと期待通りに動作しない。以下を行う必要がある。 エミュレータの起動の際、firebase serve --only firestore < /dev/null とし、標準入力を /dev/null から取るようにする。 concurrently の--success (-s) オプションを適切に設定する。 期待通りに動作する �npm script の例を以下に示す。 "scripts": { "test": "concurrently --success=first --kill-others -n 'emulator,test' 'npm run test:run-emulator' 'sleep 7 && npm run tes

    mecab_jp
    mecab_jp 2019/01/21
    ブログ書いた: Cloud Firestore エミュレータをconcurrentlyと一緒に使おうとしたらハマったので解決策をまとめました。