Skip to content

Commit

Permalink
Merge pull request #14 from davidruvolo51/dev
Browse files Browse the repository at this point in the history
v0.2.1
  • Loading branch information
davidruvolo51 authored Sep 9, 2020
2 parents 5a83829 + 2ca9da3 commit d8e064e
Show file tree
Hide file tree
Showing 22 changed files with 6,566 additions and 156 deletions.
7 changes: 3 additions & 4 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
src/
dev/
dev
rheroicons.code-workspace
package.json
README.md
.gitignore
node_modules
inst/rheroicons-demo/src
inst/rheroicons-demo/rsconnect
inst/rheroicons-gallery
inst/gallery-assets/src
.cache
.postcssrc
.babelrc
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.cache
inst/rheroicons-demo/rsconnect
.parcel-cache
inst/rheroicons-gallery/rsconnect
yarn-error.log
2 changes: 1 addition & 1 deletion .postcssrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"postcss-modules": {
"generateScopedName": "[local]"
},
"autoprefixer": {
"autoprefixer": {
"overrideBrowserslist": [
">1%",
"last 4 versions",
Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Package: rheroicons
Title: The Heroicons library for use in R-based web projects
Version: 0.2.0
Version: 0.2.1
Authors@R:
person(given = "David",
family = "Ruvolo",
role = c("aut", "cre"),
email = "first.last@example.com",
email = "dcruvolo@gmail.com",
comment = c(ORCID = "0000-0002-5745-5298"))
Description: The rheroicons provides access to the fantastic SVG icon collection heroicons, developed by @adamwathan and @sschoger, as R functions for use in your R-based web projects (i.e., shiny, Rmarkdown, etc.). This package requires no HTML, CSS, or JavaScript dependencies as all icons are rendered inline as SVG elements.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.0
RoxygenNote: 7.1.1
Imports:
htmltools (>= 0.5.0),
shiny (>= 1.5.0),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# rheroicons 0.2.1

* Restructured static assets for the rheroicons gallery and fixed resource path

# rheroicons 0.2.0

* New package structure :rocket: icons are now generated using the function `rheroicon`. Select an icon using the argument `name`. Icons can be found in the gallery via `launch_gallery()` function. Use the argument `type` to return define the icon style as `outline` or `solid`. Icons can be further customized by passing additional css classes using the `classnames` argument.
Expand Down
2 changes: 1 addition & 1 deletion R/launch_gallery.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ launch_gallery <- function(...) {
shiny::addResourcePath(
prefix = "rheroicons",
directoryPath = system.file(
"inst/rheroicons-demo/www",
"gallery-assets/public",
package = "rheroicons"
)
)
Expand Down
13 changes: 13 additions & 0 deletions dev/dev-app/app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#'////////////////////////////////////////////////////////////////////////////
#' FILE: app.R
#' AUTHOR: David Ruvolo
#' CREATED: 2020-09-09
#' MODIFIED: 2020-09-09
#' PURPOSE: dev app
#' STATUS: ongoing
#' PACKAGES: rheroicons; etc.
#' COMMENTS: NA
#'////////////////////////////////////////////////////////////////////////////

devtools::load_all()
launch_gallery(options = list(port = 9000, launch.browser = TRUE))
2 changes: 1 addition & 1 deletion dev/dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ pkgbump::set_pkgbump(
)
)

pkgbump::pkgbump(version = "0.2.0")
pkgbump::pkgbump(version = "0.2.1")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions inst/rheroicons-gallery/app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#'////////////////////////////////////////////////////////////////////////////
#' FILE: app.R
#' AUTHOR: David Ruvolo
#' CREATED: 2020-09-09
#' MODIFIED: 2020-09-09
#' PURPOSE: app for running rheroicons gallery on shinyapps.io
#' STATUS: working
#' PACKAGES: rheroicons; shiny
#' COMMENTS: NA
#'////////////////////////////////////////////////////////////////////////////

# load and run app
pkgload::load_all(export_all = FALSE, helpers = FALSE, attach_testthat = FALSE)
rheroicons::launch_gallery()
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "rheroicons",
"version": "0.2.0",
"version": "0.2.1",
"author": "dcruvolo",
"license": "MIT",
"scripts": {
"demo_dev": "parcel inst/rheroicons-demo/src/index.js -d inst/rheroicons-demo/www -o inst/rheroicons-demo/www/rheroicons.min.js --no-source-maps",
"demo_shiny": "Rscript -e \"shiny::runApp(appDir = './inst/rheroicons-demo', port = 8000, launch.browser = FALSE)\"",
"demo_build": "parcel build inst/rheroicons-demo/src/index.js -d inst/rheroicons-demo/www -o inst/rheroicons-demo/www/rheroicons.min.js --no-source-maps",
"demo_clean": "rm -rf inst/rheroicons-demo/www/rheroicons.min.*",
"demo_start": "concurrently \"npm run demo_shiny\" \"npm run demo_dev\" ",
"demo_deploy": "Rscript -e \"rsconnect::deployApp(appDir = 'inst/rheroicons-demo', account = 'davidruvolo')\"",
"package": "npm run rBuild && npm run rInstall"
"shiny": "Rscript -e \"shiny::runApp(appDir = './inst/rheroicons-demo', port = 8000, launch.browser = FALSE)\"",
"start": "parcel inst/gallery-assets/src/index.js -d inst/gallery-assets/public -o inst/gallery-assets/rheroicons.min.js --no-source-maps",
"build": "parcel build inst/gallery-assets/src/index.js -d inst/gallery-assets/public -o inst/gallery-assets/rheroicons.min.js --no-source-maps",
"clean": "rm -rf .cache .parcel-cache inst/gallery-assets/public/*",
"deploy": "Rscript -e \"rsconnect::deployApp(appDir = 'inst/rheroicons-gallery', account = 'davidruvolo')\""
},
"devDependencies": {
"@babel/cli": "^7.8.4",
Expand Down
Loading

0 comments on commit d8e064e

Please sign in to comment.