Merge branch 'main' into hn.standard-gauge-component

This commit is contained in:
Hristo Nedelkov 2023-08-07 14:37:07 +03:00
commit 7b07ebfde0
6 changed files with 1704 additions and 3249 deletions

View File

@ -22,6 +22,27 @@ jobs:
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn
build:
runs-on: ubuntu-latest
needs: cache-dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Restore yarn dependencies
uses: actions/cache@v2
id: yarn-cache
with:
path: |
~/.cache/Cypress
node_modules
key: ${{ runner.os }}-yarn-v3-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v3
- name: Build
run: yarn build
interaction-and-and-accessibility:
runs-on: ubuntu-latest
needs: cache-dependencies

View File

@ -1 +0,0 @@
name: 'UI tests'

View File

@ -19,14 +19,15 @@
"dependencies": {
"@nivo/pie": "^0.83.0",
"@status-im/components": "^0.2.6",
"@status-im/react": "^0.1.1",
"@tamagui/config": "1.36.4",
"@tamagui/react-17-patch": "1.36.4",
"@tamagui/vite-plugin": "1.36.4",
"@types/react": "18",
"@types/react-dom": "18",
"expo-modules-core": "^1.5.9",
"react": "18",
"react-dom": "18",
"react-native": "^0.72.3",
"react-native-svg": "^13.10.0",
"tamagui": "1.36.4"
},

View File

@ -1,6 +1,9 @@
import { config } from '@tamagui/config'
import { Text, View } from 'react-native'
import { createTamagui } from 'tamagui' // or '@tamagui/core'
import { createTamagui, setupReactNative } from '@tamagui/core'
setupReactNative({ Text, View })
const appConfig = createTamagui(config)
export type AppConfig = typeof appConfig

View File

@ -1,6 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const extensions = ['.web.js', '.web.ts', '.web.tsx', '.js', '.jsx', '.json', '.ts', '.tsx', '.mjs']
export default defineConfig({
plugins: [react()],
define: {
@ -9,23 +11,14 @@ export default defineConfig({
'process.env.TAMAGUI_TARGET': JSON.stringify('web'),
},
resolve: {
extensions,
alias: {
'react-native': 'react-native-web',
},
},
optimizeDeps: {
esbuildOptions: {
resolveExtensions: [
'.web.js',
'.web.ts',
'.web.tsx',
'.js',
'.jsx',
'.json',
'.ts',
'.tsx',
'.mjs',
],
resolveExtensions: extensions,
loader: {
'.js': 'jsx',
},

4908
yarn.lock

File diff suppressed because it is too large Load Diff