@unisphere/nx 2.2.0 → 2.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"add-application.d.ts","sourceRoot":"","sources":["../../../src/generators/add-application/add-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAiB,MAAM,YAAY,CAAC;AAE7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AA0EzD,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,6BAA6B,uBAgIvC;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"add-application.d.ts","sourceRoot":"","sources":["../../../src/generators/add-application/add-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAiB,MAAM,YAAY,CAAC;AAE7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AA0EzD,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,6BAA6B,uBAsIvC;AAED,eAAe,uBAAuB,CAAC"}
@@ -81,6 +81,11 @@ async function addApplicationGenerator(tree, options) {
81
81
  // Extract environment variables
82
82
  const widgetName = unisphereConfig.name;
83
83
  const userInputApplicationName = (0, devkit_1.names)(options.name).fileName;
84
+ if (options.servingType === 'local-dev-playground') {
85
+ options.runtimeName = userInputApplicationName.endsWith('-dev')
86
+ ? userInputApplicationName
87
+ : `${userInputApplicationName}-dev`;
88
+ }
84
89
  // Prepare template variables
85
90
  const hasDs = selectedDependencies.includes('ds');
86
91
  const hasMui = selectedDependencies.includes('mui') || hasDs;
@@ -132,7 +132,7 @@ export function AppContent() {
132
132
  }
133
133
 
134
134
  return {
135
- appId: '<%= runtimeName__lowerDashCase %>-dev',
135
+ appId: '<%= runtimeName__lowerDashCase %>',
136
136
  appVersion: '1.0.0',
137
137
  serverUrl: configuration.unisphereServerUrl,
138
138
  ui: {
@@ -80,7 +80,7 @@ jobs:
80
80
  oidc-provider-name: ovp-github-oidc
81
81
 
82
82
  - name: Install dependencies
83
- run: npm ci --ignore-scripts
83
+ run: npm ci --include=optional
84
84
  env:
85
85
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86
86
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -126,7 +126,7 @@ jobs:
126
126
 
127
127
  - name: Install dependencies
128
128
  run: |
129
- npm ci --ignore-scripts
129
+ npm ci --include=optional
130
130
 
131
131
  env:
132
132
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -181,7 +181,7 @@ jobs:
181
181
 
182
182
  - name: Install dependencies
183
183
  run: |
184
- npm ci --ignore-scripts
184
+ npm ci --include=optional
185
185
  env:
186
186
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
187
187
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -232,7 +232,7 @@ jobs:
232
232
  with:
233
233
  oidc-provider-name: ovp-github-oidc
234
234
  - name: Install dependencies
235
- run: npm ci --ignore-scripts
235
+ run: npm ci --include=optional
236
236
  env:
237
237
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
238
238
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -287,7 +287,7 @@ jobs:
287
287
  with:
288
288
  oidc-provider-name: ovp-github-oidc
289
289
  - name: Install dependencies
290
- run: npm ci --ignore-scripts
290
+ run: npm ci --include=optional
291
291
  env:
292
292
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
293
293
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-rollup-patch.d.ts","sourceRoot":"","sources":["../../../src/migrations/1-23-0/delete-rollup-patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAS9D"}
1
+ {"version":3,"file":"delete-rollup-patch.d.ts","sourceRoot":"","sources":["../../../src/migrations/1-23-0/delete-rollup-patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAO9D"}
@@ -8,7 +8,4 @@ async function update(tree) {
8
8
  console.log(`Deleting rollup patch file: ${rollupPatchPath}`);
9
9
  tree.delete(rollupPatchPath);
10
10
  }
11
- else {
12
- throw new Error(`Rollup patch file not found at ${rollupPatchPath}`);
13
- }
14
11
  }
@@ -80,7 +80,7 @@ jobs:
80
80
  oidc-provider-name: ovp-github-oidc
81
81
 
82
82
  - name: Install dependencies
83
- run: npm ci --ignore-scripts
83
+ run: npm ci --include=optional
84
84
  env:
85
85
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86
86
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -126,7 +126,7 @@ jobs:
126
126
 
127
127
  - name: Install dependencies
128
128
  run: |
129
- npm ci --ignore-scripts
129
+ npm ci --include=optional
130
130
 
131
131
  env:
132
132
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -181,7 +181,7 @@ jobs:
181
181
 
182
182
  - name: Install dependencies
183
183
  run: |
184
- npm ci --ignore-scripts
184
+ npm ci --include=optional
185
185
  env:
186
186
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
187
187
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -232,7 +232,7 @@ jobs:
232
232
  with:
233
233
  oidc-provider-name: ovp-github-oidc
234
234
  - name: Install dependencies
235
- run: npm ci --ignore-scripts
235
+ run: npm ci --include=optional
236
236
  env:
237
237
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
238
238
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -287,7 +287,7 @@ jobs:
287
287
  with:
288
288
  oidc-provider-name: ovp-github-oidc
289
289
  - name: Install dependencies
290
- run: npm ci --ignore-scripts
290
+ run: npm ci --include=optional
291
291
  env:
292
292
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
293
293
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -1 +1 @@
1
- {"version":3,"file":"replace-readme-md.d.ts","sourceRoot":"","sources":["../../../src/migrations/2-1-0/replace-readme-md.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AAIpD,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAiD9D"}
1
+ {"version":3,"file":"replace-readme-md.d.ts","sourceRoot":"","sources":["../../../src/migrations/2-1-0/replace-readme-md.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AAIpD,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA+C9D"}
@@ -15,11 +15,10 @@ async function update(tree) {
15
15
  let processedContent = readmeTemplateContent;
16
16
  if (tree.exists(unispherePath)) {
17
17
  try {
18
- const unisphereContent = (0, devkit_1.readJson)(tree, unispherePath);
19
- if (!unisphereContent) {
18
+ const unisphereConfig = (0, devkit_1.readJson)(tree, unispherePath);
19
+ if (!unisphereConfig) {
20
20
  throw new Error('.unisphere file is empty');
21
21
  }
22
- const unisphereConfig = JSON.parse(unisphereContent);
23
22
  // Replace placeholders with values from .unisphere
24
23
  if (unisphereConfig.company) {
25
24
  processedContent = processedContent.replace(/\{\{company-name\|human-readable\}\}/g, unisphereConfig.company);
@@ -83,7 +83,7 @@ jobs:
83
83
  oidc-provider-name: ovp-github-oidc
84
84
 
85
85
  - name: Install dependencies
86
- run: npm ci --ignore-scripts
86
+ run: npm ci --include=optional
87
87
  env:
88
88
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89
89
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -129,7 +129,7 @@ jobs:
129
129
 
130
130
  - name: Install dependencies
131
131
  run: |
132
- npm ci --ignore-scripts
132
+ npm ci --include=optional
133
133
 
134
134
  env:
135
135
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -184,7 +184,7 @@ jobs:
184
184
 
185
185
  - name: Install dependencies
186
186
  run: |
187
- npm ci --ignore-scripts
187
+ npm ci --include=optional
188
188
  env:
189
189
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190
190
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -235,7 +235,7 @@ jobs:
235
235
  with:
236
236
  oidc-provider-name: ovp-github-oidc
237
237
  - name: Install dependencies
238
- run: npm ci --ignore-scripts
238
+ run: npm ci --include=optional
239
239
  env:
240
240
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241
241
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
@@ -290,7 +290,7 @@ jobs:
290
290
  with:
291
291
  oidc-provider-name: ovp-github-oidc
292
292
  - name: Install dependencies
293
- run: npm ci --ignore-scripts
293
+ run: npm ci --include=optional
294
294
  env:
295
295
  GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
296
296
  KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/nx",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",