2018-01-01から1ヶ月間の記事一覧
背景 チームでGitを使った開発をしているときに、すでに行ったコミットを取り消したくなったときの対処。 基本方針 Gitのコミット履歴は書き換えない! そのためにgit revertを使う! git rebaseは使わない。git reset --hardも既に他のリモートレポジトリに…
前提 開発端末: Windows 10 エディタ: Atom(editorconfig対応エディタ) 静的解析: eslint .eslintrc.jsにて設定を書いている どんなエラー? eslintの出す警告 期待する改行コードが"LF"にも関わらず、"CRLF"が改行コードとなっている場合に発生。 解決策 …
Error Message FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:preparePocketsecReactNativeVectorIconsUnspecifiedLibrary'. > Could not expand ZIP '${your_application_path}\node_modules\react-native…
リスト内包(内包されてないけど)で、1行で良い感じに配列を作れる。 書き方 const data = [...Array(10).keys()].map((d) => { return d * 2; }); // [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] 注 上記の書き方では、ESLintに怒られる。 eslint.org
前提 Windows 10 Android Emulator上で実行することまではできている(react-native run-androidできること) Google Chromeインストール済み 手順 Chromeで以下にアクセス http://localhost:8081/debugger-ui/ Android Emulator上で「Ctrl + m」→ 「Debug JS …
なぜやるか React Nativeでは、.jsxを扱えないため、.jsファイルにJSX記法を書く必要がある(2018/1/3現在) 前提 既に、.eslintrc.jsが存在するものとする(つまり、eslint --initは実行済みであること) 手順 .eslintrc.jsを以下のように修正 module.expor…
前提 Ubuntu 16.04.3 (AWS EC2) 作業日:2018/1/1 作業手順 Dockerのインストール askubuntu.com Taigaの起動 qiita.com あとでAnsibleのplaybookにしておく。 参考情報 docs.docker.com