react-native-ui-lib 7.38.1-snapshot.6433 → 7.38.1-snapshot.6434
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/package.json
CHANGED
|
@@ -7,6 +7,7 @@ const fs = require('fs');
|
|
|
7
7
|
|
|
8
8
|
const COMPONENTS_DOCS_DIR = './docs/components';
|
|
9
9
|
const SERVICES_DOCS_DIR = './docs/services';
|
|
10
|
+
const FOUNDATION_DOCS_DIR = './docs/foundation';
|
|
10
11
|
|
|
11
12
|
const VALID_COMPONENTS_CATEGORIES = [
|
|
12
13
|
'foundation',
|
|
@@ -92,14 +93,22 @@ function processComponents(components) {
|
|
|
92
93
|
content += `${buildOldDocs(component)}\n`;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
|
|
96
96
|
let dirPath;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
switch (component.category) {
|
|
98
|
+
case 'services': {
|
|
99
|
+
dirPath = `${SERVICES_DOCS_DIR}`;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
case 'foundation': {
|
|
103
|
+
dirPath = `${FOUNDATION_DOCS_DIR}`;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
default: {
|
|
107
|
+
const componentParentDir =
|
|
108
|
+
componentParentName || isParentComponent ? `/${componentParentName || componentName}` : '';
|
|
109
|
+
dirPath = `${COMPONENTS_DOCS_DIR}/${component.category}${componentParentDir}`;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
103
112
|
}
|
|
104
113
|
|
|
105
114
|
if (!fs.existsSync(dirPath)) {
|