@fto-consult/expo-ui 8.2.1 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +3 -1
- package/bin/create-app.js +5 -0
- package/copy-env-file.js +10 -1
- package/package.json +4 -5
- package/src/screens/Help/openLibraries.js +3 -8
package/App.js
CHANGED
package/bin/create-app.js
CHANGED
@@ -11,6 +11,7 @@ module.exports = function(appName,{projectRoot:root}){
|
|
11
11
|
}
|
12
12
|
root = root && fs.existsSync(path.resolve(root))? path.resolve(root) : process.cwd();
|
13
13
|
const devDependencies = packageObj.devDependencies;
|
14
|
+
["expo"].map((d)=>delete devDependencies[d]);
|
14
15
|
const inSameFolder = typeof mainPackage?.name =="string" && mainPackage?.name.trim().toLowerCase() === name?.toLowerCase().trim();
|
15
16
|
const projectRoot = path.join(`${root}/${!inSameFolder && name || ""}`);
|
16
17
|
createDirSync(projectRoot);
|
@@ -23,6 +24,8 @@ module.exports = function(appName,{projectRoot:root}){
|
|
23
24
|
};
|
24
25
|
const euModule = "@fto-consult/expo-ui";
|
25
26
|
let hasUpdateDeps = false;
|
27
|
+
const rnModule = "react-native";
|
28
|
+
const expoModule = "expo";
|
26
29
|
console.log("creating application name "+name);
|
27
30
|
if(!hasPackage){
|
28
31
|
mainPackage = {
|
@@ -41,6 +44,8 @@ module.exports = function(appName,{projectRoot:root}){
|
|
41
44
|
},
|
42
45
|
"dependencies" : {
|
43
46
|
[euModule] : packageObj.version,
|
47
|
+
[rnModule] : packageObj.dependencies[rnModule],
|
48
|
+
[expoModule] : packageObj.devDependencies[euModule],
|
44
49
|
},
|
45
50
|
devDependencies : devDeps
|
46
51
|
}
|
package/copy-env-file.js
CHANGED
@@ -2,10 +2,19 @@ const fs = require("fs");
|
|
2
2
|
const path = require("path");
|
3
3
|
const {writeFile,copy} = require("./bin/utils");
|
4
4
|
|
5
|
+
const checkEnv = (...envrs)=>{
|
6
|
+
for(let i in envrs){
|
7
|
+
const env = envrs[i];
|
8
|
+
if(env && ["true","1",1].includes(process.env[env])){
|
9
|
+
return true;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
return false;
|
13
|
+
}
|
5
14
|
module.exports = (projectRoot,forceCreate)=>{
|
6
15
|
const env = typeof process.env.NODE_ENV =="string" && process.env.NODE_ENV.toLowerCase().trim() || "development";
|
7
16
|
const isDevEnv = 'development' === env;
|
8
|
-
if(!isDevEnv &&
|
17
|
+
if(!isDevEnv && checkEnv("IGNORE_ENV","NO_DOTENV")) return null;
|
9
18
|
projectRoot = projectRoot && typeof projectRoot =="string" && fs.existsSync(projectRoot) && projectRoot || process.cwd();
|
10
19
|
const pWithEnv = path.resolve(projectRoot,`.env.${env}`);
|
11
20
|
const environmentPath = fs.existsSync(pWithEnv) ? pWithEnv : path.resolve(projectRoot,".env");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.4.0",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"delete-node-modules": "rimraf ./**/node_modules",
|
48
48
|
"dev": "npx expo start --no-dev --minify -c",
|
49
49
|
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
|
50
|
-
"update": "npm i @fto-consult/node-utils@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest
|
50
|
+
"update": "npm i @fto-consult/node-utils@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run find-licenses"
|
51
51
|
},
|
52
52
|
"bin": {
|
53
53
|
"expo-ui": "./bin/index.js"
|
@@ -86,7 +86,6 @@
|
|
86
86
|
"apexcharts": "^3.45.1",
|
87
87
|
"commander": "^11.1.0",
|
88
88
|
"crypto-browserify": "^3.12.0",
|
89
|
-
"expo": "^50.0.2",
|
90
89
|
"expo-camera": "~14.0.1",
|
91
90
|
"expo-clipboard": "~5.0.1",
|
92
91
|
"expo-font": "~11.10.2",
|
@@ -98,7 +97,6 @@
|
|
98
97
|
"expo-system-ui": "~2.9.3",
|
99
98
|
"expo-web-browser": "~12.8.1",
|
100
99
|
"file-saver": "^2.0.5",
|
101
|
-
"fs-extra": "^11.2.0",
|
102
100
|
"google-libphonenumber": "^3.2.34",
|
103
101
|
"htmlparser2-without-node-native": "^3.9.2",
|
104
102
|
"is-plain-obj": "^4.1.0",
|
@@ -138,6 +136,7 @@
|
|
138
136
|
"@expo/metro-config": "~0.17.1",
|
139
137
|
"@expo/webpack-config": "^19.0.1",
|
140
138
|
"babel-plugin-inline-dotenv": "^1.7.0",
|
141
|
-
"babel-plugin-module-resolver": "^5.0.0"
|
139
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
140
|
+
"expo": "^50.0.2"
|
142
141
|
}
|
143
142
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
3
|
"name": "@fto-consult/expo-ui",
|
4
|
-
"version": "8.
|
4
|
+
"version": "8.2.1",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "git+https://github.com/borispipo/expo-ui.git"
|
@@ -49,7 +49,7 @@ module.exports = {
|
|
49
49
|
"license": "MIT"
|
50
50
|
},
|
51
51
|
"@fto-consult/common": {
|
52
|
-
"version": "4.
|
52
|
+
"version": "4.10.11",
|
53
53
|
"url": "https://github.com/borispipo/common#readme",
|
54
54
|
"license": "ISC"
|
55
55
|
},
|
@@ -187,11 +187,6 @@ module.exports = {
|
|
187
187
|
"url": "https://github.com/eligrey/FileSaver.js#readme",
|
188
188
|
"license": "MIT"
|
189
189
|
},
|
190
|
-
"fs-extra": {
|
191
|
-
"version": "11.2.0",
|
192
|
-
"url": "https://github.com/jprichardson/node-fs-extra",
|
193
|
-
"license": "MIT"
|
194
|
-
},
|
195
190
|
"google-libphonenumber": {
|
196
191
|
"version": "3.2.34",
|
197
192
|
"url": "https://ruimarinho.github.io/google-libphonenumber/",
|
@@ -207,7 +202,7 @@ module.exports = {
|
|
207
202
|
"license": "MIT"
|
208
203
|
},
|
209
204
|
"js-base64": {
|
210
|
-
"version": "3.7.
|
205
|
+
"version": "3.7.6",
|
211
206
|
"license": "BSD-3-Clause"
|
212
207
|
},
|
213
208
|
"process": {
|