@elo/elo-cli 1.0.3 → 1.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/README.md CHANGED
@@ -134,7 +134,7 @@ archive access (in this case 'dev').
134
134
  Inputs:
135
135
  - **use_sordType_icons**: n Are Sord type icons needed in the app (injects a CSS file from ELOwf).
136
136
  - **use_archive_icons**: n Are archive icons needed in the app (injects a CSS file from ELOwf).
137
- - **indexHtmlPath**: public/
137
+ - **indexHtmlPath**: .
138
138
  - **id**: my-project
139
139
  - **build_number**: 0
140
140
  - **useELOSession**: y
@@ -147,9 +147,9 @@ After initialization, the following files are present in the project:
147
147
  - .elo-current-repository - contains the name of the currently used repository (in this case 'dev').
148
148
 
149
149
  The following files still need to be adjusted; this is also indicated in the console:
150
- - main.ts - contains the code for loading the ELO libraries.
151
-
150
+ **main.ts** - contains the code for loading the ELO libraries.
152
151
 
152
+ ```
153
153
  import { createApp } from 'vue'
154
154
  import { initEloBaseServices, ixService, logger } from '@elo/elo-base-lib';
155
155
  import { LockC, EditInfoC } from '@elo/ix-client-typescript';
@@ -173,7 +173,7 @@ The following files still need to be adjusted; this is also indicated in the con
173
173
  } catch (error) {
174
174
  logger.error('Failed to initialize ELO Base Lib:', error);
175
175
  }
176
-
176
+ ```
177
177
 
178
178
 
179
179
  **vite.config.ts** - contains proxy settings for accessing the ELOwf during development; additionally, the
@@ -181,7 +181,7 @@ base path is set to ''. This links scripts relatively and ensures that the app w
181
181
  ELOwf and on the local development server. The TestHelpers allow access to the
182
182
  archive configuration of the setup command.
183
183
 
184
-
184
+ ```
185
185
  import { defineConfig, ProxyOptions } from 'vite'
186
186
  import TestHelpers from '@elo/elo-cli'; // load global config from elo-cli
187
187
  ...
@@ -202,6 +202,7 @@ archive configuration of the setup command.
202
202
  changeOrigin: true
203
203
  };
204
204
  export default defineConfig(config);
205
+ ```
205
206
 
206
207
  ### Localization
207
208
 
@@ -232,7 +233,7 @@ The entries can then be accessed via the singleton instance ``text.getText(key)`
232
233
 
233
234
  import { text } from '@elo/elo-base-lib';
234
235
  ...
235
- logger.info(text.getText("APP.NAME");
236
+ logger.info(text.getText("APP.GREETINGS"));
236
237
 
237
238
  ### Starting the App
238
239
 
@@ -243,8 +244,8 @@ To start the app on a local development server, use the command:
243
244
  The server starts on the port specified in vite.config.ts (here 5173) and sets up a proxy to the ELO archive
244
245
  as specified in dev.json.
245
246
 
246
- A request to http://localhost:5173 starts the app, a request to http://localhost:5173/repository/* is
247
- forwarded to the ELO archive http://elo:9090/repository/*.
247
+ A request to http://localhost:5173 starts the app, any request to http://localhost:5173/repository/ is
248
+ forwarded to the ELO archive http://elo:9090/repository/.
248
249
 
249
250
  ### Build and Deployment
250
251
 
package/dist/index.js CHANGED
@@ -2138,7 +2138,10 @@ const initCommand = new Command("init").description("Init the project").option("
2138
2138
  ).option(
2139
2139
  "--indexHtmlPath <string>",
2140
2140
  "The relative path where the index.html file is located, for example in Vue2: public/ for Vue3 it is ."
2141
- ).option("--namespace <string>", "The app namespace, for example: my.example.namespace").option("--id <string>", "The app id, for example: exampleId").option("--default_lang <string>", "The default language, for example: de").option("--build_number <number>", "The build number of the app, for example: 0").option("--use_elo_session <y/n>", "Enable, to use elo session, for example: y").option(
2141
+ ).option("--namespace <string>", "The app namespace, for example: my.example.namespace").option(
2142
+ "--id <string>",
2143
+ "The app id, for example: exampleId (allowed characters: a-z, A-Z, 0-9, _)"
2144
+ ).option("--default_lang <string>", "The default language, for example: de").option("--build_number <number>", "The build number of the app, for example: 0").option("--use_elo_session <y/n>", "Enable, to use elo session, for example: y").option(
2142
2145
  "--dev_redirect <string>",
2143
2146
  "Dev url of the app, which the login site of the ELOwf will redirect after successfull login. Necessary if elo session is enabled, for example: http://localhost:4200/"
2144
2147
  ).action(async (options, path) => {
@@ -3684,7 +3687,7 @@ async function processConfigParameter(options, path) {
3684
3687
  dist: "dist",
3685
3688
  namespace: "",
3686
3689
  id: "",
3687
- defaultLanguage: "de"
3690
+ defaultLanguage: "en"
3688
3691
  },
3689
3692
  ixLogin: {
3690
3693
  adminName: props.username,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.3",
6
+ "version": "1.0.4",
7
7
  "description": "ELO Apps command line build system for Node.js.",
8
8
  "keywords": [
9
9
  "@elo/elo-cli",