-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various tweaks and improvements to Console plugin template
- Loading branch information
1 parent
51793d4
commit e1cf3c5
Showing
13 changed files
with
103 additions
and
111 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
node_modules/ | ||
dist/ | ||
**/node_modules | ||
**/dist | ||
**/.DS_Store | ||
.devcontainer/dev.env | ||
integration-tests/videos | ||
integration-tests/screenshots | ||
integration-tests/.DS_Store | ||
yarn-error.log | ||
.DS_Store |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
arrowParens: always | ||
printWidth: 100 | ||
singleQuote: true | ||
trailingComma: all |
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 |
---|---|---|
@@ -1,8 +1,18 @@ | ||
{ | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": ["console-extensions.json", "**/console-extensions.json"], | ||
"url": "./node_modules/@openshift-console/dynamic-plugin-sdk-webpack/schema/console-extensions.json" | ||
} | ||
] | ||
} | ||
{ | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"search.exclude": { | ||
"**/node_modules": true | ||
}, | ||
"files.watcherExclude": { | ||
"**/node_modules/**": true | ||
}, | ||
"files.associations": { | ||
"**/console-extensions.json": "jsonc" | ||
}, | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": ["**/console-extensions.json"], | ||
"url": "./node_modules/@openshift-console/dynamic-plugin-sdk-webpack/schema/console-extensions.json" | ||
} | ||
] | ||
} |
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
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
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 |
---|---|---|
@@ -1,28 +1,32 @@ | ||
{ | ||
"name": "console-plugin-template", | ||
"version": "0.0.1", | ||
"description": "Template project for OpenShift Console dynamic plugins", | ||
"private": true, | ||
"repository": "[email protected]:spadgett/console-plugin-template.git", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/openshift/console-plugin-template.git" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"build": "yarn clean && NODE_ENV=production yarn ts-node node_modules/.bin/webpack", | ||
"build-dev": "yarn clean && yarn ts-node node_modules/.bin/webpack", | ||
"start": "yarn ts-node node_modules/.bin/webpack serve", | ||
"build": "yarn clean && NODE_ENV=production yarn webpack", | ||
"build-dev": "yarn clean && yarn webpack", | ||
"start": "yarn webpack serve --progress", | ||
"start-console": "./start-console.sh", | ||
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js", | ||
"ts-node": "ts-node -O '{\"module\":\"commonjs\"}'", | ||
"lint": "eslint ./src ./integration-tests --fix && stylelint \"src/**/*.css\" --allow-empty-input --fix", | ||
"test-cypress": "cd integration-tests s && cypress open --env openshift=true", | ||
"lint": "yarn eslint src integration-tests --fix && stylelint 'src/**/*.css' --allow-empty-input --fix", | ||
"test-cypress": "cd integration-tests && cypress open --env openshift=true", | ||
"test-cypress-headless": "cd integration-tests && node --max-old-space-size=4096 ../node_modules/.bin/cypress run --env openshift=true --browser ${BRIDGE_E2E_BROWSER_NAME:=electron}", | ||
"cypress-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json", | ||
"cypress-generate": "marge -o ./integration-tests/screenshots/ -f cypress-report -t 'OpenShift Console Plugin Template Cypress Test Results' -p 'OpenShift Cypress Plugin Template Test Results' --showPassed false --assetsDir ./integration-tests/screenshots/cypress/assets ./integration-tests/screenshots/cypress.json", | ||
"cypress-postreport": "yarn cypress-merge && yarn cypress-generate" | ||
"cypress-postreport": "yarn cypress-merge && yarn cypress-generate", | ||
"webpack": "node -r ts-node/register ./node_modules/.bin/webpack" | ||
}, | ||
"devDependencies": { | ||
"@cypress/webpack-preprocessor": "^5.15.5", | ||
"@openshift-console/dynamic-plugin-sdk": "^1.0.0", | ||
"@openshift-console/dynamic-plugin-sdk-webpack": "^1.0.0", | ||
"@openshift-console/dynamic-plugin-sdk": "1.2.0", | ||
"@openshift-console/dynamic-plugin-sdk-webpack": "1.1.0", | ||
"@patternfly/react-core": "^5.1.1", | ||
"@patternfly/react-icons": "^5.1.1", | ||
"@patternfly/react-styles": "^5.1.1", | ||
|
@@ -68,7 +72,7 @@ | |
"name": "console-plugin-template", | ||
"version": "0.0.1", | ||
"displayName": "OpenShift Console Plugin Template", | ||
"description": "Template project for OpenShift console plugins. Edit package.json to change this message and the plugin name.", | ||
"description": "Template project for OpenShift Console dynamic plugins. Edit package.json to change this message and the plugin name.", | ||
"exposedModules": { | ||
"ExamplePage": "./components/ExamplePage" | ||
}, | ||
|
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
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
Oops, something went wrong.