-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from suse-edge/test-extension
Testing of release of multiple extensions
- Loading branch information
Showing
7 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./.shell/pkg/babel.config.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { importTypes } from '@rancher/auto-import'; | ||
import { IPlugin } from '@shell/core/types'; | ||
|
||
// Init the package | ||
export default function(plugin: IPlugin): void { | ||
// Auto-import model, detail, edit from the folders | ||
importTypes(plugin); | ||
|
||
// Provide plugin metadata from package.json | ||
plugin.metadata = require('./package.json'); | ||
|
||
// Load a product | ||
plugin.addProduct(require('./product')); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "test", | ||
"description": "test plugin", | ||
"version": "0.1.0", | ||
"private": false, | ||
"rancher": true, | ||
"scripts": { | ||
"dev": "./node_modules/.bin/nuxt dev", | ||
"nuxt": "./node_modules/.bin/nuxt" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "4.5.18", | ||
"@vue/cli-service": "4.5.18", | ||
"@vue/cli-plugin-typescript": "4.5.18" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not dead" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { IPlugin } from '@shell/core/types'; | ||
|
||
export function init($plugin: IPlugin, store: any) { | ||
const YOUR_PRODUCT_NAME = 'myProductName'; | ||
|
||
const { product } = $plugin.DSL(store, YOUR_PRODUCT_NAME); | ||
|
||
product({ | ||
icon: 'gear', | ||
inStore: 'management', | ||
weight: 100 | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"target": "esnext", | ||
"module": "esnext", | ||
"strict": true, | ||
"jsx": "preserve", | ||
"importHelpers": true, | ||
"moduleResolution": "node", | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"preserveSymlinks": true, | ||
"typeRoots": [ | ||
"../../node_modules", | ||
"../../node_modules/@rancher/shell/types" | ||
], | ||
"types": [ | ||
"node", | ||
"webpack-env", | ||
"@types/node", | ||
"@types/jest", | ||
"@types/lodash", | ||
"rancher", | ||
"shell" | ||
], | ||
"lib": [ | ||
"esnext", | ||
"dom", | ||
"dom.iterable", | ||
"scripthost" | ||
], | ||
"paths": { | ||
"@shell/*": [ | ||
"../../node_modules/@rancher/shell/*" | ||
], | ||
"@components/*": [ | ||
"@rancher/components/*" | ||
] | ||
} | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.d.ts", | ||
"**/*.tsx", | ||
"**/*.vue" | ||
], | ||
"exclude": [ | ||
"../../node_modules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./.shell/pkg/vue.config')(__dirname); |