@rancher/create-extension 3.0.10 → 3.0.12
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/app/files/.github/workflows/build-extension-charts.yml +1 -3
- package/app/files/.yarnrc +1 -0
- package/app/init +1 -1
- package/init +7 -2
- package/package.json +2 -2
- package/pkg/pkg.package.json +3 -3
- package/app/files/.yarnrc.yml +0 -2
|
@@ -14,10 +14,8 @@ jobs:
|
|
|
14
14
|
build-extension-charts:
|
|
15
15
|
uses: rancher/dashboard/.github/workflows/build-extension-charts.yml@master
|
|
16
16
|
permissions:
|
|
17
|
-
actions: write
|
|
18
17
|
contents: write
|
|
19
|
-
|
|
20
|
-
pages: write
|
|
18
|
+
pull-requests: write
|
|
21
19
|
with:
|
|
22
20
|
target_branch: gh-pages
|
|
23
21
|
tagged_release: ${{ github.ref_name }}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--frozen-lockfile true
|
package/app/init
CHANGED
package/init
CHANGED
|
@@ -15,7 +15,9 @@ let skeletonOnly = false;
|
|
|
15
15
|
let ignoreShellDepCheck = false; // Ignore the check for @rancher/shell dependency (Only used for testing)
|
|
16
16
|
let tagUsed = ''; // To store the inferred tag
|
|
17
17
|
|
|
18
|
-
args.
|
|
18
|
+
for (let index = 0; index < args.length; index++) {
|
|
19
|
+
const arg = args[index];
|
|
20
|
+
|
|
19
21
|
switch (arg) {
|
|
20
22
|
case '--help':
|
|
21
23
|
case '-h':
|
|
@@ -26,6 +28,8 @@ args.forEach((arg, index) => {
|
|
|
26
28
|
console.log(' --update, -u Update applications');
|
|
27
29
|
console.log(' --app-name, -a Specify the name of the application');
|
|
28
30
|
console.log(' --skeleton-only, -s Create only the skeleton application');
|
|
31
|
+
console.log('\nNote: When using "npm init", pass "--" before options:');
|
|
32
|
+
console.log(' npm init @rancher/extension@latest my-ext -- --app-name my-app');
|
|
29
33
|
process.exit(0);
|
|
30
34
|
case '--migrate':
|
|
31
35
|
migrate = true;
|
|
@@ -38,6 +42,7 @@ args.forEach((arg, index) => {
|
|
|
38
42
|
case '-a':
|
|
39
43
|
if (args[index + 1] && !args[index + 1].startsWith('-')) {
|
|
40
44
|
appName = args[index + 1];
|
|
45
|
+
index++;
|
|
41
46
|
} else {
|
|
42
47
|
console.error('Error: Missing value for --app-name or -a option.');
|
|
43
48
|
process.exit(1);
|
|
@@ -56,7 +61,7 @@ args.forEach((arg, index) => {
|
|
|
56
61
|
appName = appName || extensionName;
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
|
-
}
|
|
64
|
+
}
|
|
60
65
|
|
|
61
66
|
if (!extensionName && !updateOnly && !skeletonOnly && !migrate) {
|
|
62
67
|
console.error('Please provide an extension name.');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rancher/create-extension",
|
|
3
3
|
"description": "Rancher UI Extension generator",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.12",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SUSE",
|
|
7
7
|
"repository": "https://github.com/rancher/dashboard",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"core-js": "3.48.0",
|
|
28
28
|
"css-loader": "7.1.2",
|
|
29
29
|
"@types/lodash": "4.14.184",
|
|
30
|
-
"@rancher/components": "0.3.0-alpha.
|
|
30
|
+
"@rancher/components": "0.3.0-alpha.5"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/pkg/pkg.package.json
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"node": ">=24"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@vue/cli-plugin-babel": "
|
|
18
|
-
"@vue/cli-service": "
|
|
19
|
-
"@vue/cli-plugin-typescript": "
|
|
17
|
+
"@vue/cli-plugin-babel": "5.0.9",
|
|
18
|
+
"@vue/cli-service": "5.0.8",
|
|
19
|
+
"@vue/cli-plugin-typescript": "5.0.9"
|
|
20
20
|
},
|
|
21
21
|
"browserslist": [
|
|
22
22
|
"> 1%",
|
package/app/files/.yarnrc.yml
DELETED