Skip to content

Commit 317b7ce

Browse files
petrkonecny2Petr KonecnyPetr Konecny
authored
chore: added initial project structure (#1)
* chore: setup expo example * chore: connected example and package * chore: remove ios and android directories from git tracking * chore: fixed gitignore * chore: added husky and github actions * chore: linter global fix * chore: remove workspaces * chore: fix script * chore: fix pnpm version * chore: fix action install example dependencies * chore: fix missing script * chore: fix prettier issues * chore: fix test script --------- Co-authored-by: Petr Konecny <petr.konecny@strv.com> Co-authored-by: Petr Konecny <petrkonecny@Petrs-MacBook-Pro-3.local>
1 parent 6a80021 commit 317b7ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+18851
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Setup Environment
2+
description: 'Set up Node.js, pnpm, Expo CLI'
3+
inputs:
4+
EXPO_TOKEN:
5+
required: true
6+
description: 'Expo API key'
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
19+
- name: Get pnpm store directory
20+
id: pnpm-cache
21+
shell: bash
22+
run: |
23+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
24+
25+
- uses: actions/cache@v4
26+
name: Setup pnpm cache
27+
with:
28+
path: ${{ env.STORE_PATH }}
29+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
30+
restore-keys: |
31+
${{ runner.os }}-pnpm-store-
32+
33+
- uses: expo/expo-github-action@v8
34+
with:
35+
eas-version: latest
36+
token: ${{ inputs.EXPO_TOKEN }}
37+
packager: pnpm
38+
39+
- name: Install Dependencies
40+
run: pnpm install --frozen-lockfile
41+
shell: bash
42+
- name: Install example dependencies
43+
run: cd example && pnpm install --frozen-lockfile
44+
shell: bash

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Description
2+
3+
<!--- Describe your changes in detail -->
4+
5+
## Related Tickets/Issues
6+
7+
<!--- If this PR is related to any Jira ticket, link it here -->
8+
<!--- If this PR is related to any GH Issue, link the issue here and eventually close/mention/.. it -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# The main CI workflow, running only on PRs, checking code-quality and running tests.
2+
3+
name: 'CI PR Code Quality'
4+
on: [pull_request]
5+
jobs:
6+
code-quality-and-tests:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 14
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: ./.github/actions/setup
13+
14+
- name: Run ESLint
15+
run: pnpm lint
16+
17+
- name: Run Prettier
18+
run: pnpm format:check
19+
20+
- name: Run TypeScript
21+
run: pnpm type:check
22+
23+
- name: Run Tests
24+
run: pnpm test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
pnpm type:check

.lintstagedrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{js,ts,tsx,jsx}": "eslint --fix",
3+
"*.{ts,tsx,js,tsx,json,md,yml,yaml}": "prettier --write"
4+
}

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.d.ts
2+
example/ios
3+
example/android

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"printWidth": 100,
5+
"semi": false,
6+
"singleQuote": true,
7+
"tabWidth": 2,
8+
"trailingComma": "all",
9+
"useTabs": false
10+
}

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)