Skip to content

Commit d610878

Browse files
authored
Merge pull request #56 from Resgrid/develop
Develop
2 parents 0c0e958 + f387280 commit d610878

Some content is hidden

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

59 files changed

+1906
-2475
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/ci-build.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/react-native-cicd.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ env:
4040
jobs:
4141
check-skip:
4242
runs-on: ubuntu-latest
43-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
43+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
4444
steps:
4545
- name: Skip CI check
4646
run: echo "Proceeding with workflow"
@@ -52,44 +52,42 @@ jobs:
5252
- name: 🏗 Checkout repository
5353
uses: actions/checkout@v4
5454

55+
- name: pnpm-setup
56+
uses: pnpm/action-setup@v2
57+
5558
- name: 🏗 Setup Node.js
5659
uses: actions/setup-node@v4
5760
with:
58-
node-version: "20"
59-
cache: "yarn"
60-
61-
- name: 📦 Get yarn cache directory path
62-
id: yarn-cache-dir-path
63-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
61+
node-version: "24"
62+
cache: "pnpm"
6463

65-
- name: 📦 Setup yarn cache
64+
- name: 📦 Setup pnpm cache
6665
uses: actions/cache@v3
6766
with:
68-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
69-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
67+
path: ~/.pnpm-store
68+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
7069
restore-keys: |
71-
${{ runner.os }}-yarn-
70+
${{ runner.os }}-pnpm-
7271
7372
- name: 📦 Install dependencies
74-
run: yarn install
73+
run: pnpm install
7574

7675
- name: 🧪 Run TypeScript check
77-
run: yarn tsc
76+
run: pnpm tsc
7877

7978
- name: 🧹 Run ESLint
80-
run: yarn lint
79+
run: pnpm lint
8180

8281
- name: 🎨 Run Prettier check
83-
run: yarn format:check
82+
run: pnpm format:check
8483

8584
- name: 🧪 Run Jest Tests
86-
run: yarn test
85+
run: pnpm test
8786

8887
- name: 🧪 Run React Native Testing Library Tests
89-
run: yarn test:rntl
88+
run: pnpm test:rntl
9089

9190
build-and-deploy:
92-
needs: test
9391
if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) || github.event_name == 'workflow_dispatch'
9492
strategy:
9593
matrix:
@@ -102,28 +100,27 @@ jobs:
102100
- name: 🏗 Checkout repository
103101
uses: actions/checkout@v4
104102

103+
- name: pnpm-setup
104+
uses: pnpm/action-setup@v2
105+
105106
- name: 🏗 Setup Node.js
106107
uses: actions/setup-node@v4
107108
with:
108-
node-version: "20"
109-
cache: "yarn"
110-
111-
- name: 📦 Get yarn cache directory path
112-
id: yarn-cache-dir-path
113-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
109+
node-version: "24"
110+
cache: "pnpm"
114111

115-
- name: 📦 Setup yarn cache
112+
- name: 📦 Setup pnpm cache
116113
uses: actions/cache@v3
117114
with:
118-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
119-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
115+
path: ~/.pnpm-store
116+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
120117
restore-keys: |
121-
${{ runner.os }}-yarn-
118+
${{ runner.os }}-pnpm-
122119
123120
- name: 📦 Install dependencies
124121
run: |
125-
yarn install
126-
yarn global add eas-cli@latest
122+
pnpm install
123+
pnpm add -g eas-cli@latest
127124
128125
- name: 📱 Setup EAS build cache
129126
uses: actions/cache@v3

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"Flashlist",
2929
"Gluestack",
3030
"Lato",
31+
"nativewind",
3132
"Resgrid"
3233
],
3334
"i18n-ally.localesPaths": ["src/translations/"],

babel.config.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
module.exports = function (api) {
22
api.cache(true);
33
return {
4-
presets: [
5-
['babel-preset-expo', { jsxImportSource: 'nativewind' }],
6-
'nativewind/babel',
7-
],
4+
presets: [['babel-preset-expo', { jsxImportSource: 'nativewind' }], 'nativewind/babel'],
85
plugins: [
96
[
107
'module-resolver',
@@ -16,20 +13,9 @@ module.exports = function (api) {
1613
'@unitools/image': '@unitools/image-expo',
1714
'@unitools/router': '@unitools/router-expo',
1815
'@unitools/link': '@unitools/link-expo',
19-
'tailwind.config': './tailwind.config.js',
16+
'@tailwind.config': './tailwind.config.js',
2017
'@assets': './assets',
2118
},
22-
extensions: [
23-
'.ios.ts',
24-
'.android.ts',
25-
'.ts',
26-
'.ios.tsx',
27-
'.android.tsx',
28-
'.tsx',
29-
'.jsx',
30-
'.js',
31-
'.json',
32-
],
3319
},
3420
],
3521
'react-native-reanimated/plugin',

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ module.exports = {
1212
'!**/cli/**',
1313
],
1414
moduleFileExtensions: ['js', 'ts', 'tsx'],
15+
moduleDirectories: ['node_modules', '<rootDir>/'],
1516
transformIgnorePatterns: [
16-
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg))`,
17+
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg|@gluestack-ui/.*|lucide-react-native|@tanstack/.*|moti|nativewind|tailwind-variants|@react-native-aria/.*))`,
1718
],
1819
coverageReporters: ['json-summary', ['text', { file: 'coverage.txt' }]],
1920
reporters: [

metro.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env node */
22

33
const { getSentryExpoConfig } = require('@sentry/react-native/metro');
4-
const { getDefaultConfig } = require('expo/metro-config');
4+
//const { getDefaultConfig } = require('expo/metro-config');
55
const path = require('path');
66
const { withNativeWind } = require('nativewind/metro');
77

@@ -25,4 +25,4 @@ config.resolver.extraNodeModules = {
2525
'@assets': path.resolve(__dirname, 'assets'),
2626
};
2727

28-
module.exports = withNativeWind(config, { input: './global.css' });
28+
module.exports = withNativeWind(config, { input: './global.css', inlineRem: 16 });

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,25 @@
4949
"@gluestack-ui/alert": "^0.1.15",
5050
"@gluestack-ui/alert-dialog": "^0.1.30",
5151
"@gluestack-ui/avatar": "^0.1.17",
52-
"@gluestack-ui/button": "^1.0.7",
52+
"@gluestack-ui/button": "^1.0.14",
5353
"@gluestack-ui/checkbox": "^0.1.31",
5454
"@gluestack-ui/divider": "^0.1.9",
5555
"@gluestack-ui/fab": "^0.1.21",
5656
"@gluestack-ui/form-control": "^0.1.18",
57-
"@gluestack-ui/icon": "^0.1.25",
57+
"@gluestack-ui/icon": "^0.1.27",
5858
"@gluestack-ui/image": "^0.1.10",
59-
"@gluestack-ui/input": "^0.1.31",
59+
"@gluestack-ui/input": "^0.1.38",
6060
"@gluestack-ui/link": "^0.1.22",
61-
"@gluestack-ui/menu": "^0.2.36",
61+
"@gluestack-ui/menu": "^0.2.43",
6262
"@gluestack-ui/modal": "^0.1.35",
6363
"@gluestack-ui/nativewind-utils": "^1.0.26",
6464
"@gluestack-ui/overlay": "^0.1.16",
65-
"@gluestack-ui/popover": "^0.1.37",
65+
"@gluestack-ui/popover": "^0.1.49",
6666
"@gluestack-ui/pressable": "^0.1.16",
6767
"@gluestack-ui/progress": "^0.1.16",
68-
"@gluestack-ui/radio": "^0.1.32",
69-
"@gluestack-ui/select": "^0.1.29",
70-
"@gluestack-ui/slider": "^0.1.25",
68+
"@gluestack-ui/radio": "^0.1.40",
69+
"@gluestack-ui/select": "^0.1.31",
70+
"@gluestack-ui/slider": "^0.1.32",
7171
"@gluestack-ui/spinner": "^0.1.14",
7272
"@gluestack-ui/switch": "^0.1.22",
7373
"@gluestack-ui/textarea": "^0.1.23",
@@ -155,7 +155,6 @@
155155
"@types/jest": "^29.5.12",
156156
"@types/lodash.memoize": "^4.1.9",
157157
"@types/react": "~18.3.12",
158-
"@types/react-native": "^0.73.0",
159158
"@types/react-native-base64": "^0.2.2",
160159
"@typescript-eslint/eslint-plugin": "^5.62.0",
161160
"@typescript-eslint/parser": "^5.62.0",

0 commit comments

Comments
 (0)