Skip to content
代码片段 群组 项目
提交 874a3c20 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Merge branch 'afontaine/vue-version-redux' into 'main'

Only set VUE_VERSION if it is 3

See merge request https://gitlab.com/gitlab-org/gitlab-development-kit/-/merge_requests/3636



Merged-by: default avatarStan Hu <stanhu@gmail.com>
Approved-by: default avatarStan Hu <stanhu@gmail.com>
Co-authored-by: default avatarAndrew Fontaine <afontaine@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -169,6 +169,9 @@ class Config < ConfigSettings ...@@ -169,6 +169,9 @@ class Config < ConfigSettings
bool(:hot_module_reloading) { true } bool(:hot_module_reloading) { true }
integer(:vue_version) { 2 } integer(:vue_version) { 2 }
bool(:__set_vue_version) do
config.vite.vue_version == 3
end
bool(:__safe_enabled) do bool(:__safe_enabled) do
if config.vite? if config.vite?
if config.webpack? if config.webpack?
...@@ -199,6 +202,9 @@ class Config < ConfigSettings ...@@ -199,6 +202,9 @@ class Config < ConfigSettings
array(:allowed_hosts) { config.gitlab.rails.allowed_hosts } array(:allowed_hosts) { config.gitlab.rails.allowed_hosts }
integer(:vue_version) { 2 } integer(:vue_version) { 2 }
bool(:__set_vue_version) do
config.webpack.vue_version == 3
end
string(:__dev_server_public) do string(:__dev_server_public) do
if !config.webpack.live_reload if !config.webpack.live_reload
"" ""
......
...@@ -41,8 +41,8 @@ gitaly: exec /usr/bin/env <% config.gitaly.env.each do |k, v| %><%= k %>=<%= v % ...@@ -41,8 +41,8 @@ gitaly: exec /usr/bin/env <% config.gitaly.env.each do |k, v| %><%= k %>=<%= v %
# Frontend services # Frontend services
# #
<%= '#' unless config.gitlab_ui? %>gitlab-ui: exec /usr/bin/env NODE_ENV=development support/exec-cd gitlab-ui yarn build --watch <%= '#' unless config.gitlab_ui? %>gitlab-ui: exec /usr/bin/env NODE_ENV=development support/exec-cd gitlab-ui yarn build --watch
<%= '#' unless config.vite.__safe_enabled? %>vite: exec /usr/bin/env GITLAB_UI_WATCH=<%= config.gitlab_ui? %> VITE_RUBY_PORT=<%= config.vite.port %> support/exec-cd gitlab bundle exec vite dev <%= '#' unless config.vite.__safe_enabled? %>vite: exec /usr/bin/env GITLAB_UI_WATCH=<%= config.gitlab_ui? %> <%= "VUE_VERSION=#{config.vite.vue_version}" if config.vite.__set_vue_version %> VITE_RUBY_PORT=<%= config.vite.port %> support/exec-cd gitlab bundle exec vite dev
<%= '#' unless config.webpack? %>webpack: exec /usr/bin/env NODE_ENV=development DEV_SERVER_STATIC=<%= config.webpack.static?%> VUE_VERSION=<%= config.webpack.vue_version %> WEBPACK_VENDOR_DLL=<%= config.webpack.vendor_dll? %> DEV_SERVER_INCREMENTAL=<%= config.webpack.incremental? %> DEV_SERVER_INCREMENTAL_TTL=<%= config.webpack.incremental_ttl %> DEV_SERVER_LIVERELOAD=<%= config.webpack.live_reload? %> NO_SOURCEMAPS=<%= !config.webpack.sourcemaps? %> DEV_SERVER_PORT=<%= config.webpack.port %> DEV_SERVER_PUBLIC_ADDR=<%= config.webpack.__dev_server_public %> DEV_SERVER_HOST=<%= config.webpack.host %> DEV_SERVER_ALLOWED_HOSTS="<%= config.webpack.allowed_hosts.join(',') %>" GITLAB_UI_WATCH=<%= config.gitlab_ui? %> support/exec-cd gitlab yarn dev-server <%= '#' unless config.webpack? %>webpack: exec /usr/bin/env NODE_ENV=development DEV_SERVER_STATIC=<%= config.webpack.static?%> <%= "VUE_VERSION=#{config.webpack.vue_version}" if config.webpack.__set_vue_version %> WEBPACK_VENDOR_DLL=<%= config.webpack.vendor_dll? %> DEV_SERVER_INCREMENTAL=<%= config.webpack.incremental? %> DEV_SERVER_INCREMENTAL_TTL=<%= config.webpack.incremental_ttl %> DEV_SERVER_LIVERELOAD=<%= config.webpack.live_reload? %> NO_SOURCEMAPS=<%= !config.webpack.sourcemaps? %> DEV_SERVER_PORT=<%= config.webpack.port %> DEV_SERVER_PUBLIC_ADDR=<%= config.webpack.__dev_server_public %> DEV_SERVER_HOST=<%= config.webpack.host %> DEV_SERVER_ALLOWED_HOSTS="<%= config.webpack.allowed_hosts.join(',') %>" GITLAB_UI_WATCH=<%= config.gitlab_ui? %> support/exec-cd gitlab yarn dev-server
<%= service(:RailsWeb).procfile_entry %> <%= service(:RailsWeb).procfile_entry %>
<%= '#' unless config.gitlab_pages? %>gitlab-pages: exec gitlab-pages/bin/gitlab-pages -config=<%= config.gdk_root.join('gitlab-pages', 'gitlab-pages.conf') %> <%= '#' unless config.gitlab_pages? %>gitlab-pages: exec gitlab-pages/bin/gitlab-pages -config=<%= config.gdk_root.join('gitlab-pages', 'gitlab-pages.conf') %>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册