mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-11 07:58:11 -05:00
* Sassify shiny.css (& make it themable); gut json2 dependency (was there for IE8 support) * Always serve a compressed bundle; remove shiny.css * Use getCurrentTheme() and make sure shinyDependencies is a function * Make sure we have sass/rprojroot before running checkBuilt.sh * Need repos set * Compare against bleeding edge of sass * Perform built check with testthat (copying the approach taken for pkgdown checks) * Update tests/testthat/test-built-files.R Co-authored-by: Winston Chang <winston@stdout.org> Co-authored-by: Winston Chang <winston@stdout.org>
11 lines
305 B
R
11 lines
305 B
R
#!/usr/bin/env Rscript
|
|
library(rprojroot)
|
|
library(sass)
|
|
|
|
scss <- find_package_root_file("inst/www/shared/shiny_scss/shiny.scss")
|
|
shiny_css <- sass(
|
|
sass_file(scss), cache = NULL,
|
|
options = sass_options(output_style = "compressed"),
|
|
output = find_package_root_file("inst/www/shared/shiny.min.css")
|
|
)
|