@sap-ux/create 0.6.2 → 0.6.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.
@@ -66,6 +66,7 @@ function generateAdaptationProject(basePath, defaults, useDefaults, simulate, sk
66
66
  if (!basePath) {
67
67
  basePath = (0, path_1.join)(process.cwd(), config.app.id);
68
68
  }
69
+ addChangeForResourceModel(config);
69
70
  const fs = yield (0, adp_tooling_1.generate)(basePath, config);
70
71
  if (!simulate) {
71
72
  yield new Promise((resolve) => fs.commit(resolve));
@@ -114,4 +115,22 @@ function createConfigFromDefaults(defaults) {
114
115
  throw new Error('Missing required parameters. Please provide --id, --reference and --url.');
115
116
  }
116
117
  }
118
+ /**
119
+ * Add a change for a new resource model to the given configuration.
120
+ *
121
+ * @param config configuration to be enhanced
122
+ */
123
+ function addChangeForResourceModel(config) {
124
+ config.app.content = [
125
+ {
126
+ changeType: 'appdescr_ui5_addNewModelEnhanceWith',
127
+ content: {
128
+ modelId: 'i18n',
129
+ bundleUrl: 'i18n/i18n.properties',
130
+ supportedLocales: [''],
131
+ fallbackLocale: ''
132
+ }
133
+ }
134
+ ];
135
+ }
117
136
  //# sourceMappingURL=adaptation-project.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "0.6.2",
4
+ "version": "0.6.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,16 +30,16 @@
30
30
  "mem-fs": "2.1.0",
31
31
  "mem-fs-editor": "9.4.0",
32
32
  "prompts": "2.4.2",
33
- "@sap-ux/adp-tooling": "0.11.8",
34
- "@sap-ux/app-config-writer": "0.3.82",
35
- "@sap-ux/cap-config-writer": "0.5.5",
33
+ "@sap-ux/adp-tooling": "0.11.10",
34
+ "@sap-ux/app-config-writer": "0.3.83",
35
+ "@sap-ux/cap-config-writer": "0.5.6",
36
36
  "@sap-ux/cards-editor-config-writer": "0.3.9",
37
37
  "@sap-ux/inquirer-common": "0.3.1",
38
38
  "@sap-ux/logger": "0.5.1",
39
39
  "@sap-ux/mockserver-config-writer": "0.5.8",
40
- "@sap-ux/preview-middleware": "0.15.1",
40
+ "@sap-ux/preview-middleware": "0.15.3",
41
41
  "@sap-ux/project-access": "1.22.3",
42
- "@sap-ux/system-access": "0.4.6",
42
+ "@sap-ux/system-access": "0.4.7",
43
43
  "@sap-ux/ui5-config": "0.22.10"
44
44
  },
45
45
  "devDependencies": {