@fto-consult/expo-ui 7.4.16 → 7.4.18
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/bin/gitignore.js +1 -0
- package/bin/index.js +9 -4
- package/electron/dependencies.js +1 -0
- package/package.json +3 -2
package/bin/gitignore.js
CHANGED
package/bin/index.js
CHANGED
@@ -53,16 +53,22 @@ program.command('electron')
|
|
53
53
|
.option('-a, --arch [architecture]', 'l\'architecture de la plateforme')
|
54
54
|
.option('-p, --platform [platform]', 'la plateforme à utiliser pour la compilation')
|
55
55
|
.action((script, options) => {
|
56
|
+
const electronProjectRoot = path.resolve(projectRoot,"electron");
|
56
57
|
const opts = Object.assign({},typeof options.opts =='function'? options.opts() : options);
|
57
58
|
let {out,arch,url,compile,platform} = opts;
|
58
59
|
//let {projectRoot} = opts;
|
59
60
|
if(projectRoot == dir){
|
60
61
|
throwError(`Invalid project root ${projectRoot}; project root must be different to ${dir}`);
|
61
62
|
}
|
62
|
-
|
63
|
+
let pathsJSON = path.resolve(getPaths(projectRoot));
|
64
|
+
const electronPathsJSON = path.resolve(electronProjectRoot,"paths.json");
|
63
65
|
if(!fs.existsSync(pathsJSON)){
|
64
|
-
|
65
|
-
|
66
|
+
if(fs.existsSync(electronPathsJSON)){
|
67
|
+
pathsJSON = electronPathsJSON
|
68
|
+
} else {
|
69
|
+
throwError("Le fichier des chemins d'accès à l'application est innexistant, rassurez vous de tester l'application en environnement web, via la cmde <npx expo start>, avant l'exécution du script electron.");
|
70
|
+
}
|
71
|
+
}
|
66
72
|
const paths = require(`${pathsJSON}`);
|
67
73
|
if(typeof paths !=='object' || !paths || !paths.projectRoot){
|
68
74
|
throwError("Fichiers des chemins d'application invalide!!! merci d'exécuter l'application en environnement web|android|ios puis réessayez");
|
@@ -72,7 +78,6 @@ program.command('electron')
|
|
72
78
|
throwError(`main app project root ${paths.projectRoot} must be equals to ${projectRoot} in which you want to generate electron app`);
|
73
79
|
}
|
74
80
|
|
75
|
-
const electronProjectRoot = path.resolve(projectRoot,"electron");
|
76
81
|
const isElectionInitialized = require("../electron/is-initialized")(electronProjectRoot);
|
77
82
|
process.env.isElectron = true;
|
78
83
|
process.env.isElectronScript = true;
|
package/electron/dependencies.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "7.4.
|
3
|
+
"version": "7.4.18",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"main": "main",
|
6
6
|
"scripts": {
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"expo-fix": "npx expo install --fix",
|
43
43
|
"update-apexchart": "node ./bin/update-appex-chart.js",
|
44
44
|
"update-pdfmake": "node ./bin/update-pdfmake.js",
|
45
|
-
"test-bin"
|
45
|
+
"test-bin": "node ./bin/index.js",
|
46
46
|
"update-appexchart": "npm run update-apexchart",
|
47
47
|
"delete-node-modules": "rimraf ./**/node_modules",
|
48
48
|
"dev": "npx expo start --no-dev --minify -c",
|
@@ -84,6 +84,7 @@
|
|
84
84
|
"@shopify/flash-list": "1.4.3",
|
85
85
|
"apexcharts": "^3.45.0",
|
86
86
|
"commander": "^11.1.0",
|
87
|
+
"conf": "^10.2.0",
|
87
88
|
"expo": "^49.0.21",
|
88
89
|
"expo-camera": "~13.4.4",
|
89
90
|
"expo-clipboard": "~4.3.1",
|