scaffold_golem {packer} | R Documentation |
Golem
Description
Creates the basic structure for golem app with JavaScript.
Usage
scaffold_golem(
react = FALSE,
vue = FALSE,
framework7 = FALSE,
use_cdn = TRUE,
edit = interactive()
)
Arguments
react |
Whether to include React, internally runs |
vue |
Whether to include Vue, internally runs |
framework7 |
Whether to include Framework7, internally runs |
use_cdn |
Whether to use the CDN for react, vue or Framework7 dependencies,
this is passed to |
edit |
Automatically open pertinent files. |
Details
Only one of react
, vue
or framework7
can be set to TRUE
. use_cdn
is
not supported for Framework7.
Value
TRUE
(invisibly) if successfully run.
Examples
if(interactive()){
# current directory
wd <- getwd()
# create a mock up golem project
tmp <- tmp_golem()
# move to package
setwd(tmp)
# scaffold golem
scaffold_golem()
# clean up
setwd(wd)
tmp_delete(tmp)
}