-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
improve CONTRIBUTING and describe how to clone from your fork #5791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0c3a0ae
improve CONTRIBUTING how to clone from your fork
archmoj be30fc9
Merge remote-tracking branch 'origin/master' into how-to-clone-your-fork
archmoj c2166df
draft log for PR 5791
archmoj 113c996
adjust contributing
archmoj b62be42
Merge remote-tracking branch 'origin/master' into how-to-clone-your-fork
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
adjust contributing
- Loading branch information
commit 113c99642bc5fb239f5e7e0db8e6638d678966cc
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -84,21 +84,33 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra | |
| [`package-lock.json`](https://docs.npmjs.com/files/package-lock.json) file is | ||
| used and updated correctly. | ||
|
|
||
| #### Step 1: Clone the plotly.js repo, download it and install dependencies | ||
| #### Step 1: Fork the plotly.js repository, clone your fork and step into it | ||
|
|
||
| ```bash | ||
| git clone --depth 1 [email protected]:<your-GitHub-username>/plotly.js.git | ||
| cd plotly.js | ||
| ``` | ||
|
|
||
| #### Step 2: Switch to a dev branch | ||
|
|
||
| ```bash | ||
| # please do not use master or main for your dev branch | ||
| git checkout dev-branch-name | ||
| ``` | ||
|
|
||
| #### Step 3: Install dependencies | ||
|
|
||
| ```bash | ||
| npm install | ||
| ``` | ||
|
|
||
| #### Step 2: Setup test environment | ||
| #### Step 4: Setup test environment | ||
|
|
||
| ```bash | ||
| npm run pretest | ||
| ``` | ||
|
|
||
| #### Step 3: Start the test dashboard | ||
| #### Step 5: Start the test dashboard | ||
|
|
||
| ```bash | ||
| npm start | ||
|
|
@@ -110,7 +122,7 @@ This command bundles up the source files with source maps using | |
| dev plotly.js bundle update every time a source file is saved) and opens up a | ||
| tab in your browser. | ||
|
|
||
| #### Step 4: Open up the console and start developing | ||
| #### Step 6: Open up the console and start developing | ||
|
|
||
| A typical workflow is to make some modifications to the source, update the | ||
| test dashboard, inspect and debug the changes, then repeat. The test dashboard | ||
|
|
@@ -138,13 +150,13 @@ Three additional helpers exist that are refreshed every second: | |
| There is also a search bar in the top right of the dashboard. This fuzzy-searches | ||
| image mocks based on their file name and trace type. | ||
|
|
||
| #### Step 5: Regenerate plot-schema in "test" folder then review & commit potential changes | ||
| #### Step 7: Regenerate plot-schema in "test" folder then review & commit potential changes | ||
|
|
||
| ```bash | ||
| npm run schema | ||
| ``` | ||
|
|
||
| #### Step 6: Review & commit potential changes made to test/plot-schema.json | ||
| #### Step 8: Review & commit potential changes made to test/plot-schema.json | ||
|
|
||
| > If you are editing attribute descriptions or implementing a new feature this file located in the test folder records the proposed changes to the API. Note that there is another plot-schema.json file located in the dist folder, which should only be updated by the maintainers at release time. | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
--depth 1important enough to warrant including here? I could imagine it occasionally being dangerous, like if the user wanted to pick up an old branch and complete the work.Also, in #5780 we talk about
originandupstream, do we want to discuss how to set that up?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it will make it easier for the people to contribute, instead of pulling down the whole history of plotly.js.
Curious to know what @nicolaskruchten thinks here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears GitHub recently added a new button which made the process of fetching upstream way easier.