chore(build): rename lib-opensource to lib-ce for shorter name
This commit is contained in:
parent
4a877a3a69
commit
aed58a14ee
|
@ -5,7 +5,7 @@
|
||||||
[
|
[
|
||||||
{config,
|
{config,
|
||||||
[
|
[
|
||||||
#{dirs => ["src", "apps/**/src", "lib-opensource/**/src"],
|
#{dirs => ["src", "apps/**/src", "lib-ce/**/src"],
|
||||||
filter => "*.erl",
|
filter => "*.erl",
|
||||||
ruleset => erl_files,
|
ruleset => erl_files,
|
||||||
rules => [
|
rules => [
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
]}}
|
]}}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
#{dirs => ["test", "apps/**/test", "lib-opensource/**/src"],
|
#{dirs => ["test", "apps/**/test", "lib-ce/**/src"],
|
||||||
filter => "*.erl",
|
filter => "*.erl",
|
||||||
rules => [
|
rules => [
|
||||||
{elvis_text_style, line_length, #{ limit => 100
|
{elvis_text_style, line_length, #{ limit => 100
|
||||||
|
|
|
@ -10,9 +10,9 @@ cd -P -- "$(dirname -- "$0")"
|
||||||
DOWNLOAD_URL='https://github.com/emqx/emqx-dashboard-frontend/releases/download'
|
DOWNLOAD_URL='https://github.com/emqx/emqx-dashboard-frontend/releases/download'
|
||||||
|
|
||||||
if [ "$EMQX_ENTERPRISE" = 'true' ] || [ "$EMQX_ENTERPRISE" == '1' ]; then
|
if [ "$EMQX_ENTERPRISE" = 'true' ] || [ "$EMQX_ENTERPRISE" == '1' ]; then
|
||||||
DASHBOARD_PATH='lib-enterprise/emqx_dashboard/priv'
|
DASHBOARD_PATH='lib-ee/emqx_dashboard/priv'
|
||||||
else
|
else
|
||||||
DASHBOARD_PATH='lib-opensource/emqx_dashboard/priv'
|
DASHBOARD_PATH='lib-ce/emqx_dashboard/priv'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
|
|
|
@ -28,8 +28,8 @@ config() ->
|
||||||
extra_lib_dir() ->
|
extra_lib_dir() ->
|
||||||
EnterpriseFlag = os:getenv("EMQX_ENTERPRISE"),
|
EnterpriseFlag = os:getenv("EMQX_ENTERPRISE"),
|
||||||
case EnterpriseFlag =:= "true" orelse EnterpriseFlag =:= "1" of
|
case EnterpriseFlag =:= "true" orelse EnterpriseFlag =:= "1" of
|
||||||
true -> "lib-enterprise";
|
true -> "lib-ee";
|
||||||
false -> "lib-opensource"
|
false -> "lib-ce"
|
||||||
end.
|
end.
|
||||||
|
|
||||||
project_app_dirs() ->
|
project_app_dirs() ->
|
||||||
|
@ -279,7 +279,7 @@ provide_bcrypt_release(ReleaseType) ->
|
||||||
%% rebar3 does not handle umberella project's cross-app parse_transform well
|
%% rebar3 does not handle umberella project's cross-app parse_transform well
|
||||||
compile_and_load_pase_transforms(Dir) ->
|
compile_and_load_pase_transforms(Dir) ->
|
||||||
PtFiles =
|
PtFiles =
|
||||||
[ "lib-opensource/emqx_rule_engine/src/emqx_rule_actions_trans.erl"
|
[ "apps/emqx_rule_engine/src/emqx_rule_actions_trans.erl"
|
||||||
],
|
],
|
||||||
CompileOpts = [verbose,report_errors,report_warnings,return_errors,debug_info],
|
CompileOpts = [verbose,report_errors,report_warnings,return_errors,debug_info],
|
||||||
lists:foreach(fun(PtFile) -> {ok, _Mod} = compile:file(path(Dir, PtFile), CompileOpts) end, PtFiles).
|
lists:foreach(fun(PtFile) -> {ok, _Mod} = compile:file(path(Dir, PtFile), CompileOpts) end, PtFiles).
|
||||||
|
|
|
@ -15,17 +15,17 @@ apps=(
|
||||||
"emqx_auth_redis"
|
"emqx_auth_redis"
|
||||||
"emqx_bridge_mqtt"
|
"emqx_bridge_mqtt"
|
||||||
"emqx_coap"
|
"emqx_coap"
|
||||||
# "emqx_dashboard" # moved to lib-opensource
|
# "emqx_dashboard" # moved to lib-ce
|
||||||
"emqx_exhook"
|
"emqx_exhook"
|
||||||
"emqx_exproto"
|
"emqx_exproto"
|
||||||
"emqx_lua_hook"
|
"emqx_lua_hook"
|
||||||
"emqx_lwm2m"
|
"emqx_lwm2m"
|
||||||
# "emqx_management" # moved to lib-opensource
|
# "emqx_management" # moved to lib-ce
|
||||||
"emqx_prometheus"
|
"emqx_prometheus"
|
||||||
"emqx_psk_file"
|
"emqx_psk_file"
|
||||||
"emqx_recon"
|
"emqx_recon"
|
||||||
"emqx_retainer"
|
"emqx_retainer"
|
||||||
# "emqx_rule_engine" # moved to lib-opensource
|
# "emqx_rule_engine" # moved to lib-ce
|
||||||
"emqx_sasl"
|
"emqx_sasl"
|
||||||
"emqx_sn"
|
"emqx_sn"
|
||||||
"emqx_stomp"
|
"emqx_stomp"
|
||||||
|
|
Loading…
Reference in New Issue