feat: update environment configuration and scripts; add .npmrc, modify .nvmrc, and enhance package.json for development

This commit is contained in:
bobbert committed 2026-04-16 19:13:37 +01:00
1 parent f855dab467
commit 882571d53b
5 files changed
+26 -8

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
engine-strict=false
legacy-peer-deps=false
+1 -1
View File
@@ -1,2 +1,2 @@
25.7.0 20.19.4
+8 -1
View File
@@ -46,11 +46,18 @@ The method of obtaining the Google photos picker's api key is via:
- click save - click save
## Running the Project ## Running the Project
Node requirement: `>=20.19.4`.
Useful scripts: Useful scripts:
```bash ```bash
npx expo run:android npm run start
npm run android
npm run ios
npm run web
``` ```
These scripts set `NODE_ENV` automatically so Expo can load the correct mode during bundling.
### NAS backend ### NAS backend
+3
View File
@@ -7,6 +7,9 @@
"development": { "development": {
"developmentClient": true, "developmentClient": true,
"distribution": "internal", "distribution": "internal",
"env": {
"NODE_ENV": "development"
},
"android": { "android": {
"buildType": "apk" "buildType": "apk"
} }
+11 -6
View File
@@ -3,10 +3,11 @@
"version": "1.0.0", "version": "1.0.0",
"main": "App.js", "main": "App.js",
"scripts": { "scripts": {
"start": "npx expo start", "start": "NODE_ENV=development npx expo start",
"android": "npx expo run:android", "android": "NODE_ENV=development npx expo run:android",
"ios": "npx expo run:ios", "ios": "NODE_ENV=development npx expo run:ios",
"web": "npx expo start --web", "web": "NODE_ENV=development npx expo start --web",
"export": "NODE_ENV=production npx expo export",
"backend": "node ServerFiles/server.js" "backend": "node ServerFiles/server.js"
}, },
"dependencies": { "dependencies": {
@@ -25,7 +26,7 @@
"expo-secure-store": "~55.0.13", "expo-secure-store": "~55.0.13",
"expo-sqlite": "~55.0.15", "expo-sqlite": "~55.0.15",
"expo-status-bar": "~55.0.5", "expo-status-bar": "~55.0.5",
"expo-system-ui": "^55.0.15", "expo-system-ui": "~55.0.15",
"expo-web-browser": "~55.0.14", "expo-web-browser": "~55.0.14",
"fuse.js": "^7.1.0", "fuse.js": "^7.1.0",
"react": "19.2.0", "react": "19.2.0",
@@ -40,7 +41,8 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.29.0", "@babel/core": "^7.29.0",
"babel-preset-expo": "~55.0.17" "babel-preset-expo": "~55.0.17",
"yarn": "^1.22.22"
}, },
"overrides": { "overrides": {
"jscodeshift": "0.16.1", "jscodeshift": "0.16.1",
@@ -51,5 +53,8 @@
"glob": "^13.0.6", "glob": "^13.0.6",
"rimraf": "^4.0.0" "rimraf": "^4.0.0"
}, },
"engines": {
"node": ">=20.0.0"
},
"private": true "private": true
} }