create-unisphere-project 2.0.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.
Files changed (45) hide show
  1. package/dist/CHANGELOG.md +26 -0
  2. package/dist/package.json +56 -0
  3. package/dist/src/index.d.ts +3 -0
  4. package/dist/src/index.d.ts.map +1 -0
  5. package/{src → dist/src}/index.js +0 -2
  6. package/{src → dist/src}/lib/create-unisphere-repo-command.d.ts +1 -0
  7. package/dist/src/lib/create-unisphere-repo-command.d.ts.map +1 -0
  8. package/{src → dist/src}/lib/create-unisphere-repo-command.js +38 -32
  9. package/{src → dist/src}/lib/overwrite-placeholders.d.ts +1 -0
  10. package/dist/src/lib/overwrite-placeholders.d.ts.map +1 -0
  11. package/{src → dist/src}/lib/overwrite-placeholders.js +19 -20
  12. package/{src → dist/src}/lib/utils.d.ts +1 -0
  13. package/dist/src/lib/utils.d.ts.map +1 -0
  14. package/{src → dist/src}/lib/utils.js +3 -4
  15. package/package.json +24 -13
  16. package/README.md +0 -59
  17. package/src/index.d.ts +0 -2
  18. package/src/index.js.map +0 -1
  19. package/src/lib/create-unisphere-repo-command.js.map +0 -1
  20. package/src/lib/overwrite-placeholders.js.map +0 -1
  21. package/src/lib/utils.js.map +0 -1
  22. /package/{_templates → dist/_templates}/unisphere-project/.changeset/README.md +0 -0
  23. /package/{_templates → dist/_templates}/unisphere-project/.changeset/config.json +0 -0
  24. /package/{_templates → dist/_templates}/unisphere-project/.editorconfig +0 -0
  25. /package/{_templates → dist/_templates}/unisphere-project/.eslintignore +0 -0
  26. /package/{_templates → dist/_templates}/unisphere-project/.eslintrc.json +0 -0
  27. /package/{_templates → dist/_templates}/unisphere-project/.github/workflows/_publish-artifacts.yml +0 -0
  28. /package/{_templates → dist/_templates}/unisphere-project/.github/workflows/cicd.yml +0 -0
  29. /package/{_templates → dist/_templates}/unisphere-project/.nvmrc +0 -0
  30. /package/{_templates → dist/_templates}/unisphere-project/.prettierignore +0 -0
  31. /package/{_templates → dist/_templates}/unisphere-project/.prettierrc +0 -0
  32. /package/{_templates → dist/_templates}/unisphere-project/.unisphere +0 -0
  33. /package/{_templates → dist/_templates}/unisphere-project/README.md +0 -0
  34. /package/{_templates → dist/_templates}/unisphere-project/gitignore +0 -0
  35. /package/{_templates → dist/_templates}/unisphere-project/jest.config.ts +0 -0
  36. /package/{_templates → dist/_templates}/unisphere-project/jest.preset.js +0 -0
  37. /package/{_templates → dist/_templates}/unisphere-project/nx.json +0 -0
  38. /package/{_templates → dist/_templates}/unisphere-project/package.json +0 -0
  39. /package/{_templates → dist/_templates}/unisphere-project/patches/@changesets+cli+2.29.7.patch +0 -0
  40. /package/{_templates → dist/_templates}/unisphere-project/patches/@nx+rollup+22.1.3.patch +0 -0
  41. /package/{_templates → dist/_templates}/unisphere-project/tsconfig.base.json +0 -0
  42. /package/{_templates → dist/_templates}/unisphere-project/unisphere/applications/.gitkeep +0 -0
  43. /package/{_templates → dist/_templates}/unisphere-project/unisphere/packages/.gitkeep +0 -0
  44. /package/{_templates → dist/_templates}/unisphere-project/unisphere/runtimes/.gitkeep +0 -0
  45. /package/{_templates → dist/_templates}/unisphere-project/vitest.workspace.ts +0 -0
@@ -0,0 +1,26 @@
1
+ # create-unisphere-project
2
+
3
+ ## 2.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - release versions
8
+
9
+
10
+ ## 2.2.1
11
+
12
+ ### Patch Changes
13
+
14
+ - release versions
15
+
16
+ ## 2.2.0
17
+
18
+ ### Minor Changes
19
+
20
+ - release unisphere create
21
+
22
+ ## 2.1.0
23
+
24
+ ### Minor Changes
25
+
26
+ - add create template
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "create-unisphere-project",
3
+ "version": "2.2.2",
4
+ "private": false,
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "bin": {
8
+ "create-unisphere-project": "./src/index.js"
9
+ },
10
+ "preferGlobal": true,
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "author": {
15
+ "name": "Kaltura",
16
+ "contributors": [
17
+ {
18
+ "name": "Eran Sakal",
19
+ "email": "eran.sakal@kaltura.com"
20
+ },
21
+ {
22
+ "name": "Tornike Menabde",
23
+ "email": "tornike.menabde@kaltura.com"
24
+ }
25
+ ]
26
+ },
27
+ "engines": {
28
+ "node": ">=18"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/kaltura/unisphere-nx"
33
+ },
34
+ "exports": {
35
+ "./package.json": "./package.json",
36
+ ".": {
37
+ "@unisphere/nx-plugin": "./src/index.ts",
38
+ "types": "./src/index.d.ts",
39
+ "import": "./src/index.js",
40
+ "default": "./src/index.js"
41
+ }
42
+ },
43
+ "dependencies": {
44
+ "commander": "^12.0.0",
45
+ "debug": "^4.3.4",
46
+ "fs-extra": "^11.2.0",
47
+ "inquirer": "^8.2.6",
48
+ "listr2": "^8.0.0",
49
+ "tslib": "^2.3.0"
50
+ },
51
+ "files": [
52
+ "dist",
53
+ "!**/*.tsbuildinfo"
54
+ ],
55
+ "type": "commonjs"
56
+ }
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
@@ -3,7 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const create_unisphere_repo_command_1 = require("./lib/create-unisphere-repo-command");
5
5
  const commander_1 = require("commander");
6
- // bump version 1
7
6
  const command = (0, create_unisphere_repo_command_1.createCreateUnisphereRepoCommand)(new commander_1.Command());
8
7
  command.parse(process.argv);
9
- //# sourceMappingURL=index.js.map
@@ -1,2 +1,3 @@
1
1
  import { Command } from 'commander';
2
2
  export declare const createCreateUnisphereRepoCommand: (parentCommand: Command) => Command;
3
+ //# sourceMappingURL=create-unisphere-repo-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-unisphere-repo-command.d.ts","sourceRoot":"","sources":["../../../src/lib/create-unisphere-repo-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAsC5C,eAAO,MAAM,gCAAgC,GAC3C,eAAe,OAAO,KACrB,OAiUF,CAAC"}
@@ -4,7 +4,7 @@ exports.createCreateUnisphereRepoCommand = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const commander_1 = require("commander");
6
6
  const utils_1 = require("./utils");
7
- const debug_1 = require("debug");
7
+ const debug_1 = tslib_1.__importDefault(require("debug"));
8
8
  const listr2_1 = require("listr2");
9
9
  const utils_2 = require("./utils");
10
10
  const path_1 = require("path");
@@ -50,7 +50,7 @@ const createCreateUnisphereRepoCommand = (parentCommand) => {
50
50
  .option('--is-internal-product <boolean>', 'Is internal product')
51
51
  .option('--verbose', 'Output debug logs', false)
52
52
  .hook('preAction', utils_1.printVerboseHook)
53
- .action((options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
53
+ .action(async (options) => {
54
54
  const cwd = (0, path_1.resolve)(options.cwd || process.cwd());
55
55
  // Get values from options or prompt for all of them
56
56
  let _companyName = options.companyName;
@@ -100,7 +100,7 @@ const createCreateUnisphereRepoCommand = (parentCommand) => {
100
100
  }
101
101
  // Prompt for missing values
102
102
  if (questions.length > 0) {
103
- const answers = yield inquirer.prompt(questions);
103
+ const answers = await inquirer.prompt(questions);
104
104
  _companyName = _companyName || answers.companyName;
105
105
  _experienceName = _experienceName || answers.experienceName;
106
106
  _isInternalProduct = _isInternalProduct || answers.isInternalProduct;
@@ -140,14 +140,13 @@ const createCreateUnisphereRepoCommand = (parentCommand) => {
140
140
  },
141
141
  {
142
142
  title: 'Copy template from local path',
143
- task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
143
+ task: async (ctx, task) => {
144
144
  debug(`Created repository folder: ${newProjectPath}`);
145
145
  (0, fs_1.mkdirSync)(newProjectPath, { recursive: true });
146
146
  debug(`Copying from ${NEW_REPO_PATH} to ${newProjectPath}`);
147
147
  try {
148
- yield (0, fs_extra_1.copy)(NEW_REPO_PATH, newProjectPath, {
148
+ await (0, fs_extra_1.copy)(NEW_REPO_PATH, newProjectPath, {
149
149
  overwrite: true,
150
- recursive: true,
151
150
  });
152
151
  debug(`Successfully copied template from ${NEW_REPO_PATH}`);
153
152
  // Rename gitignore to .gitignore (npm pack excludes .gitignore files)
@@ -155,45 +154,49 @@ const createCreateUnisphereRepoCommand = (parentCommand) => {
155
154
  const dotGitignorePath = (0, path_1.resolve)(newProjectPath, '.gitignore');
156
155
  if ((0, fs_1.existsSync)(gitignorePath)) {
157
156
  debug(`Renaming ${gitignorePath} to ${dotGitignorePath}`);
158
- yield (0, fs_extra_1.copy)(gitignorePath, dotGitignorePath);
157
+ await (0, fs_extra_1.copy)(gitignorePath, dotGitignorePath);
159
158
  (0, fs_1.rmSync)(gitignorePath);
160
159
  }
161
160
  if (originalCompanyNameValue.toLowerCase() === 'kaltura') {
162
161
  const npmRcPath = (0, path_1.resolve)(newProjectPath, '.npmrc');
163
162
  debug(`Creating .npmrc file at ${npmRcPath}`);
164
- yield (0, fs_extra_1.outputFile)(npmRcPath, `registry=https://kalturaa.jfrog.io/artifactory/api/npm/platform-npm/
165
- //kalturaa.jfrog.io/artifactory/api/npm/platform-npm/:_authToken=\${KALTURA_JFROG_TOKEN}
166
- @kaltura:registry=https://npm.pkg.github.com
167
- //npm.pkg.github.com/:_authToken=\${GIT_TOKEN}
163
+ await (0, fs_extra_1.outputFile)(npmRcPath, `registry=https://kalturaa.jfrog.io/artifactory/api/npm/platform-npm/
164
+ //kalturaa.jfrog.io/artifactory/api/npm/platform-npm/:_authToken=\${KALTURA_JFROG_TOKEN}
165
+ @kaltura:registry=https://npm.pkg.github.com
166
+ //npm.pkg.github.com/:_authToken=\${GIT_TOKEN}
168
167
  legacy-peer-deps=true`);
169
168
  }
170
169
  }
171
170
  catch (error) {
172
171
  throw new Error(`Failed to copy template: ${error.message}`);
173
172
  }
174
- }),
173
+ },
175
174
  },
176
175
  {
177
176
  title: 'Customize template for experience',
178
- task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
177
+ task: async (ctx, task) => {
179
178
  task.title = 'Processing template files and placeholders';
180
- yield (0, overwrite_placeholders_1.overwritePlaceholders)(newProjectPath, {
179
+ await (0, overwrite_placeholders_1.overwritePlaceholders)(newProjectPath, {
181
180
  companyName,
182
181
  experienceName,
183
182
  });
184
183
  task.title = 'Template customization completed';
185
- }),
184
+ },
186
185
  },
187
186
  {
188
187
  title: 'Install packages',
189
- task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
188
+ task: async (ctx, task) => {
190
189
  const packageJsonPath = (0, path_1.resolve)(newProjectPath, 'package.json');
191
190
  if (!(0, fs_1.existsSync)(packageJsonPath)) {
192
191
  task.skip('No package.json found');
193
192
  return;
194
193
  }
195
- const packageJson = yield (0, fs_extra_1.readJson)(packageJsonPath);
196
- const allDependencies = Object.assign(Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies), packageJson.peerDependencies);
194
+ const packageJson = await (0, fs_extra_1.readJson)(packageJsonPath);
195
+ const allDependencies = {
196
+ ...packageJson.dependencies,
197
+ ...packageJson.devDependencies,
198
+ ...packageJson.peerDependencies,
199
+ };
197
200
  const unispherePackages = Object.keys(allDependencies).filter((pkg) => pkg.startsWith('@unisphere') && pkg !== '@unisphere/nx');
198
201
  debug(`Found @unisphere packages: ${unispherePackages.join(', ')}`);
199
202
  const unispherePackagesToInstall = unispherePackages.map((pkg) => `${pkg}@latest`);
@@ -201,16 +204,18 @@ legacy-peer-deps=true`);
201
204
  (0, child_process_1.execSync)(`npm install ${unispherePackagesToInstall.join(' ')} --force`, {
202
205
  cwd: newProjectPath,
203
206
  stdio: 'inherit',
204
- env: Object.assign({}, process.env)
207
+ env: {
208
+ ...process.env
209
+ }
205
210
  });
206
211
  task.title =
207
212
  'Installing @unisphere packages (beside unisphere nx migration package)';
208
- }),
213
+ },
209
214
  },
210
215
  {
211
216
  title: 'Create types package',
212
217
  skip: () => options.skipPackagesCreation,
213
- task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
218
+ task: async (ctx, task) => {
214
219
  const packageName = options.nxpluginPath || '@unisphere/nx';
215
220
  const createTypesCommand = `npx nx g ${packageName}:add-package --packageName="types" --scope="${_isInternalProduct ? 'internal' : 'public'}" --no-interactive`;
216
221
  debug(`Running: ${createTypesCommand}`);
@@ -218,24 +223,26 @@ legacy-peer-deps=true`);
218
223
  (0, child_process_1.execSync)(createTypesCommand, {
219
224
  cwd: newProjectPath,
220
225
  stdio: 'inherit',
221
- env: Object.assign({}, process.env)
226
+ env: {
227
+ ...process.env
228
+ }
222
229
  });
223
230
  // Create widget-types.ts file in types package
224
231
  const widgetTypesPath = (0, path_1.resolve)(newProjectPath, 'unisphere/packages/types/src/lib/widget-types.ts');
225
232
  const _companyName = companyName === 'kaltura' ? 'unisphere' : companyName;
226
233
  const widgetTypesContent = `export const widgetName = '${_companyName}.widget.${experienceName}' as const`;
227
234
  debug(`Creating widget-types.ts at: ${widgetTypesPath}`);
228
- yield (0, fs_extra_1.outputFile)(widgetTypesPath, widgetTypesContent);
235
+ await (0, fs_extra_1.outputFile)(widgetTypesPath, widgetTypesContent);
229
236
  const indexFileContent = `export * from './lib/widget-types';`;
230
237
  const indexPath = (0, path_1.resolve)(newProjectPath, 'unisphere/packages/types/src/index.ts');
231
238
  debug(`Creating index.ts at: ${indexPath}`);
232
- yield (0, fs_extra_1.outputFile)(indexPath, indexFileContent);
239
+ await (0, fs_extra_1.outputFile)(indexPath, indexFileContent);
233
240
  task.title = 'Types package created';
234
- }),
241
+ },
235
242
  },
236
243
  {
237
244
  title: 'Initialize git repository',
238
- task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
245
+ task: async (ctx, task) => {
239
246
  try {
240
247
  debug('Initializing git repository');
241
248
  (0, child_process_1.execSync)('git init', {
@@ -248,11 +255,11 @@ legacy-peer-deps=true`);
248
255
  debug(`Error initializing git: ${error.message}`);
249
256
  throw new Error(`Failed to initialize git repository: ${error.message}`);
250
257
  }
251
- }),
258
+ },
252
259
  },
253
260
  {
254
261
  title: 'Create initial commit',
255
- task: (ctx, task) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
262
+ task: async (ctx, task) => {
256
263
  try {
257
264
  debug('Adding all files to git');
258
265
  (0, child_process_1.execSync)('git add .', {
@@ -270,14 +277,13 @@ legacy-peer-deps=true`);
270
277
  debug(`Error creating initial commit: ${error.message}`);
271
278
  throw new Error(`Failed to create initial commit: ${error.message}`);
272
279
  }
273
- }),
280
+ },
274
281
  }
275
282
  ];
276
283
  const taskRunner = new listr2_1.Listr(tasks, (0, utils_2.getDefaultListrOptions)());
277
- yield taskRunner.run();
284
+ await taskRunner.run();
278
285
  console.log(`Successfully created unisphere repository: ${newProjectPath}`);
279
- }));
286
+ });
280
287
  return command;
281
288
  };
282
289
  exports.createCreateUnisphereRepoCommand = createCreateUnisphereRepoCommand;
283
- //# sourceMappingURL=create-unisphere-repo-command.js.map
@@ -2,3 +2,4 @@ export declare const overwritePlaceholders: (folderPath: string, { companyName,
2
2
  companyName: string;
3
3
  experienceName: string;
4
4
  }) => Promise<void>;
5
+ //# sourceMappingURL=overwrite-placeholders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overwrite-placeholders.d.ts","sourceRoot":"","sources":["../../../src/lib/overwrite-placeholders.ts"],"names":[],"mappings":"AA6HA,eAAO,MAAM,qBAAqB,GAChC,YAAY,MAAM,EAClB,kCAGG;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,kBAoBF,CAAC"}
@@ -4,7 +4,7 @@ exports.overwritePlaceholders = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fs_extra_1 = require("fs-extra");
6
6
  const path_1 = require("path");
7
- const debug_1 = require("debug");
7
+ const debug_1 = tslib_1.__importDefault(require("debug"));
8
8
  const debug = (0, debug_1.default)('unisphere:utils:overwrite-placeholders');
9
9
  // Transformation functions
10
10
  const transformations = {
@@ -52,12 +52,12 @@ const replacePlaceholders = (content, replacements) => {
52
52
  return result;
53
53
  };
54
54
  // Process a single file
55
- const processFile = (filePath, replacements) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
55
+ const processFile = async (filePath, replacements) => {
56
56
  try {
57
- const content = yield (0, fs_extra_1.readFile)(filePath, 'utf-8');
57
+ const content = await (0, fs_extra_1.readFile)(filePath, 'utf-8');
58
58
  const newContent = replacePlaceholders(content, replacements);
59
59
  if (newContent !== content) {
60
- yield (0, fs_extra_1.writeFile)(filePath, newContent, 'utf-8');
60
+ await (0, fs_extra_1.writeFile)(filePath, newContent, 'utf-8');
61
61
  debug(`Processed placeholders in: ${filePath}`);
62
62
  }
63
63
  }
@@ -65,40 +65,40 @@ const processFile = (filePath, replacements) => tslib_1.__awaiter(void 0, void 0
65
65
  // Skip binary files or files that can't be read as text
66
66
  debug(`Skipping file (likely binary): ${filePath}`);
67
67
  }
68
- });
68
+ };
69
69
  // Rename file or directory if it contains placeholders
70
- const renameIfNeeded = (itemPath, replacements) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
70
+ const renameIfNeeded = async (itemPath, replacements) => {
71
71
  const itemName = (0, path_1.basename)(itemPath);
72
72
  const newItemName = replacePlaceholders(itemName, replacements);
73
73
  if (newItemName !== itemName) {
74
74
  const newItemPath = (0, path_1.join)((0, path_1.dirname)(itemPath), newItemName);
75
- yield (0, fs_extra_1.rename)(itemPath, newItemPath);
75
+ await (0, fs_extra_1.rename)(itemPath, newItemPath);
76
76
  debug(`Renamed: ${itemName} → ${newItemName}`);
77
77
  return newItemPath;
78
78
  }
79
79
  return itemPath;
80
- });
80
+ };
81
81
  // Recursively process directory
82
- const processDirectory = (dirPath, replacements) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
83
- const items = yield (0, fs_extra_1.readdir)(dirPath);
82
+ const processDirectory = async (dirPath, replacements) => {
83
+ const items = await (0, fs_extra_1.readdir)(dirPath);
84
84
  for (const item of items) {
85
85
  const itemPath = (0, path_1.join)(dirPath, item);
86
- const itemStat = yield (0, fs_extra_1.stat)(itemPath);
86
+ const itemStat = await (0, fs_extra_1.stat)(itemPath);
87
87
  if (itemStat.isDirectory()) {
88
88
  // Recursively process subdirectories first
89
- yield processDirectory(itemPath, replacements);
89
+ await processDirectory(itemPath, replacements);
90
90
  // Then rename directory if needed
91
- yield renameIfNeeded(itemPath, replacements);
91
+ await renameIfNeeded(itemPath, replacements);
92
92
  }
93
93
  else {
94
94
  // Process file content
95
- yield processFile(itemPath, replacements);
95
+ await processFile(itemPath, replacements);
96
96
  // Rename file if needed
97
- yield renameIfNeeded(itemPath, replacements);
97
+ await renameIfNeeded(itemPath, replacements);
98
98
  }
99
99
  }
100
- });
101
- const overwritePlaceholders = (folderPath_1, _a) => tslib_1.__awaiter(void 0, [folderPath_1, _a], void 0, function* (folderPath, { companyName, experienceName, }) {
100
+ };
101
+ const overwritePlaceholders = async (folderPath, { companyName, experienceName, }) => {
102
102
  debug(`Processing placeholders in: ${folderPath}`);
103
103
  // Create replacement map
104
104
  const replacements = {
@@ -107,13 +107,12 @@ const overwritePlaceholders = (folderPath_1, _a) => tslib_1.__awaiter(void 0, [f
107
107
  };
108
108
  debug(`Placeholder replacements:`, replacements);
109
109
  try {
110
- yield processDirectory(folderPath, replacements);
110
+ await processDirectory(folderPath, replacements);
111
111
  debug(`Successfully processed all placeholders in: ${folderPath}`);
112
112
  }
113
113
  catch (error) {
114
114
  debug(`Error processing placeholders: ${error.message}`);
115
115
  throw new Error(`Failed to process placeholders: ${error.message}`);
116
116
  }
117
- });
117
+ };
118
118
  exports.overwritePlaceholders = overwritePlaceholders;
119
- //# sourceMappingURL=overwrite-placeholders.js.map
@@ -4,3 +4,4 @@ export declare const printVerboseHook: (thisCommand: Command) => void;
4
4
  export declare const getDefaultListrOptions: ({ collapseSubtasks, }?: {
5
5
  collapseSubtasks?: boolean;
6
6
  }) => ListrBaseClassOptions<any, any, any>;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAG/C,eAAO,MAAM,gBAAgB,GAAI,aAAa,OAAO,KAAG,IAQvD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,wBAEpC;IACD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACvB,KAAG,qBAAqB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAc3C,CAAC"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getDefaultListrOptions = exports.printVerboseHook = void 0;
4
- const debug_1 = require("debug");
4
+ const tslib_1 = require("tslib");
5
+ const debug_1 = tslib_1.__importDefault(require("debug"));
5
6
  const debug = (0, debug_1.default)('create-unisphere-project');
6
7
  const printVerboseHook = (thisCommand) => {
7
8
  const options = thisCommand.opts();
8
9
  if (options.verbose) {
9
- debug.enable('create-unisphere-project*');
10
+ debug_1.default.enable('create-unisphere-project*');
10
11
  debug('CLI arguments');
11
12
  debug(options);
12
13
  }
@@ -25,7 +26,5 @@ const getDefaultListrOptions = ({ collapseSubtasks = false, } = {}) => {
25
26
  showErrorMessage: false,
26
27
  },
27
28
  };
28
- // }
29
29
  };
30
30
  exports.getDefaultListrOptions = getDefaultListrOptions;
31
- //# sourceMappingURL=utils.js.map
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "create-unisphere-project",
3
- "version": "2.0.0",
3
+ "version": "2.2.2",
4
+ "private": false,
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
4
7
  "bin": {
5
8
  "create-unisphere-project": "./src/index.js"
6
9
  },
7
- "scripts": {},
8
10
  "preferGlobal": true,
9
- "private": false,
10
11
  "publishConfig": {
11
12
  "access": "public"
12
13
  },
@@ -28,17 +29,27 @@
28
29
  },
29
30
  "repository": {
30
31
  "type": "git",
31
- "url": "https://github.com/kaltura/unisphere-cli"
32
+ "url": "https://github.com/kaltura/unisphere-nx"
33
+ },
34
+ "exports": {
35
+ "./package.json": "./package.json",
36
+ ".": {
37
+ "@unisphere/nx-plugin": "./src/index.ts",
38
+ "types": "./src/index.d.ts",
39
+ "import": "./src/index.js",
40
+ "default": "./src/index.js"
41
+ }
32
42
  },
33
- "main": "./src/index.js",
34
- "types": "./src/index.d.ts",
35
43
  "dependencies": {
36
- "commander": "9.4.1",
37
- "debug": "4.4.0",
38
- "listr2": "8.2.5",
39
- "fs-extra": "10.1.0",
40
- "inquirer": "8.2.6",
41
- "tslib": "2.4.1"
44
+ "commander": "^12.0.0",
45
+ "debug": "^4.3.4",
46
+ "fs-extra": "^11.2.0",
47
+ "inquirer": "^8.2.6",
48
+ "listr2": "^8.0.0",
49
+ "tslib": "^2.3.0"
42
50
  },
43
- "peerDependencies": {}
51
+ "files": [
52
+ "dist",
53
+ "!**/*.tsbuildinfo"
54
+ ]
44
55
  }
package/README.md DELETED
@@ -1,59 +0,0 @@
1
- # Create Unisphere Project
2
-
3
- > This is a temporary documentation for the `@unisphere/nx` plugin until the official documentation is available.
4
-
5
- The **Unisphere Create Package** provides a simple way to scaffold new Unisphere-based projects using a guided CLI interface. It sets up your workspace with the necessary structure, configurations, and tooling to start building modular, composable experiences within the Unisphere framework.
6
-
7
- ## Kaltura-Specific Requirements
8
-
9
- > The Unisphere project currently requires internal access to CI/CD infrastructure, GitHub repositories, and publishing pipelines specific to Kaltura.
10
-
11
- To successfully use the CLI within the Kaltura environment:
12
-
13
- - You **must be a Kaltura employee** with access to the internal GitHub repositories.
14
- - Ensure that your environment has a valid `GITHUB_TOKEN` set up:
15
-
16
- ```bash
17
- export GITHUB_TOKEN=ghp_your_token_here
18
- ```
19
-
20
- This token is used to authenticate CLI operations involving private packages, repo cloning, and CI configuration steps.
21
-
22
- ## Quick Start
23
-
24
- To create a new Unisphere workspace, run:
25
-
26
- ```bash
27
- npm create unisphere-project@latest
28
- ```
29
-
30
- Follow the prompts to select your project name, base template, and initial configuration.
31
-
32
- ## What It Does
33
-
34
- The `create-unisphere-project` command:
35
-
36
- - Initializes a new NX monorepo preconfigured for Unisphere.
37
- - Creates a `core` package that holds all the types to ease integration with the experience.
38
- - Installs the [`@unisphere/nx`](https://www.npmjs.com/package/@unisphere/nx) plugin.
39
- - Scaffolds workspace libraries, applications, and configuration aligned with Unisphere conventions.
40
- - Optionally sets up first runtimes or widgets through guided prompts.
41
-
42
- This setup ensures your environment is ready to support runtimes, packages, and applications.
43
-
44
- ## Next Steps
45
-
46
- After the project is created, you can:
47
-
48
- - Use the built-in NX generators to scaffold runtimes, widgets, components, and services.
49
- - Run your application locally using the workspace playground.
50
- - Extend your setup to support different deployment modes like standalone, embedded, or host-driven runtimes.
51
-
52
- All advanced capabilities and configuration details are available in the official plugin documentation:
53
- 👉 [@unisphere/nx on npm](https://www.npmjs.com/package/@unisphere/nx)
54
-
55
- ## Requirements
56
-
57
- - Node.js >= 18
58
- - npm >= 9
59
- - Git installed
package/src/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/create-unisphere-project/src/index.ts"],"names":[],"mappings":";;;AACA,uFAAuF;AACvF,yCAAoC;AAEpC,iBAAiB;AACjB,MAAM,OAAO,GAAG,IAAA,gEAAgC,EAAC,IAAI,mBAAO,EAAE,CAAC,CAAC;AAChE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-unisphere-repo-command.js","sourceRoot":"","sources":["../../../../../packages/create-unisphere-project/src/lib/create-unisphere-repo-command.ts"],"names":[],"mappings":";;;;AAAA,yCAA4C;AAC5C,mCAA2C;AAC3C,iCAA0B;AAC1B,mCAA0C;AAC1C,mCAAiD;AACjD,+BAA+B;AAC/B,2BAAmD;AACnD,uCAAsD;AACtD,qEAAiE;AACjE,qCAAsC;AACtC,iDAAyC;AAEzC,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,0CAA0C,CAAC,CAAC;AAEhE,qEAAqE;AACrE,MAAM,aAAa,GAAG,IAAA,cAAO,EAAC,SAAS,EAAE,oCAAoC,CAAC,CAAC;AAE/E,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE;IAC/C,OAAO,KAAK;SACT,IAAI,EAAE,CAAC,iCAAiC;SACxC,WAAW,EAAE,CAAC,uBAAuB;SACrC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,kCAAkC;SACvD,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,wDAAwD;SACrF,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,4BAA4B;SACjD,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,oCAAoC;SACxD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,kCAAkC;AAChE,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAU,EAAE;IACtD,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IACzC,qEAAqE;IACrE,OAAO,UAAU,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAY,EAAW,EAAE;IAC9C,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC;AAEK,MAAM,gCAAgC,GAAG,CAC9C,aAAsB,EACb,EAA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yBAAyB,CAAC,CAAC;wBACjC,IAAA,wBAAQ,EAAC,gCAAgC,EAAE;4BACzC,GAAG,EAAE,cAAc;4BACnB,KAAK,EAAE,MAAM;yBACd,CAAC,CAAC;wBAEH,IAAI,CAAC,KAAK,GAAG,wBAAwB,CAAC;oBACxC,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;wBACf,KAAK,CAAC,kCAAkC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;wBACzD,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;oBACvE,CAAC;gBACH,CAAC,CAAA;aACF;SACF,CAAC;QAEF,MAAM,UAAU,GAAG,IAAI,cAAK,CAAC,KAAK,EAAE,IAAA,8BAAsB,GAAE,CAAC,CAAC;QAC9D,MAAM,UAAU,CAAC,GAAG,EAAE,CAAC;QAEvB,OAAO,CAAC,GAAG,CACT,8CAA8C,cAAc,EAAE,CAC/D,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AApUW,QAAA,gCAAgC,oCAoU3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"overwrite-placeholders.js","sourceRoot":"","sources":["../../../../../packages/create-unisphere-project/src/lib/overwrite-placeholders.ts"],"names":[],"mappings":";;;;AAAA,uCAAsE;AACtE,+BAA+C;AAC/C,iCAA0B;AAE1B,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,wCAAwC,CAAC,CAAC;AAE9D,2BAA2B;AAC3B,MAAM,eAAe,GAAG;IACtB,iBAAiB,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;IAChF,kBAAkB,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;IACjF,WAAW,EAAE,CAA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OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,KAAK,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAC1C,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;AACH,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B;AAEK,MAAM,sBAAsB,GAAG,CAAC,EACrC,gBAAgB,GAAG,KAAK,MAGtB,EAAE,EAAwC,EAAE;IAC9C,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;QACjB,eAAe,EAAE;YACf,SAAS,EAAE,QAAQ;YACnB,gBAAgB,EAAE,IAAI;YACtB,YAAY,EAAE,IAAI;YAElB,cAAc,EAAE,KAAK;YACrB,gBAAgB;YAChB,gBAAgB,EAAE,KAAK;SACxB;KACF,CAAC;IACF,IAAI;AACN,CAAC,CAAC;AAnBW,QAAA,sBAAsB,0BAmBjC"}