Creates the basic structure for leprechaun app with JavaScript.
scaffold_leprechaun(
react = FALSE,
vue = FALSE,
use_cdn = TRUE,
edit = interactive()
)
Whether to include React, internally runs apply_react()
and adapts the srcjs/index.js
template for React.
Whether to include Vue, internally runs apply_vue()
and
adapts the srcjs/index.js
template for Vue.
Whether to use the CDN for react or vue dependencies,
this is passed to apply_react()
or apply_vue()
if react
or
vue
arguments are set to TRUE
and ignored otherwise.
Automatically open pertinent files.
TRUE
(invisibly) if successfully run.
Only one of react
or vue
can be set to TRUE
.