Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vuejs
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
vuejs
Commits
e4c4b921
Commit
e4c4b921
authored
7 years ago
by
Hayato Goto
Browse files
Options
Downloads
Patches
Plain Diff
Make the versions configurable.
parent
4409b350
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vuejs.module
+13
-3
13 additions, 3 deletions
vuejs.module
with
13 additions
and
3 deletions
vuejs.module
+
13
−
3
View file @
e4c4b921
...
...
@@ -13,11 +13,17 @@
* Implements hook_libraries_info().
*/
function
vuejs_libraries_info
()
{
$version_vue
=
variable_get
(
'vuejs_version_vue'
,
'v2.5.2'
);
$version_vue_router
=
variable_get
(
'vuejs_version_vue_router'
,
'v3.0.1'
);
$version_vuex
=
variable_get
(
'vuejs_version_vuex'
,
'v3.0.0'
);
$libraries
[
'vue'
]
=
array
(
'name'
=>
'Vue.js'
,
'vendor url'
=>
'https://github.com/vuejs'
,
'download url'
=>
'https://github.com/vuejs/vue'
,
'download file url'
=>
'https://github.com/vuejs/vue/archive/v2.5.2.tar.gz'
,
'download file url'
=>
format_string
(
'https://github.com/vuejs/vue/archive/!version.tar.gz'
,
array
(
'!version'
=>
drupal_encode_path
(
$version_vue
),
)),
'path'
=>
'dist'
,
'version arguments'
=>
array
(
'file'
=>
'package.json'
,
...
...
@@ -35,7 +41,9 @@ function vuejs_libraries_info() {
'name'
=>
'The official router for Vue.js'
,
'vendor url'
=>
'https://github.com/vuejs'
,
'download url'
=>
'https://github.com/vuejs/vue-router'
,
'download file url'
=>
'https://github.com/vuejs/vue-router/archive/v3.0.1.tar.gz'
,
'download file url'
=>
format_string
(
'https://github.com/vuejs/vue-router/archive/!version.tar.gz'
,
array
(
'!version'
=>
drupal_encode_path
(
$version_vue_router
),
)),
'path'
=>
'dist'
,
'version arguments'
=>
array
(
'file'
=>
'package.json'
,
...
...
@@ -53,7 +61,9 @@ function vuejs_libraries_info() {
'name'
=>
'Vuex'
,
'vendor url'
=>
'https://github.com/vuejs'
,
'download url'
=>
'https://github.com/vuejs/vuex'
,
'download file url'
=>
'https://github.com/vuejs/vuex/archive/v3.0.0.tar.gz'
,
'download file url'
=>
format_string
(
'https://github.com/vuejs/vuex/archive/v3.0.0.tar.gz'
,
array
(
'!version'
=>
drupal_encode_path
(
$version_vuex
),
)),
'path'
=>
'dist'
,
'version arguments'
=>
array
(
'file'
=>
'package.json'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment