Skip to content

Conversation

chendaniely
Copy link
Member

No description provided.

@chendaniely chendaniely marked this pull request as draft July 28, 2025 23:30
@@ -0,0 +1,126 @@
# Contributing to Shiny
Copy link
Collaborator

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.

Copy link
Collaborator

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

Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Comment on lines +57 to +67
#### yarn

```bash
# Download and install Yarn:
corepack enable yarn

# Verify Yarn version:
yarn -v
```


Copy link
Collaborator

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

Suggested change
#### yarn
```bash
# Download and install Yarn:
corepack enable yarn
# Verify Yarn version:
yarn -v
```

#### Install dependencies

```bash
yarn install --immutable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
yarn install --immutable
npm ci

If in the future you want to upgrade or add a package, run:

```bash
yarn add --dev [packagename]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
yarn add shiny@https://github.com/rstudio/shiny\#v1.11.1 --dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants