Skip to content

Commit 0abc9b3

Browse files
update getvue to add vue3; update vue2 -> 2.7.14 and vue 3 -> 3.3.4
1 parent e7e55f4 commit 0abc9b3

File tree

6 files changed

+25936
-26355
lines changed

6 files changed

+25936
-26355
lines changed

Diff for: R/meta.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#'@keywords internal
2-
vue_version <- function(){'2.6.14'}
3-
2+
vue_version <- function(){'2.7.14'}
43
#'@keywords internal
5-
vue3_version <- function(){'3.2.26'}
4+
vue3_version <- function(){'3.3.4'}

Diff for: build/getvue.R

+27-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ get_vue_latest <- function(){
99
)
1010
}
1111

12+
get_vue3_latest <- function(){
13+
gsub(
14+
x=github::get.latest.release("vuejs", "core")$content$tag_name,
15+
pattern="v",
16+
replacement=""
17+
)
18+
}
19+
1220

13-
# get newest vue
21+
# get newest vue2
1422
download.file(
1523
url=sprintf(
1624
"https://unpkg.com/vue@%s/dist/vue.min.js",
@@ -27,13 +35,30 @@ download.file(
2735
destfile="./inst/www/vue/dist/vue.js"
2836
)
2937

38+
# get newest vue3
39+
download.file(
40+
url=sprintf(
41+
"https://unpkg.com/vue@%s/dist/vue.global.prod.js",
42+
get_vue3_latest()
43+
),
44+
destfile="./inst/www/vue3/dist/vue.global.prod.js"
45+
)
46+
47+
download.file(
48+
url=sprintf(
49+
"https://unpkg.com/vue@%s/dist/vue.global.js",
50+
get_vue3_latest()
51+
),
52+
destfile="./inst/www/vue3/dist/vue.global.js"
53+
)
54+
3055
# write function with newest version
3156
# for use when creating dependencies
3257
cat(
3358
sprintf(
3459
"#'@keywords internal\nvue_version <- function(){'%s'}\n#'@keywords internal\nvue3_version <- function(){'%s'}\n",
3560
get_vue_latest(),
36-
"3.2.26" #hard coded for now
61+
get_vue3_latest()
3762
),
3863
file = "./R/meta.R"
3964
)

0 commit comments

Comments
 (0)