@fto-consult/expo-ui 6.18.7 → 6.18.9

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.
Files changed (2) hide show
  1. package/bin/index.js +7 -1
  2. package/package.json +4 -2
package/bin/index.js CHANGED
@@ -4,11 +4,13 @@
4
4
  process.on('unhandledRejection', err => {
5
5
  throw err;
6
6
  });
7
+ const createAppScript = "create-app";
7
8
  const supportedScript = {
8
9
  "init" : true, //initialize electron app
9
10
  "start" : true,//start electron
10
- "build" : true, //script pour faire un build
11
+ "build" : true, //script pour faire un build,
11
12
  "package" : true, ///script pour le packagin de l'application
13
+ createAppScript : true,//les script de création de l'application
12
14
  }
13
15
  const createDir = require("../electron/utils/createDir");
14
16
  const writeFile = require("../electron/utils/writeFile");
@@ -24,6 +26,7 @@ if(projectRoot == dir){
24
26
  }
25
27
 
26
28
  const parsedArgs = require("../electron/utils/parseArgs")(null,supportedScript);
29
+ parsedArgs.script = typeof parsedArgs.script =='string' && parsedArgs.script && parsedArgs.script.toLowerCase().trim() || "";
27
30
  if(!parsedArgs.script || !(parsedArgs.script in supportedScript)){
28
31
  console.error ("Erreur : script invalide, vous devez spécifier script figurant parmi les script : ["+Object.keys(supportedScript).join(", ")+"]");
29
32
  process.exit();
@@ -149,5 +152,8 @@ if(parsedArgs.electron){
149
152
  process.exit();
150
153
  });
151
154
  } else {
155
+ if(script ===createAppScript){
156
+ console.log(createAppScript," is script ",parsedArgs," is parse arrrrrr");
157
+ }
152
158
  process.exit();
153
159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.18.7",
3
+ "version": "6.18.9",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,7 +43,9 @@
43
43
  "modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
44
44
  "update": "npm i expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @gorhom/portal@latest @emotion/native@latest @fto-consult/common@latest react-native-blob-util react-native-gesture-handler@latest react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-safe-area-context@latest react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-native-screens@latest react-virtuoso@latest sharp-cli@latest tippy.js@latest websql@latest xlsx@latest && npx expo install --fix"
45
45
  },
46
- "bin": "./bin/index.js",
46
+ "bin": {
47
+ "expo-ui":"./bin/index.js"
48
+ },
47
49
  "repository": {
48
50
  "type": "git",
49
51
  "url": "git+https://github.com/borispipo/expo-ui.git"