create-unisphere-project 2.10.0 → 3.0.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 +25 -0
- package/dist/_templates/unisphere-project/.github/workflows/cicd.yml +10 -5
- package/dist/_templates/unisphere-project/package-lock.json +1601 -1428
- package/dist/_templates/unisphere-project/package.json +14 -4
- package/dist/package.json +1 -1
- package/dist/src/index.js +1 -26
- package/dist/src/lib/create-unisphere-repo-command.d.ts.map +1 -1
- package/dist/src/lib/create-unisphere-repo-command.js +7 -4
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/react-dom": "19.2.3",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^7.3.0",
|
|
44
44
|
"@typescript-eslint/parser": "^7.3.0",
|
|
45
|
-
"@unisphere/nx": "3.
|
|
45
|
+
"@unisphere/nx": "4.3.3",
|
|
46
46
|
"@vitejs/plugin-react": "4.7.0",
|
|
47
47
|
"@vitest/coverage-v8": "^1.0.4",
|
|
48
48
|
"@vitest/ui": "^1.3.1",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"prettier": "^2.6.2",
|
|
67
67
|
"rollup": "^4.14.0",
|
|
68
68
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
69
|
-
"ts-jest": "29.4.6",
|
|
70
69
|
"ts-node": "10.9.1",
|
|
71
70
|
"tslib": "^2.3.0",
|
|
72
71
|
"typescript": "~5.4.2",
|
|
@@ -93,7 +92,7 @@
|
|
|
93
92
|
"@kaltura/ds-react-utils": "^12.8.0",
|
|
94
93
|
"@mui/icons-material": "7.3.7",
|
|
95
94
|
"@mui/material": "7.3.7",
|
|
96
|
-
"@unisphere/cli": "
|
|
95
|
+
"@unisphere/cli": "4.1.2",
|
|
97
96
|
"@unisphere/core": "1",
|
|
98
97
|
"@unisphere/notifications-core": "1",
|
|
99
98
|
"@unisphere/notifications-runtime-react": "1",
|
|
@@ -115,5 +114,16 @@
|
|
|
115
114
|
"unisphere/visuals/**",
|
|
116
115
|
"unisphere/applications/local/**",
|
|
117
116
|
"unisphere/applications/server/**"
|
|
118
|
-
]
|
|
117
|
+
],
|
|
118
|
+
"unisphere": {
|
|
119
|
+
"audit": {
|
|
120
|
+
"allowlist": [
|
|
121
|
+
"minimatch",
|
|
122
|
+
"picomatch",
|
|
123
|
+
"koa",
|
|
124
|
+
"serialize-javascript",
|
|
125
|
+
"esbuild"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
119
129
|
}
|
package/dist/package.json
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -4,32 +4,7 @@ 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
6
|
const program = new commander_1.Command();
|
|
7
|
-
// Set up the main command
|
|
8
|
-
program
|
|
9
|
-
.name('create-unisphere-project')
|
|
10
|
-
.description('Create a new Unisphere project from template')
|
|
11
|
-
.version(require('../package.json').version || '1.0.0');
|
|
12
|
-
// Add the subcommand
|
|
7
|
+
// Set up the main command with all options
|
|
13
8
|
(0, create_unisphere_repo_command_1.createCreateUnisphereRepoCommand)(program);
|
|
14
9
|
// Parse arguments
|
|
15
10
|
program.parse(process.argv);
|
|
16
|
-
// If no subcommand provided, show help
|
|
17
|
-
if (program.args.length === 0 && process.argv.length <= 2) {
|
|
18
|
-
console.log('');
|
|
19
|
-
console.log('Usage: npx @unisphere/create-unisphere-project create-unisphere-repo [options]');
|
|
20
|
-
console.log('');
|
|
21
|
-
console.log('Required options:');
|
|
22
|
-
console.log(' --company-name <name> Your company name (letters, hyphens, spaces)');
|
|
23
|
-
console.log(' --experience-name <name> Experience name (letters, hyphens, spaces)');
|
|
24
|
-
console.log(' --is-internal-product <bool> Is internal product (true or false)');
|
|
25
|
-
console.log('');
|
|
26
|
-
console.log('Example:');
|
|
27
|
-
console.log(' $ npx @unisphere/create-unisphere-project create-unisphere-repo \\');
|
|
28
|
-
console.log(' --company-name=acme \\');
|
|
29
|
-
console.log(' --experience-name=video \\');
|
|
30
|
-
console.log(' --is-internal-product=false');
|
|
31
|
-
console.log('');
|
|
32
|
-
console.log('For more information, run:');
|
|
33
|
-
console.log(' $ npx @unisphere/create-unisphere-project create-unisphere-repo --help');
|
|
34
|
-
console.log('');
|
|
35
|
-
}
|
|
@@ -1 +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;AAqC5C,eAAO,MAAM,gCAAgC,GAC3C,eAAe,OAAO,KACrB,
|
|
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;AAqC5C,eAAO,MAAM,gCAAgC,GAC3C,eAAe,OAAO,KACrB,OAqXF,CAAC"}
|
|
@@ -34,7 +34,8 @@ const validateInput = (name) => {
|
|
|
34
34
|
return /^[a-zA-Z\s-]+$/.test(name);
|
|
35
35
|
};
|
|
36
36
|
const createCreateUnisphereRepoCommand = (parentCommand) => {
|
|
37
|
-
|
|
37
|
+
// Configure the parent command directly
|
|
38
|
+
const command = parentCommand;
|
|
38
39
|
const nxpluginPathOption = new commander_1.Option('--nxplugin-path <path>', 'path to local @unisphere/nx plugin for testing');
|
|
39
40
|
nxpluginPathOption.hidden = true;
|
|
40
41
|
const clipathOption = new commander_1.Option('--cli-path <path>', 'path to local @unisphere/cli package for testing');
|
|
@@ -42,7 +43,9 @@ const createCreateUnisphereRepoCommand = (parentCommand) => {
|
|
|
42
43
|
const skipTypesPackagesOption = new commander_1.Option('--skip-packages-creation', 'skip types packages creation');
|
|
43
44
|
skipTypesPackagesOption.hidden = true;
|
|
44
45
|
command
|
|
45
|
-
.
|
|
46
|
+
.name('create-unisphere-project')
|
|
47
|
+
.description('Scaffold a new Unisphere Nx monorepo with company and experience configuration')
|
|
48
|
+
.version(require('../../package.json').version || '1.0.0', '-v, --version', 'output the version number')
|
|
46
49
|
.option('--cwd <path>', 'The working directory', process.cwd())
|
|
47
50
|
.option('--company-name <name>', '[REQUIRED] The company name (letters, hyphens, and spaces only)')
|
|
48
51
|
.addOption(nxpluginPathOption)
|
|
@@ -53,8 +56,8 @@ const createCreateUnisphereRepoCommand = (parentCommand) => {
|
|
|
53
56
|
.option('--verbose', 'Output debug logs', false)
|
|
54
57
|
.addHelpText('after', `
|
|
55
58
|
Examples:
|
|
56
|
-
$ npx
|
|
57
|
-
$ npx
|
|
59
|
+
$ npx create-unisphere-project --company-name=acme --experience-name=video --is-internal-product=false
|
|
60
|
+
$ npx create-unisphere-project --company-name="Acme Corp" --experience-name="Video Player" --is-internal-product=true
|
|
58
61
|
|
|
59
62
|
All three options (--company-name, --experience-name, --is-internal-product) are required.
|
|
60
63
|
`)
|