From de46c82c78a19dda88b305eba51340f5d2a02001 Mon Sep 17 00:00:00 2001 From: Alexander Rose Date: Sat, 3 Feb 2024 10:17:20 -0800 Subject: [PATCH] add mesoscale-explorer to deploy script --- scripts/deploy.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.js b/scripts/deploy.js index 29c60029f..8514459e8 100644 --- a/scripts/deploy.js +++ b/scripts/deploy.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2019-2023 mol* contributors, licensed under MIT, See LICENSE file for more info. + * Copyright (c) 2019-2024 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ @@ -39,6 +39,14 @@ function copyViewer() { addAnalytics(path.resolve(viewerDeployPath, 'index.html')); } +function copyMe() { + console.log('\n###', 'copy me files'); + const meBuildPath = path.resolve(buildDir, '../build/mesoscale-explorer/'); + const meDeployPath = path.resolve(localPath, 'me/'); + fse.copySync(meBuildPath, meDeployPath, { overwrite: true }); + addAnalytics(path.resolve(meDeployPath, 'index.html')); +} + function copyDemos() { console.log('\n###', 'copy demos files'); const lightingBuildPath = path.resolve(buildDir, '../build/examples/lighting/'); @@ -54,6 +62,7 @@ function copyDemos() { function copyFiles() { copyViewer(); + copyMe(); copyDemos(); }