This directory contains build tools for Shiny.
For TypeScript / JavaScript build tool descriptions, see the ./srcts
folder.
bootstrap-datepicker can be updated with the script updateBootstrapDatepicker.R
.
To create a new patch:
- Make any necessary changes to files in
inst/www/shared/datepicker
- Do not commit your changes.
- Instead, create a patch with a command like
git diff > tools/datepicker-patches/012-a-description.patch
. Patches are applied in alphabetic order (perlist.files
), so you should name your patch based on the last one intools/datepicker-patches
so that it's applied last. - Source
updateBootstrapDatepicker.R
to download the library and apply patches. - Test your changes
git add
the new.patch
and any resulting changes
ion.rangeSlider can be updated with the script updateIonRangeSlider.R
. That script downloads a specific version of ion.rangeSlider and applies our patches in tools/ion.rangeSlider-patches.
To create a new patch:
- Make any necessary changes to files in
inst/www/shared/ion.rangeSlider
- Do not commit your changes.
- Instead, create a patch with a command like
git diff > tools/ion.rangeSlider-patches/0004-a-description.patch
. Patches are applied in alphabetic order (perlist.files
), so you should name your patch based on the last one intools/ion.rangeSlider-patches
so that it's applied last. - Run
updateIonRangeSlider.R
to download the library and apply patches. - Test your changes
- Run
devtools::document()
. git add
the new.patch
and any resulting changes
- Edit
updateFontAwesome.R
to use the new version, and then run it. This will download and copy the files to the relevant locations. - Update the "font-awesome" htmlDependency in
R/bootstrap.R
to reflect the new version. - Update the documentation for the
icon()
function inR/bootstrap.R
to reflect the new version. - Run
devtools::document()
. - Commit the changes.
- Edit
updatejQuery.R
to use the new version, and then run it. This will download and copy the files to the relevant locations. - Update the "jquery" htmlDependency in
R/shinyui.R
to reflect the new version. - Update the documentation for the
shiny.jquery.version
option inR/shiny-options.R
to reflect the new version. - Run
devtools::document()
. - Commit the changes.
- bootstrap-accessibility-plugin can be updated with the script
updateBootstrapAccessibilityPlugin.R
. - Edit
updateBootstrapAccessibilityPlugin.R
to use the new version, and then run it. This will download and copy the files to the relevant locations. - Update the documentation for the
bootstrapLib()
function inR/bootstrap.R
to reflect the new version. - Run
devtools::document()
. - Commit the changes.
selectize and its accessibility plugin can be updated with the script updateSelectize.R
. That script downloads a specific version of selectize and selectize-plugin-a11y, and applies our patches in tools/selectize-patches.
To create a new patch:
- Make any necessary changes to files in
inst/www/shared/selectize
- Do not commit your changes.
- Instead, create a patch with a command like
git diff > tools/selectize-patches/000-assign-unique-id-per-option.patch
. Patches are applied in alphabetic order (perlist.files
), so you should name your patch based on the last one intools/selectize-patches
so that it's applied last. - Run
updateSelectize.R
to download the library and apply patches. - Test your changes
git add
the new.patch
and any resulting changes
- Make any desired changes to source files in
inst/www/shared/shiny_scss
- Run
yarn build
to generate a builtshiny.min.css
file - Commit any changes