create-unisphere-project 3.1.0 → 3.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # create-unisphere-project
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - sync templates with @unisphere/nx@4.7.0 migrations
8
+ - add .github/workflows/documentation.yml for deploying documentation sites to AWS
9
+ - pin @unisphere/nx to 4.7.0
10
+ - pin @unisphere/cli to 5.1.0
11
+
12
+ ## 3.1.1
13
+
14
+ ### Patch Changes
15
+
16
+ - sync templates with @unisphere/nx@4.5.2
17
+ - pin @unisphere/nx to 4.5.2
18
+
3
19
  ## 3.1.0
4
20
 
5
21
  ### Minor Changes
@@ -0,0 +1,68 @@
1
+ name: Documentations
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ permissions:
7
+ id-token: write
8
+ contents: write
9
+ packages: write
10
+
11
+ jobs:
12
+ deploy-to-aws:
13
+ runs-on:
14
+ - codebuild-ovp-unisphere-runner-${{ github.run_id }}-${{ github.attempt }}
15
+ strategy:
16
+ matrix:
17
+ envs_regions:
18
+ - env: nvp1
19
+ accountid: "583352821080"
20
+ region: us-east-1
21
+
22
+ steps:
23
+ - name: Checkout Repo at specific commit
24
+ uses: actions/checkout@v3
25
+
26
+ - name: Setup Node.js
27
+ uses: actions/setup-node@v4
28
+ with:
29
+ node-version: 24
30
+
31
+ - name: Setup JFrog
32
+ uses: jfrog/setup-jfrog-cli@v4
33
+ id: setup-jfrog
34
+ env:
35
+ JF_URL: https://kalturaa.jfrog.io
36
+ with:
37
+ oidc-provider-name: ovp-github-oidc
38
+
39
+ - name: Install dependencies
40
+ run: cd unisphere/documentation/{{project-name|lower-dash-case}} && npm ci --include=optional --ignore-scripts
41
+ env:
42
+ KALTURA_JFROG_TOKEN: ${{ steps.setup-jfrog.outputs.oidc-token }}
43
+
44
+ - name: Build documentation
45
+ run: cd unisphere/documentation/{{project-name|lower-dash-case}} && npm run build
46
+ env:
47
+ DOCUSAURUS_URL: 'https://docs.kaltura.ai/'
48
+ DOCUSAURUS_BASE_URL: '/{{project-name|lower-dash-case}}/'
49
+
50
+ - name: Configure AWS credentials
51
+ run: |
52
+ aws sts assume-role \
53
+ --role-arn arn:aws:iam::${{ matrix.envs_regions.accountid }}:role/${{ matrix.envs_regions.env }}-unisphere-content-role \
54
+ --role-session-name github-actions-deployment \
55
+ --query 'Credentials.[AccessKeyId,SecretAccessKey,SessionToken]' \
56
+ --output text | \
57
+ while read access_key secret_key session_token; do
58
+ echo "AWS_ACCESS_KEY_ID=$access_key" >> $GITHUB_ENV
59
+ echo "AWS_SECRET_ACCESS_KEY=$secret_key" >> $GITHUB_ENV
60
+ echo "AWS_SESSION_TOKEN=$session_token" >> $GITHUB_ENV
61
+ done
62
+ echo "AWS_DEFAULT_REGION=${{ matrix.envs_regions.region }}" >> $GITHUB_ENV
63
+
64
+ - name: Sync dist/documentations to S3
65
+ run: |
66
+ aws s3 sync unisphere/documentation/{{project-name|lower-dash-case}}/build s3://nvp1-kaltura-documentation/{{project-name|lower-dash-case}} \
67
+ --region ${{ matrix.envs_regions.region }} \
68
+ --delete
@@ -35,7 +35,7 @@
35
35
  "@kaltura/ds-react-utils": "^12.8.0",
36
36
  "@mui/icons-material": "7.3.7",
37
37
  "@mui/material": "7.3.7",
38
- "@unisphere/cli": "5.0.1",
38
+ "@unisphere/cli": "5.1.0",
39
39
  "@unisphere/core": "1",
40
40
  "@unisphere/notifications-core": "1",
41
41
  "@unisphere/notifications-runtime-react": "1",
@@ -78,7 +78,7 @@
78
78
  "@types/react-dom": "19.2.3",
79
79
  "@typescript-eslint/eslint-plugin": "^7.3.0",
80
80
  "@typescript-eslint/parser": "^7.3.0",
81
- "@unisphere/nx": "4.4.0",
81
+ "@unisphere/nx": "4.7.0",
82
82
  "@vitejs/plugin-react": "4.7.0",
83
83
  "@vitest/coverage-v8": "^1.0.4",
84
84
  "@vitest/ui": "^1.3.1",
@@ -13164,9 +13164,9 @@
13164
13164
  "license": "ISC"
13165
13165
  },
13166
13166
  "node_modules/@unisphere/cli": {
13167
- "version": "5.0.1",
13168
- "resolved": "https://registry.npmjs.org/@unisphere/cli/-/cli-5.0.1.tgz",
13169
- "integrity": "sha512-jI6uZJtj6O3YEy6+TDKBGW3Aao6JwICJsePTSn+rsZt+QEe5HnGi3ko2yhQw/qu6tkmvMAXSkiWx2l0YsbX0QA==",
13167
+ "version": "5.1.0",
13168
+ "resolved": "https://registry.npmjs.org/@unisphere/cli/-/cli-5.1.0.tgz",
13169
+ "integrity": "sha512-6oruOLHjt3TD0GVaV1dVN5fB3mt24mXNYR/icBzNGkzO/sUmmA7EWx/8P9r0fHU0mPmjKnz4ZtCE4RGFITxKYw==",
13170
13170
  "dependencies": {
13171
13171
  "@aws-sdk/client-s3": "3.1035.0",
13172
13172
  "@aws-sdk/client-sts": "3.1037.0",
@@ -13633,9 +13633,9 @@
13633
13633
  }
13634
13634
  },
13635
13635
  "node_modules/@unisphere/nx": {
13636
- "version": "4.4.0",
13637
- "resolved": "https://registry.npmjs.org/@unisphere/nx/-/nx-4.4.0.tgz",
13638
- "integrity": "sha512-v0xhE5IpPFbGF1qk0myZe9EKfunDNGdCNS5aWRvRsRtuVxsD2tR0WV849376QGJ8jcQRIxikLCBF06NU/o3MWA==",
13636
+ "version": "4.7.0",
13637
+ "resolved": "https://registry.npmjs.org/@unisphere/nx/-/nx-4.7.0.tgz",
13638
+ "integrity": "sha512-TM3hfLuXZyGFwFeIQCSPrqBE9Xh08PXyPUNQnOxPqkq9h7DDaJVSL/Iu3icO1802CVXBOV70WEV8PT55g4aA0w==",
13639
13639
  "dev": true,
13640
13640
  "dependencies": {
13641
13641
  "@nx/devkit": "21.2.1",
@@ -43,7 +43,7 @@
43
43
  "@types/react-dom": "19.2.3",
44
44
  "@typescript-eslint/eslint-plugin": "^7.3.0",
45
45
  "@typescript-eslint/parser": "^7.3.0",
46
- "@unisphere/nx": "4.4.0",
46
+ "@unisphere/nx": "4.7.0",
47
47
  "@vitejs/plugin-react": "4.7.0",
48
48
  "@vitest/coverage-v8": "^1.0.4",
49
49
  "@vitest/ui": "^1.3.1",
@@ -93,7 +93,7 @@
93
93
  "@kaltura/ds-react-utils": "^12.8.0",
94
94
  "@mui/icons-material": "7.3.7",
95
95
  "@mui/material": "7.3.7",
96
- "@unisphere/cli": "5.0.1",
96
+ "@unisphere/cli": "5.1.0",
97
97
  "@unisphere/core": "1",
98
98
  "@unisphere/notifications-core": "1",
99
99
  "@unisphere/notifications-runtime-react": "1",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-unisphere-project",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "private": false,
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -258,7 +258,7 @@ legacy-peer-deps=true`);
258
258
  skip: () => !!options.skipPackagesCreation,
259
259
  task: async (ctx, task) => {
260
260
  const packageName = options.nxpluginPath || '@unisphere/nx';
261
- const createDocumentationCommand = `npx nx g ${packageName}:add-documentation --isExperienceLevel --skipInstall --no-interactive`;
261
+ const createDocumentationCommand = `npx nx g ${packageName}:add-documentation --skipInstall --no-interactive`;
262
262
  debug(`Running: ${createDocumentationCommand}`);
263
263
  task.title = 'Creating documentation site';
264
264
  (0, child_process_1.execSync)(createDocumentationCommand, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-unisphere-project",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "private": false,
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",