@swell/cli 2.0.2 → 2.0.4
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/dist/lib/apps/index.js +7 -8
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/lib/apps/index.js
CHANGED
|
@@ -206,13 +206,11 @@ function appAssetImage(appPath, fileName) {
|
|
|
206
206
|
}
|
|
207
207
|
function appConfigFromFile(filePath, configType, appPath) {
|
|
208
208
|
const { name } = path.parse(filePath);
|
|
209
|
-
// Nested files are considered 'file' type
|
|
210
|
-
const type = (filePath.split(path.sep).length > 2 ? 'file' : configType || 'file');
|
|
211
209
|
const config = AppConfig.create({
|
|
212
210
|
name,
|
|
213
211
|
filePath,
|
|
214
212
|
appPath,
|
|
215
|
-
type,
|
|
213
|
+
type: configType,
|
|
216
214
|
file_path: filePath,
|
|
217
215
|
});
|
|
218
216
|
// Do not allow files larger than 10MB
|
|
@@ -249,15 +247,16 @@ function batchAppFilesByType(configs) {
|
|
|
249
247
|
];
|
|
250
248
|
const batches = [];
|
|
251
249
|
// eslint-disable-next-line guard-for-in
|
|
252
|
-
for (const type
|
|
253
|
-
const
|
|
254
|
-
const
|
|
255
|
-
const
|
|
250
|
+
for (const type in ConfigTypeBatchOrder) {
|
|
251
|
+
const configType = ConfigTypeBatchOrder[type];
|
|
252
|
+
const configsByType = sorted.filter((config) => config.type === configType);
|
|
253
|
+
const label = configType === ConfigType.FILE ? 'App files' : titleize(configType);
|
|
254
|
+
const concurrency = configType === ConfigType.NOTIFICATION || configType === ConfigType.ASSET
|
|
256
255
|
? 1
|
|
257
256
|
: PUSH_CONCURRENCY;
|
|
258
257
|
batches.push({
|
|
259
258
|
configs: configsByType,
|
|
260
|
-
type,
|
|
259
|
+
type: configType,
|
|
261
260
|
label,
|
|
262
261
|
concurrency,
|
|
263
262
|
});
|
package/oclif.manifest.json
CHANGED