chore(build): rename lib-opensource to lib-ce for shorter name

This commit is contained in:
Zaiming Shi 2021-02-19 11:54:45 +01:00
parent 4a877a3a69
commit aed58a14ee
87 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@
[
{config,
[
#{dirs => ["src", "apps/**/src", "lib-opensource/**/src"],
#{dirs => ["src", "apps/**/src", "lib-ce/**/src"],
filter => "*.erl",
ruleset => erl_files,
rules => [
@ -16,7 +16,7 @@
]}}
]
},
#{dirs => ["test", "apps/**/test", "lib-opensource/**/src"],
#{dirs => ["test", "apps/**/test", "lib-ce/**/src"],
filter => "*.erl",
rules => [
{elvis_text_style, line_length, #{ limit => 100

View File

@ -10,9 +10,9 @@ cd -P -- "$(dirname -- "$0")"
DOWNLOAD_URL='https://github.com/emqx/emqx-dashboard-frontend/releases/download'
if [ "$EMQX_ENTERPRISE" = 'true' ] || [ "$EMQX_ENTERPRISE" == '1' ]; then
DASHBOARD_PATH='lib-enterprise/emqx_dashboard/priv'
DASHBOARD_PATH='lib-ee/emqx_dashboard/priv'
else
DASHBOARD_PATH='lib-opensource/emqx_dashboard/priv'
DASHBOARD_PATH='lib-ce/emqx_dashboard/priv'
fi
case $(uname) in

View File

@ -28,8 +28,8 @@ config() ->
extra_lib_dir() ->
EnterpriseFlag = os:getenv("EMQX_ENTERPRISE"),
case EnterpriseFlag =:= "true" orelse EnterpriseFlag =:= "1" of
true -> "lib-enterprise";
false -> "lib-opensource"
true -> "lib-ee";
false -> "lib-ce"
end.
project_app_dirs() ->
@ -279,7 +279,7 @@ provide_bcrypt_release(ReleaseType) ->
%% rebar3 does not handle umberella project's cross-app parse_transform well
compile_and_load_pase_transforms(Dir) ->
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],
lists:foreach(fun(PtFile) -> {ok, _Mod} = compile:file(path(Dir, PtFile), CompileOpts) end, PtFiles).

View File

@ -15,17 +15,17 @@ apps=(
"emqx_auth_redis"
"emqx_bridge_mqtt"
"emqx_coap"
# "emqx_dashboard" # moved to lib-opensource
# "emqx_dashboard" # moved to lib-ce
"emqx_exhook"
"emqx_exproto"
"emqx_lua_hook"
"emqx_lwm2m"
# "emqx_management" # moved to lib-opensource
# "emqx_management" # moved to lib-ce
"emqx_prometheus"
"emqx_psk_file"
"emqx_recon"
"emqx_retainer"
# "emqx_rule_engine" # moved to lib-opensource
# "emqx_rule_engine" # moved to lib-ce
"emqx_sasl"
"emqx_sn"
"emqx_stomp"