-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[WIP] documentation for getting started in developing shiny #4260
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,126 @@ | |||
# Contributing to Shiny |
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.
For my education, why did the file move? Both locations are valid.
The PR location clutters the top level. The main
location is hidden in the .github
folder.
Both files will notify a PR about an updated contributing guide when making a PR.
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.
This file will need to be included within .Rbuildignore
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.
Given other GitHub files are hidden in the .github
folder, I'm inclined to keep it in its original location.
|
||
* If appropriate, add unit tests in the tests/ directory. | ||
|
||
* If you made any changes to the JavaScript files in the `srcjs/` directory, make sure you build the output JavaScript files. See `tools/README.md` file for information on using the build system. |
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.
* If you made any changes to the JavaScript files in the `srcjs/` directory, make sure you build the output JavaScript files. See `tools/README.md` file for information on using the build system. | |
* If you made any changes to the JavaScript files in the `srcts/` directory, make sure you build the output JavaScript files. See `tools/README.md` file for information on using the build system. |
|
||
### Setup: JavaScript / TypeScript | ||
|
||
You will need to have [node.js](https://nodejs.org/en/download) installed.np |
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.
You will need to have [node.js](https://nodejs.org/en/download) installed.np | |
You will need to have [node.js](https://nodejs.org/en/download) installed. |
#### yarn | ||
|
||
```bash | ||
# Download and install Yarn: | ||
corepack enable yarn | ||
|
||
# Verify Yarn version: | ||
yarn -v | ||
``` | ||
|
||
|
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.
Gutting usage of yarn
in #4252
#### yarn | |
```bash | |
# Download and install Yarn: | |
corepack enable yarn | |
# Verify Yarn version: | |
yarn -v | |
``` |
#### Install dependencies | ||
|
||
```bash | ||
yarn install --immutable |
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.
yarn install --immutable | |
npm ci |
If in the future you want to upgrade or add a package, run: | ||
|
||
```bash | ||
yarn add --dev [packagename] |
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.
yarn add --dev [packagename] | |
npm install --save-dev --save-exact [packagename] |
yarn add --dev [packagename] | ||
``` | ||
|
||
This will automatically add the package to the dependencies in `package.json`, and it will also update the `yarn.lock` to reflect that change. If someone other than yourself does this, simply run `yarn` to update your local packages to match the new `package.json`. |
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.
This will automatically add the package to the dependencies in `package.json`, and it will also update the `yarn.lock` to reflect that change. If someone other than yourself does this, simply run `yarn` to update your local packages to match the new `package.json`. | |
This will automatically add the package to the dependencies in `package.json`, and it will also update the `package-lock.json` to reflect that change. If someone other than yourself does this, simply run `npm ci` to update your local packages to match the new `package.json`. |
|
||
This will automatically add the package to the dependencies in `package.json`, and it will also update the `yarn.lock` to reflect that change. If someone other than yourself does this, simply run `yarn` to update your local packages to match the new `package.json`. | ||
|
||
### Upgrading packages |
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.
Please copy latest from #4252 once it's merged. Thank you!
|
||
```bash | ||
npm install https://github.com/rstudio/shiny\#v1.11.1 --save-dev | ||
# or |
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.
# or |
npm install https://github.com/rstudio/shiny\#v1.11.1 --save-dev | ||
# or | ||
yarn add https://github.com/rstudio/shiny\#v1.11.1 --dev | ||
yarn add shiny@https://github.com/rstudio/shiny\#v1.11.1 --dev |
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.
yarn add shiny@https://github.com/rstudio/shiny\#v1.11.1 --dev |
No description provided.