-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract graph components and utils to separate package
Upcoming changes to the pipeline graph components will be introducing new dependencies such as Carbon Charts which I'd like to keep separate from the rest of the application for now. Extracting the graph components to their own package makes this easier and allows consumers to opt-in to the heavier dependencies as needed. This change is mostly a move/rename with no functional impact. Also clean up some unwanted entries in the package-lock that were causing an unnecessary `node_modules/` to be created in the components package.
- Loading branch information
1 parent
8913256
commit bf3f51a
Showing
27 changed files
with
124 additions
and
40 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@tektoncd/dashboard-graph", | ||
"version": "0.1.0", | ||
"author": { | ||
"name": "The Tekton Authors" | ||
}, | ||
"keywords": [ | ||
"tekton", | ||
"tektoncd", | ||
"components", | ||
"graph", | ||
"visualization", | ||
"react" | ||
], | ||
"license": "Apache-2.0", | ||
"private": false, | ||
"main": "./src/index.js", | ||
"scripts": { | ||
"version": "npm pkg set \"dependencies.@tektoncd/dashboard-utils=$npm_new_version\"", | ||
"postpublish": "npm pkg set \"dependencies.@tektoncd/dashboard-utils=file:../utils\"" | ||
}, | ||
"dependencies": { | ||
"@tektoncd/dashboard-utils": "file:../utils", | ||
"@visx/event": "^2.1.0", | ||
"@visx/network": "^2.1.0", | ||
"classnames": "^2.2.6", | ||
"d3-path": "^1.0.8", | ||
"elkjs": "^0.5.1" | ||
}, | ||
"peerDependencies": { | ||
"@carbon/icons-react": "^10.44.0", | ||
"carbon-components-react": "^7.50.0", | ||
"react": "^16.14.0 || ^17.0.1", | ||
"react-intl": "^5.10.2" | ||
}, | ||
"engines": { | ||
"node": "^16.13.2", | ||
"npm": "^8.1.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": [ | ||
"*.scss" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tektoncd/dashboard.git", | ||
"directory": "packages/graph" | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,18 @@ | ||
/* | ||
Copyright 2022 The Tekton Authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
/* istanbul ignore file */ | ||
|
||
export { default as buildGraphData } from './buildGraphData'; | ||
|
||
export { default as Graph } from './components/Graph'; | ||
export { default as PipelineGraph } from './components/PipelineGraph'; |
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