unify package.jsons

This commit is contained in:
Pavel Prichodko 2023-03-13 21:48:42 +01:00
parent 8a846ca3b8
commit b0c3b6013e
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
8 changed files with 24 additions and 19 deletions

View File

@ -4,11 +4,11 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"#dev": "vite",
"dev": "tauri dev", "dev": "tauri dev",
"build": "tsc && vite build", "build": "vite build",
"typecheck": "tsc",
"preview": "vite preview", "preview": "vite preview",
"tauri": "tauri" "clean": "rimraf node_modules"
}, },
"dependencies": { "dependencies": {
"react": "^18.2.0", "react": "^18.2.0",

View File

@ -7,7 +7,10 @@
"dev": "expo start -c", "dev": "expo start -c",
"ios": "TAMAGUI_TARGET=native yarn expo run:ios", "ios": "TAMAGUI_TARGET=native yarn expo run:ios",
"android": "TAMAGUI_TARGET=native yarn expo run:android", "android": "TAMAGUI_TARGET=native yarn expo run:android",
"start": "expo start --dev-client" "start": "expo start --dev-client",
"lint": "eslint screens",
"#typecheck": "tsc",
"clean": "rimraf node_modules"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.18.9", "@babel/runtime": "^7.18.9",
@ -26,8 +29,7 @@
"react-native": "0.70.5", "react-native": "0.70.5",
"react-native-safe-area-context": "4.4.1", "react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.0", "react-native-screens": "~3.18.0",
"react-native-svg": "^13.8.0", "react-native-svg": "^13.8.0"
"react-native-web": "~0.18.12"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.17.9", "@babel/core": "^7.17.9",

View File

@ -5,7 +5,9 @@
"scripts": { "scripts": {
"dev": "TAMAGUI_TARGET='web' vite", "dev": "TAMAGUI_TARGET='web' vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview" "preview": "vite preview",
"lint": "eslint src",
"#typecheck": "tsc"
}, },
"dependencies": { "dependencies": {
"@status-im/components": "*", "@status-im/components": "*",

View File

@ -12,12 +12,11 @@
"scripts": { "scripts": {
"prepare": "husky install", "prepare": "husky install",
"test": "turbo run test --filter=@status-im/* -- --run", "test": "turbo run test --filter=@status-im/* -- --run",
"dev": "turbo run dev --parallel --filter=@status-im/*", "dev": "turbo run dev --filter=@status-im/* --parallel",
"build": "turbo run build --filter=@status-im/*", "build": "turbo run build --filter=@status-im/*",
"typecheck": "turbo run typecheck --filter=@status-im/*",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint/.eslint-cache .", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint/.eslint-cache .",
"typecheck": "turbo run typecheck",
"format": "prettier --ignore-path .gitignore --cache --write .", "format": "prettier --ignore-path .gitignore --cache --write .",
"format:check": "prettier --check .",
"clean": "turbo run clean && rimraf node_modules", "clean": "turbo run clean && rimraf node_modules",
"web": "yarn workspace web dev", "web": "yarn workspace web dev",
"mobile": "yarn workspace mobile dev", "mobile": "yarn workspace mobile dev",

View File

@ -14,9 +14,13 @@
"scripts": { "scripts": {
"dev": "tamagui-build --watch", "dev": "tamagui-build --watch",
"build": "tamagui-build", "build": "tamagui-build",
"postbuild": "yarn typegen",
"typegen": "tsc --noEmit false --emitDeclarationOnly || true", "typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src",
"typecheck": "tsc",
"storybook": "TAMAGUI_TARGET='web' storybook dev -p 3001", "storybook": "TAMAGUI_TARGET='web' storybook dev -p 3001",
"storybook:build": "TAMAGUI_TARGET='web' storybook build" "storybook:build": "TAMAGUI_TARGET='web' storybook build",
"clean": "rimraf node_modules dist .turbo storybook-static"
}, },
"peerDependencies": { "peerDependencies": {
"react-native-web": "^0.18.0" "react-native-web": "^0.18.0"

View File

@ -1,5 +1,5 @@
import { MutedIcon } from '@status-im/icons/20' import { MutedIcon } from '@status-im/icons/20'
import { Stack } from '@tamagui/core' import { Stack, Text } from '@tamagui/core'
import { Label, Paragraph } from '../typography' import { Label, Paragraph } from '../typography'
@ -67,7 +67,7 @@ const AccordionItem = (props: Props) => {
justifyContent="center" justifyContent="center"
alignItems="center" alignItems="center"
> >
{emoji} <Text>{emoji}</Text>
</Stack> </Stack>
)} )}
<Paragraph <Paragraph

View File

@ -19,14 +19,13 @@
"url": "https://github.com/status-im/status-web/issues" "url": "https://github.com/status-im/status-web/issues"
}, },
"scripts": { "scripts": {
"test": "vitest",
"dev": "vite build --watch --mode development", "dev": "vite build --watch --mode development",
"build": "vite build", "build": "vite build",
"postbuild": "yarn typegen", "postbuild": "yarn typegen",
"test": "vitest",
"typecheck": "tsc",
"typegen": "tsc --noEmit false --emitDeclarationOnly || true", "typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src", "lint": "eslint src",
"format": "prettier --write src", "typecheck": "tsc",
"protos": "protons protos/*.proto", "protos": "protons protos/*.proto",
"clean": "rimraf dist node_modules .turbo" "clean": "rimraf dist node_modules .turbo"
}, },

View File

@ -19,14 +19,13 @@
"url": "https://github.com/status-im/status-web/issues" "url": "https://github.com/status-im/status-web/issues"
}, },
"scripts": { "scripts": {
"#test": "vitest",
"dev": "vite build --watch --mode development", "dev": "vite build --watch --mode development",
"build": "vite build", "build": "vite build",
"postbuild": "yarn typegen", "postbuild": "yarn typegen",
"#test": "vitest",
"typecheck": "tsc",
"typegen": "tsc --noEmit false --emitDeclarationOnly || true", "typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src", "lint": "eslint src",
"format": "prettier --write src", "typecheck": "tsc",
"clean": "rimraf dist node_modules .turbo" "clean": "rimraf dist node_modules .turbo"
}, },
"dependencies": { "dependencies": {