aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorzeroinformatique2021-07-02 18:08:13 +0200
committerGitHub2021-07-02 18:08:13 +0200
commit08ac32103fb5f8cca1861267dfd07a7c0d2faf62 (patch)
tree6e70da08a58890eac806d98a127551e9f67994a9 /scripts
parent1cf6dd4243a72935d382d62bb2a79ff13186e70d (diff)
parent90b0994ea7be0052fc6d868c98e1de8c835f2ba1 (diff)
downloadldgallery-08ac32103fb5f8cca1861267dfd07a7c0d2faf62.tar.gz
Merge pull request #299 from ldgallery/oz-yarn
viewer: compilation chain upgrade
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev_win_compiler_build.cmd (renamed from scripts/dev_win_build_compiler.cmd)0
-rw-r--r--scripts/dev_win_compiler_compile_example.cmd (renamed from scripts/dev_win_compile_example.cmd)0
-rw-r--r--scripts/dev_win_compiler_help.cmd (renamed from scripts/dev_win_help.cmd)0
-rw-r--r--scripts/dev_win_start_vueui.cmd44
-rw-r--r--scripts/dev_win_viewer_deps_install.cmd22
5 files changed, 22 insertions, 44 deletions
diff --git a/scripts/dev_win_build_compiler.cmd b/scripts/dev_win_compiler_build.cmd
index d88aa5d..d88aa5d 100644
--- a/scripts/dev_win_build_compiler.cmd
+++ b/scripts/dev_win_compiler_build.cmd
diff --git a/scripts/dev_win_compile_example.cmd b/scripts/dev_win_compiler_compile_example.cmd
index 35134c0..35134c0 100644
--- a/scripts/dev_win_compile_example.cmd
+++ b/scripts/dev_win_compiler_compile_example.cmd
diff --git a/scripts/dev_win_help.cmd b/scripts/dev_win_compiler_help.cmd
index f0bdb98..f0bdb98 100644
--- a/scripts/dev_win_help.cmd
+++ b/scripts/dev_win_compiler_help.cmd
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 @@
1@echo off
2set NODE_VERSION=12.16.1
3set VUECLI_VERSION=4.2.3
4cd ..\viewer\
5
6chcp 65001
7echo.
8echo === nvm install ===
9nvm install %NODE_VERSION%
10nvm list | find /i "%NODE_VERSION% (Currently"
11if errorlevel 1 (
12 echo.
13 echo === nvm use %NODE_VERSION% ===
14 nvm use %NODE_VERSION%
15
16 echo.
17 echo === npm install @vue/cli@%VUECLI_VERSION% ===
18 ping localhost -n 3 >NUL
19 cmd /c npm install -g @vue/cli@%VUECLI_VERSION%
20)
21echo.
22vue --version | find /i "%VUECLI_VERSION%"
23if errorlevel 1 (
24 echo ======================================================================
25 echo Warning: vue/cli doesn't match the requested version: %VUECLI_VERSION%
26 echo.
27 echo CTRL+C to quit and update, or press a key to ignore this warning...
28 echo ======================================================================
29 echo.
30 pause
31)
32echo.
33echo === npm install ===
34cmd /c npm install
35echo.
36echo === npm prune ===
37cmd /c npm prune
38echo.
39echo === npm dedupe ===
40cmd /c npm dedupe
41echo.
42echo === vue ui ===
43title Vue UI - server
44vue ui
diff --git a/scripts/dev_win_viewer_deps_install.cmd b/scripts/dev_win_viewer_deps_install.cmd
new file mode 100644
index 0000000..9e2330d
--- /dev/null
+++ b/scripts/dev_win_viewer_deps_install.cmd
@@ -0,0 +1,22 @@
1@echo off
2set NODE_VERSION=12.22.2
3cd ..\viewer\
4
5chcp 65001
6echo.
7echo === nvm install ===
8nvm install %NODE_VERSION%
9nvm list | find /i "%NODE_VERSION% (Currently"
10if errorlevel 1 (
11 echo.
12 echo === nvm use %NODE_VERSION% ===
13 nvm use %NODE_VERSION%
14
15 ping localhost -n 3 >NUL
16 cmd /c npm install -g yarn
17)
18echo.
19echo === yarn deps ===
20cmd /c rmdir /s /q .\node_modules\
21cmd /c yarn
22echo.