mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:23:24 +00:00
chore: init api package
This commit is contained in:
@@ -17,6 +17,8 @@ apps
|
|||||||
├─ Navigation using Expo Router
|
├─ Navigation using Expo Router
|
||||||
└─ Styling with Tamagui
|
└─ Styling with Tamagui
|
||||||
packages
|
packages
|
||||||
|
├─ api
|
||||||
|
| └─ Typesafe API calls to the backend
|
||||||
├─ tmdb
|
├─ tmdb
|
||||||
| └─ Typesafe API calls to The Movie Database
|
| └─ Typesafe API calls to The Movie Database
|
||||||
└─ provider-utils
|
└─ provider-utils
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
"@movie-web/colors": "*",
|
"@movie-web/colors": "*",
|
||||||
"@movie-web/provider-utils": "*",
|
"@movie-web/provider-utils": "*",
|
||||||
"@movie-web/tmdb": "*",
|
"@movie-web/tmdb": "*",
|
||||||
|
"@movie-web/api": "*",
|
||||||
"@octokit/rest": "^20.0.2",
|
"@octokit/rest": "^20.0.2",
|
||||||
"@react-native-anywhere/polyfill-base64": "0.0.1-alpha.0",
|
"@react-native-anywhere/polyfill-base64": "0.0.1-alpha.0",
|
||||||
"@react-navigation/native": "^6.1.9",
|
"@react-navigation/native": "^6.1.9",
|
||||||
|
31
packages/api/package.json
Normal file
31
packages/api/package.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"name": "@movie-web/api",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.1.0",
|
||||||
|
"type": "module",
|
||||||
|
"main": "./src/index.ts",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rm -rf .turbo node_modules",
|
||||||
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@movie-web/eslint-config": "workspace:^0.2.0",
|
||||||
|
"@movie-web/prettier-config": "workspace:^0.1.0",
|
||||||
|
"@movie-web/tsconfig": "workspace:^0.1.0",
|
||||||
|
"eslint": "^8.56.0",
|
||||||
|
"prettier": "^3.1.1",
|
||||||
|
"typescript": "^5.3.3"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": [
|
||||||
|
"@movie-web/eslint-config/base"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prettier": "@movie-web/prettier-config"
|
||||||
|
}
|
1
packages/api/src/index.ts
Normal file
1
packages/api/src/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export const name = "api";
|
8
packages/api/tsconfig.json
Normal file
8
packages/api/tsconfig.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": "@movie-web/tsconfig/base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
|
||||||
|
},
|
||||||
|
"include": ["*.ts", "src"],
|
||||||
|
"exclude": ["node_modules"],
|
||||||
|
}
|
21
pnpm-lock.yaml
generated
21
pnpm-lock.yaml
generated
@@ -238,6 +238,27 @@ importers:
|
|||||||
specifier: ^5.3.3
|
specifier: ^5.3.3
|
||||||
version: 5.3.3
|
version: 5.3.3
|
||||||
|
|
||||||
|
packages/api:
|
||||||
|
devDependencies:
|
||||||
|
'@movie-web/eslint-config':
|
||||||
|
specifier: workspace:^0.2.0
|
||||||
|
version: link:../../tooling/eslint
|
||||||
|
'@movie-web/prettier-config':
|
||||||
|
specifier: workspace:^0.1.0
|
||||||
|
version: link:../../tooling/prettier
|
||||||
|
'@movie-web/tsconfig':
|
||||||
|
specifier: workspace:^0.1.0
|
||||||
|
version: link:../../tooling/typescript
|
||||||
|
eslint:
|
||||||
|
specifier: ^8.56.0
|
||||||
|
version: 8.56.0
|
||||||
|
prettier:
|
||||||
|
specifier: ^3.1.1
|
||||||
|
version: 3.2.4
|
||||||
|
typescript:
|
||||||
|
specifier: ^5.3.3
|
||||||
|
version: 5.3.3
|
||||||
|
|
||||||
packages/provider-utils:
|
packages/provider-utils:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@movie-web/providers':
|
'@movie-web/providers':
|
||||||
|
Reference in New Issue
Block a user