@fto-consult/expo-ui 8.48.0 → 8.48.2

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/create-app.js CHANGED
@@ -40,7 +40,7 @@ module.exports = function(appName,{projectRoot:root}){
40
40
  "build-web" : "npx expo export:web",
41
41
  "build-android" : "npx eas build --platform android --profile preview",
42
42
  "build-ios" : "eas build --platform ios",
43
- "generate-getTable" : "nxp @fto-consult/expo-ui generate-getTable"
43
+ "generate-getTable" : "npx @fto-consult/expo-ui generate-getTable"
44
44
  },
45
45
  "dependencies" : {
46
46
  [euModule] : packageObj.version,
@@ -115,24 +115,24 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
115
115
  if(!fs.existsSync(easIgnore)){
116
116
  try {
117
117
  writeFile(easIgnore,`
118
- node_modules/**/*
119
- .expo/*
120
- npm-debug.*
121
- *.jks
122
- *.p8
123
- *.p12
124
- *.key
125
- *.mobileprovision
126
- *.orig.*
127
- web-build/**/*
128
- web-report/**/*
129
- electron/**/*
130
-
131
- # macOS
132
- .DS_Store
133
-
134
- # Project
135
- .tmp/*
118
+ node_modules/**/*
119
+ .expo/*
120
+ npm-debug.*
121
+ *.jks
122
+ *.p8
123
+ *.p12
124
+ *.key
125
+ *.mobileprovision
126
+ *.orig.*
127
+ web-build/**/*
128
+ web-report/**/*
129
+ electron/**/*
130
+
131
+ # macOS
132
+ .DS_Store
133
+
134
+ # Project
135
+ .tmp/*
136
136
  `);
137
137
  } catch{};
138
138
  }
@@ -56,6 +56,12 @@ const generateTableOrStructDataStr = (tableDataPath)=>{
56
56
  //on génère le fichier getTable des tables data de l'application
57
57
  if(getTableJSContent){
58
58
  return (`
59
+ /*****
60
+ le contenu de cette fonction peut être généré automatiquement via les commandes suivantes (étant dans le repertoire de l'application)
61
+ npm run generate-getTable | npx @fto-consult/expo-ui generate-getTable. Notons que le script generate-getTable est définit comme étant l'un des scripts du package.json de l'application
62
+ @param {string} tableName, le nom de la table data
63
+ @return {object | null}, table, l'objet table associé
64
+ */
59
65
  export default function(tableName){
60
66
  \tif(!tableName || typeof tableName !=="string") return null;
61
67
  \ttableName = tableName.toUpperCase().trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.48.0",
3
+ "version": "8.48.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
6
6
  "scripts": {