Merge branch 'main' into hn.standard-gauge-component
This commit is contained in:
commit
7b07ebfde0
|
@ -22,6 +22,27 @@ jobs:
|
||||||
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
||||||
run: yarn
|
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:
|
interaction-and-and-accessibility:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: cache-dependencies
|
needs: cache-dependencies
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
name: 'UI tests'
|
|
|
@ -19,14 +19,15 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nivo/pie": "^0.83.0",
|
"@nivo/pie": "^0.83.0",
|
||||||
"@status-im/components": "^0.2.6",
|
"@status-im/components": "^0.2.6",
|
||||||
"@status-im/react": "^0.1.1",
|
|
||||||
"@tamagui/config": "1.36.4",
|
"@tamagui/config": "1.36.4",
|
||||||
"@tamagui/react-17-patch": "1.36.4",
|
"@tamagui/react-17-patch": "1.36.4",
|
||||||
"@tamagui/vite-plugin": "1.36.4",
|
"@tamagui/vite-plugin": "1.36.4",
|
||||||
"@types/react": "18",
|
"@types/react": "18",
|
||||||
"@types/react-dom": "18",
|
"@types/react-dom": "18",
|
||||||
|
"expo-modules-core": "^1.5.9",
|
||||||
"react": "18",
|
"react": "18",
|
||||||
"react-dom": "18",
|
"react-dom": "18",
|
||||||
|
"react-native": "^0.72.3",
|
||||||
"react-native-svg": "^13.10.0",
|
"react-native-svg": "^13.10.0",
|
||||||
"tamagui": "1.36.4"
|
"tamagui": "1.36.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import { config } from '@tamagui/config'
|
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)
|
const appConfig = createTamagui(config)
|
||||||
export type AppConfig = typeof appConfig
|
export type AppConfig = typeof appConfig
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
|
const extensions = ['.web.js', '.web.ts', '.web.tsx', '.js', '.jsx', '.json', '.ts', '.tsx', '.mjs']
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
define: {
|
define: {
|
||||||
|
@ -9,23 +11,14 @@ export default defineConfig({
|
||||||
'process.env.TAMAGUI_TARGET': JSON.stringify('web'),
|
'process.env.TAMAGUI_TARGET': JSON.stringify('web'),
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
extensions,
|
||||||
alias: {
|
alias: {
|
||||||
'react-native': 'react-native-web',
|
'react-native': 'react-native-web',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
esbuildOptions: {
|
esbuildOptions: {
|
||||||
resolveExtensions: [
|
resolveExtensions: extensions,
|
||||||
'.web.js',
|
|
||||||
'.web.ts',
|
|
||||||
'.web.tsx',
|
|
||||||
'.js',
|
|
||||||
'.jsx',
|
|
||||||
'.json',
|
|
||||||
'.ts',
|
|
||||||
'.tsx',
|
|
||||||
'.mjs',
|
|
||||||
],
|
|
||||||
loader: {
|
loader: {
|
||||||
'.js': 'jsx',
|
'.js': 'jsx',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue