From 9a72f5d3a2251b438017b08eec673bb800636e91 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 1 Jul 2021 19:37:53 +0200 Subject: viewer: Script domain naming convention --- scripts/dev_win_build_compiler.cmd | 5 ---- scripts/dev_win_compile_example.cmd | 10 ------- scripts/dev_win_compiler_build.cmd | 5 ++++ scripts/dev_win_compiler_compile_example.cmd | 10 +++++++ scripts/dev_win_compiler_help.cmd | 5 ++++ scripts/dev_win_help.cmd | 5 ---- scripts/dev_win_start_vueui.cmd | 44 ---------------------------- 7 files changed, 20 insertions(+), 64 deletions(-) delete mode 100644 scripts/dev_win_build_compiler.cmd delete mode 100644 scripts/dev_win_compile_example.cmd create mode 100644 scripts/dev_win_compiler_build.cmd create mode 100644 scripts/dev_win_compiler_compile_example.cmd create mode 100644 scripts/dev_win_compiler_help.cmd delete mode 100644 scripts/dev_win_help.cmd delete mode 100644 scripts/dev_win_start_vueui.cmd diff --git a/scripts/dev_win_build_compiler.cmd b/scripts/dev_win_build_compiler.cmd deleted file mode 100644 index d88aa5d..0000000 --- a/scripts/dev_win_build_compiler.cmd +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -cd ..\compiler\ -stack setup -stack build --flag ldgallery-compiler:portable --copy-bins --local-bin-path dist -pause diff --git a/scripts/dev_win_compile_example.cmd b/scripts/dev_win_compile_example.cmd deleted file mode 100644 index 35134c0..0000000 --- a/scripts/dev_win_compile_example.cmd +++ /dev/null @@ -1,10 +0,0 @@ -@echo off -SET rebuild=--rebuild -CHOICE /M "Rebuild all ('--rebuild' argument)?" -IF ERRORLEVEL 2 SET rebuild= -echo. -cd ..\compiler\ - -@echo on -stack exec ldgallery -- %rebuild% --clean-output -i=../example/src/ -o=../example/out/ -@pause diff --git a/scripts/dev_win_compiler_build.cmd b/scripts/dev_win_compiler_build.cmd new file mode 100644 index 0000000..d88aa5d --- /dev/null +++ b/scripts/dev_win_compiler_build.cmd @@ -0,0 +1,5 @@ +@echo off +cd ..\compiler\ +stack setup +stack build --flag ldgallery-compiler:portable --copy-bins --local-bin-path dist +pause diff --git a/scripts/dev_win_compiler_compile_example.cmd b/scripts/dev_win_compiler_compile_example.cmd new file mode 100644 index 0000000..35134c0 --- /dev/null +++ b/scripts/dev_win_compiler_compile_example.cmd @@ -0,0 +1,10 @@ +@echo off +SET rebuild=--rebuild +CHOICE /M "Rebuild all ('--rebuild' argument)?" +IF ERRORLEVEL 2 SET rebuild= +echo. +cd ..\compiler\ + +@echo on +stack exec ldgallery -- %rebuild% --clean-output -i=../example/src/ -o=../example/out/ +@pause diff --git a/scripts/dev_win_compiler_help.cmd b/scripts/dev_win_compiler_help.cmd new file mode 100644 index 0000000..f0bdb98 --- /dev/null +++ b/scripts/dev_win_compiler_help.cmd @@ -0,0 +1,5 @@ +@echo off +cd ..\compiler\ +stack exec ldgallery -- --help +@echo. +@pause diff --git a/scripts/dev_win_help.cmd b/scripts/dev_win_help.cmd deleted file mode 100644 index f0bdb98..0000000 --- a/scripts/dev_win_help.cmd +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -cd ..\compiler\ -stack exec ldgallery -- --help -@echo. -@pause diff --git a/scripts/dev_win_start_vueui.cmd b/scripts/dev_win_start_vueui.cmd deleted file mode 100644 index e1a124d..0000000 --- a/scripts/dev_win_start_vueui.cmd +++ /dev/null @@ -1,44 +0,0 @@ -@echo off -set NODE_VERSION=12.16.1 -set VUECLI_VERSION=4.2.3 -cd ..\viewer\ - -chcp 65001 -echo. -echo === nvm install === -nvm install %NODE_VERSION% -nvm list | find /i "%NODE_VERSION% (Currently" -if errorlevel 1 ( - echo. - echo === nvm use %NODE_VERSION% === - nvm use %NODE_VERSION% - - echo. - echo === npm install @vue/cli@%VUECLI_VERSION% === - ping localhost -n 3 >NUL - cmd /c npm install -g @vue/cli@%VUECLI_VERSION% -) -echo. -vue --version | find /i "%VUECLI_VERSION%" -if errorlevel 1 ( - echo ====================================================================== - echo Warning: vue/cli doesn't match the requested version: %VUECLI_VERSION% - echo. - echo CTRL+C to quit and update, or press a key to ignore this warning... - echo ====================================================================== - echo. - pause -) -echo. -echo === npm install === -cmd /c npm install -echo. -echo === npm prune === -cmd /c npm prune -echo. -echo === npm dedupe === -cmd /c npm dedupe -echo. -echo === vue ui === -title Vue UI - server -vue ui -- cgit v1.2.3