diff --git a/apps/next/.eslintrc.js b/apps/next/.eslintrc.js deleted file mode 100644 index b099ddf4..00000000 --- a/apps/next/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - extends: 'next', - root: true, -} diff --git a/apps/next/next-env.d.ts b/apps/next/next-env.d.ts deleted file mode 100644 index 2532e77a..00000000 --- a/apps/next/next-env.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/apps/next/next.config.js b/apps/next/next.config.js deleted file mode 100644 index 1d488aeb..00000000 --- a/apps/next/next.config.js +++ /dev/null @@ -1,78 +0,0 @@ -/** @type {import('next').NextConfig} */ -const { withTamagui } = require('@tamagui/next-plugin') -const withImages = require('next-images') -const { join } = require('path') - -process.env.IGNORE_TS_CONFIG_PATHS = 'true' -process.env.TAMAGUI_TARGET = 'web' -process.env.TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD = '1' - -const boolVals = { - true: true, - false: false, -} - -const disableExtraction = - boolVals[process.env.DISABLE_EXTRACTION] ?? - process.env.NODE_ENV === 'development' - -const plugins = [ - // withImages, - withTamagui({ - config: './tamagui.config.ts', - components: ['@status-im/components'], - importsWhitelist: ['constants.js', 'colors.js'], - logTimings: true, - disableExtraction: true, - - // experiment - reduced bundle size react-native-web - useReactNativeWebLite: false, - shouldExtract: path => { - if (path.includes(join('packages', 'app'))) { - return true - } - }, - excludeReactNativeWebExports: [ - // 'Switch', - // 'ProgressBar', - // 'Picker', - // 'CheckBox', - // 'Touchable' - ], - }), -] - -module.exports = function () { - /** @type {import('next').NextConfig} */ - let config = { - typescript: { - ignoreBuildErrors: true, - }, - images: { - disableStaticImages: true, - }, - transpilePackages: [ - // 'solito', - 'react-native-web', - // 'expo-linking', - // 'expo-constants', - // 'expo-modules-core' - '@status-im/components', - ], - - experimental: { - // optimizeCss: true, - // scrollRestoration: true, - legacyBrowsers: false, - }, - } - - for (const plugin of plugins) { - config = { - ...config, - ...plugin(config), - } - } - - return config -} diff --git a/apps/next/package.json b/apps/next/package.json deleted file mode 100644 index 367951e1..00000000 --- a/apps/next/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "next-app", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "cd .. && yarn build && cd next && next build", - "start": "next start", - "serve": "NODE_ENV=production next start --port 8151", - "lint": "next lint" - }, - "dependencies": { - "@status-im/components": "*", - "@tamagui/core": "1.0.15", - "@tamagui/next-theme": "1.0.15", - "next": "^13.0.6", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-native-web": "^0.18.6" - }, - "devDependencies": { - "@tamagui/next-plugin": "1.0.15", - "@types/node": "^18.6.4", - "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.9", - "critters": "^0.0.16", - "eslint-config-next": "^13.0.4", - "next-images": "^1.8.4" - } -} diff --git a/apps/next/pages/_app.tsx b/apps/next/pages/_app.tsx deleted file mode 100644 index 3ce5f695..00000000 --- a/apps/next/pages/_app.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import '@tamagui/core/reset.css' -import '@tamagui/font-inter/css/400.css' -import '@tamagui/font-inter/css/700.css' - -import '../styles/reset.css' -import '../styles/app.css' - -import Head from 'next/head' -import React from 'react' - -import tamaguiConfig from '../tamagui.config' - -import { AppProps } from 'next/app' -import { TamaguiProvider } from '@tamagui/core' - -// import { NextThemeProvider, useRootTheme } from '@tamagui/next-theme' -// import { Provider } from 'app/provider' -// import type { SolitoAppProps } from 'solito' - -function App({ Component, pageProps }: AppProps) { - return ( - <> - - Status - - - - - - - - - ) -} - -// function ThemeProvider({ children }: { children: React.ReactNode }) { -// const [theme, setTheme] = useRootTheme() - -// return ( -// -// -// {children} -// -// -// ) -// } - -export default App diff --git a/apps/next/pages/_document.tsx b/apps/next/pages/_document.tsx deleted file mode 100644 index e27b9db0..00000000 --- a/apps/next/pages/_document.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import NextDocument, { Head, Html, Main, NextScript } from 'next/document' -import { Children } from 'react' -import { AppRegistry } from 'react-native' - -import Tamagui from '../tamagui.config' - -// TODO: the recommended approach breaks HMR when Tmaagui.getCSS() is called in the getInitialProps method. -export default class Document extends NextDocument { - // static async getInitialProps({ renderPage }: any) { - // AppRegistry.registerComponent('Main', () => Main) - // const page = await renderPage() - - // // @ts-ignore - // const { getStyleElement } = AppRegistry.getApplication('Main') - - // /** - // * Note: be sure to keep tamagui styles after react-native-web styles like it is here! - // * So Tamagui styles can override the react-native-web styles. - // */ - // const styles = [ - // getStyleElement(), - //