Skip to content

Instantly share code, notes, and snippets.

View 35d's full-sized avatar
🌴
On vacation

Yuji Tsuburaya 35d

🌴
On vacation
View GitHub Profile
// json をマージするスクリプト
const fs = require('fs');
const path = require('path');
const outputFileName = 'db.json';
// ルートパスを設定
const root = path.resolve('./', 'mock');
const fixturesPath = root + '/fixtures';
const json = {};
@35d
35d / Deploy via git-ftp
Last active November 27, 2019 16:45
Vue.js のプロジェクトをビルドして FTP サーバー経由で成果物をデプロイする GitHub Actions
name: Deploy via git-ftp
on: push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
@35d
35d / Detox.md
Last active April 25, 2019 01:33
Detox で e2e テストを実行するときのメモ

Detox で e2e テストを実行するときのメモ

Android ビルドとテスト実行

あらかじめエミュレータを立ち上げておく必要がある。

detox build -c android.emu.debug
detox test -c android.emu.debug

Android のエミュレータを触る機会が増えたので、メモをする。

コマンドメモ

# エミュレータの一覧を見る
$ emulator -list-avds 

# エミュレータ起動 一覧で出た端末名を@付きで入力する
$ emulator @Pixel_2_API_28 
@35d
35d / npmメモ.md
Last active March 3, 2019 14:32
npm ライブラリ公開手順メモ

npm ライブラリ公開手順メモ

$ npm version patch              # <- v1.0.0 からv1.0.1 にアップ
v0.0.1
$ npm version minor
v0.1.0
$ npm version major
v1.0.0
$ git tag # &lt;- git のtag も自動的に作成される
@35d
35d / RSpecメモ.md
Last active February 26, 2019 15:24

インストール

group :development, :test do
  # 中略
 gem 'rspec-rails', '~&gt; 3.8'
@35d
35d / follow.js
Created February 17, 2019 22:55
一括フォロー用スクリプト
$(".follow-text").each(function(index, element) {
var ev = jQuery.Event('click');
ev.srcElement = element;
$(this).delay(index*100).trigger(ev);
});

✅ Install

QuickTime や、 iPhone の動画キャプチャで撮影した動画を gif に変換するときに使う。特によく使うコマンドをメモ。


brew install ffmpeg

📝 コマンドメモ

@35d
35d / index.js
Last active February 14, 2019 06:40
Hooks Test
import React from 'react';
import ReactDOM from 'react-dom';
import { getStateAndActions } from './reducer';
const Button = props => (
<button type="button" onClick={props.onClick}>
{props.children}
</button>
);
  • Xcode アーカイブから指示通り進む。
  • App Store Connect TestFlight からビルド番号を選択する。

1回目(失敗)

Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle 'org.reactjs.native.example.bukumoapp'. Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key

アプリのアイコンが設定されていないとのこと。確かに設定していない。設定しなおして再度提出。
このページを使ってアイコンを作成した。 https://makeappicon.com/

バージョンを変更しておくことを忘れないように。