chore: init api package

This commit is contained in:
Adrian Castro
2024-03-27 10:50:33 +01:00
parent 772bee2c1f
commit febc9c5e92
6 changed files with 64 additions and 0 deletions

View File

@@ -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

View File

@@ -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
View 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"
}

View File

@@ -0,0 +1 @@
export const name = "api";

View 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
View File

@@ -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':