Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kakukakug committed Mar 5, 2022
0 parents commit 57064bd
Show file tree
Hide file tree
Showing 81 changed files with 27,366 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .detoxrc.json
@@ -0,0 +1,47 @@
{
"testRunner": "jest",
"runnerConfig": "__e2e__/config.json",
"skipLegacyWorkersInjection": true,
"artifacts": {
"rootDir": "__e2e__/__artifacts__/"
},
"apps": {
"ios": {
"type": "ios.app",
"binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY"
},
"android": {
"type": "android.apk",
"binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY"
}
},
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 13"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_3a_API_30_x86"
}
}
},
"configurations": {
"ios.sim": {
"binaryPath": "bin/Exponent.app",
"type": "ios.simulator",
"name": "iPhone 13"
},
"ios": {
"device": "simulator",
"app": "ios"
},
"android": {
"device": "emulator",
"app": "android"
}
}
}
5 changes: 5 additions & 0 deletions .env.development
@@ -0,0 +1,5 @@
ANDROID_BANNER_AD_UNIT_ID=ca-app-pub-3940256099942544/6300978111
ANDROID_INTERSTITIAL_AD_UNIT_ID=ca-app-pub-3940256099942544/1033173712
IOS_BANNER_AD_UNIT_ID=ca-app-pub-3940256099942544/2934735716
IOS_INTERSTITIAL_AD_UNIT_ID=ca-app-pub-3940256099942544/4411468910

4 changes: 4 additions & 0 deletions .env.production
@@ -0,0 +1,4 @@
ANDROID_BANNER_AD_UNIT_ID=
ANDROID_INTERSTITIAL_AD_UNIT_ID=
IOS_BANNER_AD_UNIT_ID=
IOS_INTERSTITIAL_AD_UNIT_ID=
76 changes: 76 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,76 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: `./tsconfig.json`,
createDefaultProgram: true,
},
plugins: ["promise"],
extends: [
"@react-native-community",
"airbnb",
"airbnb-typescript",
"prettier",
],
rules: {
"react/jsx-boolean-value": "off",
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"import/prefer-default-export": "off",
"arrow-body-style": ["error", "always"],
"sort-imports": [
"error",
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: true,
},
],
"prettier/prettier": [
"error",
{
semi: true,
},
],
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/no-nesting": "error",
"promise/no-promise-in-callback": "error",
"promise/no-callback-in-promise": "error",
"promise/avoid-new": "error",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "error",
"promise/valid-params": "error",
"react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"react/function-component-definition": [
2,
{
namedComponents: [
"function-declaration",
"function-expression",
"arrow-function",
],
unnamedComponents: ["function-expression", "arrow-function"],
},
],
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: ["**/__e2e__/**", "**/__test__/**", "test-*.{ts,tsx}"],
optionalDependencies: false,
},
],
},
overrides: [
{
files: ["**/*.tsx", "**/*.ts"],
rules: {
"react/prop-types": "off",
},
},
],
};
7 changes: 7 additions & 0 deletions .expo-shared/assets.json
@@ -0,0 +1,7 @@
{
"2e25d0e8536c49d8e768b828f8af94a758a37ad79eadfb517b4992383902a0b0": true,
"c3bd1ba7faeed0ecf2934f670a981d2936a134de119e7ae78194bf6c50a8bfbf": true,
"5e4f0ad55bd1f3941c59ef94068bc591e040d6ac58b38be56d49c01ae82f5f75": true,
"68bf73b52b6b0c4085a77e62baf9cc51ec9e147fd56f5477be802c9f27cdee09": true,
"267e4ca018b0d9014b755a2caefb10daec750d29a7c127d9747dab1ec4ebb8ad": true
}
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,29 @@
## 結論



## 概要



### What - 何をするのか

### Why - なぜ行うのか

### how - どのように

### Where - どこに

### Who - 誰のために

### When - いつまでに


---

## マージする前にチェック

- [ ] テストをパスしている
- [ ] Lint チェックをパスしている
- [ ] snapshot の差異を確認した

13 changes: 13 additions & 0 deletions .github/README.md
@@ -0,0 +1,13 @@
# React Native アプリテンプレート

React Native + Expo でアプリを素早く作成するためのテンプレート。
このリポジトリから新しいリポジトリを作成して、開発する。

## 設定済みの機能



## Author

[twitter @honmushi](https://twitter.com/koshihonmushi)
[honmushi.blog](https://honmushi.com/profile/)
77 changes: 77 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,77 @@
name: Lint & Danger

on:
push:
branches:
- "template"
#- "**"
#- "!develop"
#- "!renovate/**"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
ci-skip-check:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"

lint:
runs-on: ubuntu-latest
needs: ci-skip-check
timeout-minutes: 4
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.13.1"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm install

- name: Run lint
run: npm run lint

danger:
runs-on: ubuntu-latest
needs: ci-skip-check
timeout-minutes: 4
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.13.1"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm install

- name: Danger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./node_modules/.bin/danger ci
60 changes: 60 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,60 @@
name: CI Test

on:
push:
branches:
- "template"
# - "**"
# - "!develop"
# - "!renovate/**"
# schedule:
# - cron: '0 15 * * 1'

# Triggers the workflow on push or pull request events but only for the develop branch
# pull_request:
# branches: [ develop ]
# push:
# branches: [ develop ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
ci-skip-check:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"

jest:
runs-on: ubuntu-latest
needs: ci-skip-check
timeout-minutes: 4
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.13.1"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm install

- name: Run jest
run: npm run test:ci

- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

23 changes: 23 additions & 0 deletions .gitignore
@@ -0,0 +1,23 @@
# osX
.DS_Store

# node
node_modules/
npm-debug.*
yarn-error.log

# jest
coverage

# detox
__artifacts__

# expo
.expo/*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
bin/
8 changes: 8 additions & 0 deletions .prettierrc
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"tabWidth": 2,
"jsxBracketSameLine": true,
"trailingComma": "es5",
"semi": true,
"arrowParens": "always",
}
1 change: 1 addition & 0 deletions .watchmanconfig
@@ -0,0 +1 @@
{}

0 comments on commit 57064bd

Please sign in to comment.