diff --git a/config/index.js b/config/index.js index 63aac3c..e45b6a4 100644 --- a/config/index.js +++ b/config/index.js @@ -92,7 +92,12 @@ const config = { } } }, - harmony: require('./harmony.json'), + harmony: { + compiler: "vite", + projectPath: process.env.HARMONY_PROJECT_PATH || 'dist', + hapName: "entry", + name: "default" + }, rn: { appName: 'taroDemo', output: { diff --git a/package.json b/package.json index af5e962..707b55b 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "@shopify/flash-list": "^1.3.1", "@shopify/react-native-skia": "0.1.222", "@tarojs/components": "4.0.0-canary.6", + "@tarojs/components-advanced": "4.0.0-canary.6", "@tarojs/components-rn": "4.0.0-canary.6", "@tarojs/helper": "4.0.0-canary.6", "@tarojs/plugin-framework-react": "4.0.0-canary.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c5bfd96..b5f8afe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,6 +49,9 @@ dependencies: '@tarojs/components': specifier: 4.0.0-canary.6 version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) + '@tarojs/components-advanced': + specifier: 4.0.0-canary.6 + version: 4.0.0-canary.6(@types/react@18.2.46)(react@18.2.0)(rollup@2.75.6) '@tarojs/components-rn': specifier: 4.0.0-canary.6 version: 4.0.0-canary.6(@babel/preset-env@7.23.7)(@react-native-camera-roll/camera-roll@7.2.2)(@react-native-community/segmented-control@2.2.2)(@react-native-community/slider@4.4.4)(@react-native-masked-view/masked-view@0.3.1)(@react-native-picker/picker@2.6.1)(expo-av@13.10.1)(expo-barcode-scanner@12.9.2)(expo-camera@14.0.1)(expo@50.0.0-preview.7)(react-native-gesture-handler@2.14.0)(react-native-pager-view@6.2.3)(react-native-safe-area-context@4.8.2)(react-native-screens@3.29.0)(react-native-svg@14.1.0)(react-native-webview@13.6.4)(react-native@0.73.1)(react@18.2.0) @@ -66,25 +69,25 @@ dependencies: version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-h5': specifier: 4.0.0-canary.6 - version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-harmony-ets': specifier: 4.0.0-canary.6 - version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-jd': specifier: 4.0.0-canary.6 version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) '@tarojs/plugin-platform-qq': specifier: 4.0.0-canary.6 - version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-swan': specifier: 4.0.0-canary.6 - version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-tt': specifier: 4.0.0-canary.6 - version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-weapp': specifier: 4.0.0-canary.6 - version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + version: 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/react': specifier: 4.0.0-canary.6 version: 4.0.0-canary.6(react@18.2.0) @@ -6001,7 +6004,7 @@ packages: - '@types/webpack-dev-server' - rollup - /@tarojs/components-react@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/components-react@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-Z8rYSNpgEmH2jSSi8rXTSdROaTW4lpU//N7SHUt2WG/AY0VtaAWZKSt5ryzyZqzmCYQnnKGXhcO5II1xj0OfKw==} dependencies: '@babel/runtime': 7.23.7 @@ -6018,6 +6021,7 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - vue dev: false @@ -6513,17 +6517,17 @@ packages: - supports-color - vue - /@tarojs/plugin-platform-h5@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/plugin-platform-h5@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-e54GvJYGXvuGUfUDDWQ0A+qz4PaPACpNBa2sQyME+SYzjEwGybbPFPcPv4PA012Y6/6JYxliU/FxHVWxqGJk2g==} dependencies: '@babel/core': 7.23.7 '@tarojs/components': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) - '@tarojs/components-react': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + '@tarojs/components-react': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/helper': 4.0.0-canary.6 '@tarojs/router': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) '@tarojs/service': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) '@tarojs/shared': 4.0.0-canary.6 - '@tarojs/taro-h5': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + '@tarojs/taro-h5': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) babel-plugin-transform-taroapi: 4.0.0-canary.6 change-case: 4.1.2 lodash-es: 4.17.21 @@ -6534,12 +6538,13 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - supports-color - vue dev: false - /@tarojs/plugin-platform-harmony-ets@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/plugin-platform-harmony-ets@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-KbhF7R0fa6+uRGoJ4znB82jLNtKBvUwPt+oypun27Q7it2RNeB150j3pZHG33ICVbnQOGifhcbBMeVGTaKGc+w==} dependencies: '@tarojs/components': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) @@ -6557,6 +6562,7 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - supports-color - vue @@ -6578,10 +6584,10 @@ packages: - supports-color - vue - /@tarojs/plugin-platform-qq@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/plugin-platform-qq@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-IcdkvbDbF/Qw2vgn7OQGzwGuyBT1IotPL5w+UJNz8ozJaHS8zgILC1zVk1i9BNBvI+OfmeYQ8N0NXnylUSBmGw==} dependencies: - '@tarojs/plugin-platform-weapp': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + '@tarojs/plugin-platform-weapp': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/service': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) '@tarojs/shared': 4.0.0-canary.6 transitivePeerDependencies: @@ -6591,11 +6597,12 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - supports-color - vue - /@tarojs/plugin-platform-swan@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/plugin-platform-swan@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-x7vRt0SsP2aLAARfWoICppYxXghBLOwiz9pslh+gEysXo+I9rQzf7md5+0F0dUPhYv1TQOkMEw4P6z39nAOwBQ==} dependencies: '@tarojs/components': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) @@ -6608,11 +6615,12 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - supports-color - vue - /@tarojs/plugin-platform-tt@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/plugin-platform-tt@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-U4ZmjFj5fcuAgeKA17avu25HCdkp5vzgcitsNgnzI6VYlLEHtjxbc3R7OwO+LMR2KFTVwFkvXfHDSc39YEszDw==} dependencies: '@tarojs/components': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) @@ -6625,11 +6633,12 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - supports-color - vue - /@tarojs/plugin-platform-weapp@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/plugin-platform-weapp@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-hm87eWvjAME8idczEF3B+Dp9yrOVZvrkvzyT2Y1lUuF49c4ljp9lcuImSPlvC1Q5vA5/oY6J4Hyfv2Au9Lm+jQ==} dependencies: '@tarojs/components': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) @@ -6642,6 +6651,7 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - supports-color - vue @@ -6927,7 +6937,7 @@ packages: /@tarojs/shared@4.0.0-canary.6: resolution: {integrity: sha512-WPK7mc4g94PFHpUOWLQ8tS1l8EdcwPpv/uV/gWYJxtDSKsx2CMsGOlO3RlkvsaXEIcw2AM5eKGBUnzeF6w7tNQ==} - /@tarojs/taro-h5@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6): + /@tarojs/taro-h5@4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6): resolution: {integrity: sha512-hV1xwEVM2MEMWKE0Oqs8gbjy4Ixs4H9OeynOkdoLmVOvfxXq2DmNHb77fK1Rqip7NWK0XpwJf0h/KTZu81P80w==} dependencies: '@tarojs/api': 4.0.0-canary.6 @@ -6950,6 +6960,7 @@ packages: - '@types/webpack' - '@types/webpack-dev-server' - postcss + - react - rollup - vue dev: false @@ -7197,10 +7208,10 @@ packages: '@tarojs/helper': 4.0.0-canary.6 '@tarojs/plugin-platform-alipay': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/plugin-platform-jd': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) - '@tarojs/plugin-platform-qq': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) - '@tarojs/plugin-platform-swan': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) - '@tarojs/plugin-platform-tt': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) - '@tarojs/plugin-platform-weapp': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) + '@tarojs/plugin-platform-qq': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) + '@tarojs/plugin-platform-swan': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) + '@tarojs/plugin-platform-tt': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) + '@tarojs/plugin-platform-weapp': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(react@18.2.0)(rollup@2.75.6) '@tarojs/runner-utils': 4.0.0-canary.6(@types/react@18.2.46)(postcss@8.4.32)(rollup@2.75.6) '@tarojs/runtime': 4.0.0-canary.6 '@tarojs/shared': 4.0.0-canary.6