Skip to content

Commit

Permalink
feat: add Web support 🖥️
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesMangwa committed Feb 15, 2022
1 parent 4d31b1f commit bfa841a
Show file tree
Hide file tree
Showing 136 changed files with 18,838 additions and 11,922 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
18 changes: 0 additions & 18 deletions .eslintrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
58 changes: 46 additions & 12 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint & Type
name: Test Suite

on: push

Expand All @@ -23,19 +23,20 @@ jobs:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
run: |
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
- name: Run linter
run: yarn run lint
run: |
yarn lint
id: lint

type:
name: Run Type checker
name: Run Type Checker
runs-on: ubuntu-latest

steps:
Expand All @@ -54,13 +55,46 @@ jobs:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
run: |
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
- name: Run type checker
run: yarn run type
run: |
yarn type
id: type

test:
name: Run Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Get Yarn cache directory path
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node modules
uses: actions/cache@v2
id: yarn-cache
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: |
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
- name: Run unit tests
run: |
yarn test
id: test
67 changes: 61 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,64 @@
# Node
# OSX
#
.DS_Store

# XDE
.expo/

# VSCode
.vscode/
jsconfig.json

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IJ
#
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# node.js
#
node_modules/
Example/node_modules/
Example/android/.settings
npm-debug.log
yarn-debug.log
yarn-error.log
modules/__tests__/__coverage__
coverage
.DS_Store

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore

# Expo
.expo/*

# generated by bob
/lib/
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pre-commit
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions .watchmanconfig

This file was deleted.

3 changes: 3 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Override Yarn command so we can automatically setup the repo on running `yarn`

yarn-path "scripts/bootstrap.js"

0 comments on commit bfa841a

Please sign in to comment.